Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find lib gtk-2.x while I do have gtk #8

Open
xnth97 opened this issue Sep 14, 2015 · 14 comments
Open

Cannot find lib gtk-2.x while I do have gtk #8

xnth97 opened this issue Sep 14, 2015 · 14 comments

Comments

@xnth97
Copy link

xnth97 commented Sep 14, 2015

I was compiling driftnet on OS X 10.11 and when I execute ./configure I got

checking for g_signal_connect_data in -lgobject-2.0... yes
checking for gtk_main in -lgtk-x11-2.0... no
configure: error: cannot find lib gtk-2.x

But I do have gtk+2.24.28. The only thing I doubt is that gtk+ was installed through homebrew, and the results from brew list gtk seems quite normal. Is there anything I haven't noticed?

FYI, the config.log is here, showing that the problem may be related to gtk i think.
https://drive.google.com/file/d/0B1wV83EBxUIubDY5M1M3b2kzZkk/view?usp=sharing

@deiv
Copy link
Owner

deiv commented Jan 26, 2016

Could you please paste the result of the next command?

find {/lib,/usr/lib/,/usr/local/lib/} -iname "*gtk-x11*"

@oxguy3
Copy link

oxguy3 commented Feb 3, 2016

Same issue, so I'm gonna respond on behalf of xnth97. Typing that command as written gave the response:

find: `/lib': No such file or directory

So instead, I ran the command find {/usr/lib/,/usr/local/lib/} -iname "*gtk-x11*".... which printed nothing. Guess I'm missing gtk-x11...

@warm200
Copy link

warm200 commented Apr 9, 2017

@oxguy3 did you solve your problem, I have the same issue, and I didn't find a way to install gtk-x11, something related xQuartz but didn't figure it out, thanks

@oxguy3
Copy link

oxguy3 commented Apr 9, 2017

@warm200 I don't remember but I'm pretty sure I never got it working. Sorry, good luck!

@atlasW
Copy link

atlasW commented Jun 1, 2017

@oxguy3 I have the same issue,do you know how the way to install ?

@oxguy3
Copy link

oxguy3 commented Jun 1, 2017

@atlasW nope, never figured it out

@deiv
Copy link
Owner

deiv commented Jun 14, 2017

Same as #17

@aallan
Copy link

aallan commented Jun 22, 2017

GTK+2 on the Mac is now based around XQuartz, X11 support has been dropped. My bet, and I haven't looked yet, is that you'd have to go in and modify the code to remove X11 specific calls and replace them with XQuartz. This is either trivial, or more or less impossible. See https://github.com/anholt/libepoxy/releases/tag/v1.3

@1in9e
Copy link

1in9e commented Sep 28, 2017

@inu1255 display.c:23:10: fatal error: 'gtk/gtk.h' file not found

@1in9e
Copy link

1in9e commented Sep 28, 2017

It's exits.
/usr/local/Cellar/gtk+/2.24.31_1 me too.
@inu1255

@1in9e
Copy link

1in9e commented Sep 28, 2017

@inu1255
➜ driftnet git:(master) ✗ make
Making all in src
/Library/Developer/CommandLineTools/usr/bin/make all-recursive
Making all in media
CC media.o
CC image.o
CC audio.o
CC mpeghdr.o
CC playaudio.o
CC http.o
AR libmedia.a
Making all in display
CC display.o
display.c:23:10: fatal error: 'gtk/gtk.h' file not found
#include <gtk/gtk.h>
^~~~~~~~~~~
1 error generated.
make[3]: *** [display.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all] Error 2
make: *** [all-recursive] Error 1

@yuanjingsong
Copy link

@ohlinge u can delete src/display/display.c :25 and it works for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants