gtk compilation error
I''m trying to install gtk on a system I set up using LFS. I have all the dependancies running fine, but I get this error when compiling gtk+-2.2.1:
../../gdk/x11/gdkdrawable-x11.h:69: parse error before "XftDraw"
../../gdk/x11/gdkdrawable-x11.h:69: warning: no semicolon at end of struct or union
The line it chokes on is:
#ifdef HAVE_XFT2
XftDraw *xft_draw; // it doesn''t like this line
#elif defined (HAVE_XFT)
Picture picture;
#endif
It seems to be inconsistent though, because XftDraw is defined in X11/Xft/Xft.h, but at the top it has this:
#ifdef HAVE_XFT
#include <X11/Xft/Xft.h>
#endif
when I checked my configuration, it has HAVE_XFT undefined, and HAVE_XFT2 defined. I tried forcing it to include Xft.h, but then because the freetype include dir wasn''t added to the include path it had errors. I tried adding that but there were more errors later, and I have a feeling that hacking the source isn''t the way to fix it.
well, I kept on fiddling it, because I couldn''t do anything else really and it compiled. It seems to be fine, but I''ll probably not find out until later.
April 06, 2003 12:05 PM
gcc prog.c -o prog `xft-config --libs --cflags` `pkg-config gtk+-2.0 --libs --cflags`
Just a few things to note. LFS and Gentoo and other linuxes don''t like weird or somewhat dated hardware. If your compiling exited with Sig11''s or other known hardware crashes, you might want to check into your hardware. Especially check into your heat levels and such.
anon: I''m not sure you understand, I''m compiling gtk+ itself. Not a gtk program.
magnwa: thanks, I''m not having troubles like that atm but if I do I''ll bear that in mind. My hardware is pretty recent, and I may be upgrading the older hardware in the next few months. My heat levels however do sometimes get a bit high. Touching on 57 degrees C sometimes
magnwa: thanks, I''m not having troubles like that atm but if I do I''ll bear that in mind. My hardware is pretty recent, and I may be upgrading the older hardware in the next few months. My heat levels however do sometimes get a bit high. Touching on 57 degrees C sometimes
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement