X11 Xft compile failure
Lothar Scholz
llothar at web.de
Wed Sep 5 06:51:47 PDT 2007
Hello MacOSX-Dev,
I still have to use X11 for my software and i tried to build the FOX
Gui Toolkit. Works fine without using Xft.
But when i configure it with "--with-xft" it not work my machine.
I get the following error for the first compiled file.
g++ -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE=\"fox\"
-DVERSION=\"1.6.29\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_DLFCN_H=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_SYS_WAIT_H=1
-DHAVE_DIRENT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_GETPAGESIZE=1 -DHAVE_MMAP=1 -DHAVE_UNISTD_H=1 -DHAVE_SYS_PARAM_H=1
-DHAVE_SYS_SELECT_H=1 -DHAVE_SYS_FILIO_H=1 -DHAVE_X11_EXTENSIONS_SHAPE_H=1 -DHAVE_X11_EXTENSIONS_XSHM_H=1 -DHAVE_PNG_H=1 -DHAVE_TIFF_H=1
-DHAVE_ZLIB_H=1 -DHAVE_BZLIB_H=1 -DHAVE_X11_XCURSOR_XCURSOR_H=1 -DHAVE_X11_EXTENSIONS_XRANDR_H=1 -DHAVE_VSSCANF=1 -DHAVE_VSNPRINTF=1
-DHAVE_STRTOLL=1 -DHAVE_STRTOULL=1 -DHAVE_LIBDL=1 -I. -I. -I../include -I../include -I
/Users/llothar/work_generated/macosx_ix86/contrib/install/include -g -O2 -DHAVE_XFT_H=1 -DHAVE_XSHAPE
_H=1 -DHAVE_XSHM_H=1 -DFOX_THREAD_SAFE=1 -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -D_GNU_SOURCE -DHAVE_JPEG_H=1 -DHAVE_PNG_H=1
-DHAVE_TIFF_H=1 -DHAVE_ZLIB_H=1 -DHAVE_BZ2LIB_H=1 -DHAVE_XCURSOR_H=1 -DHAVE_XRANDR_H=1 -DNO_XIM -Wall -W -Woverloaded-virtual -Wformat -O2
-DNDEBUG -Wuninitialized -ffast-math -finline-functions -fomit-frame-pointer -fexpensive-optimizations -fno-strict-aliasing -c
FX88592Codec.cpp -o FX88592Codec.o
In file included from /usr/include/X11/Xft/Xft.h:35,
from ../include/xincs.h:211,
from FX88592Codec.cpp:1:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
In file included from ../include/xincs.h:211,
from FX88592Codec.cpp:1:
/usr/include/X11/Xft/Xft.h:36:10: error: #include expects "FILENAME" or <FILENAME>
In file included from /usr/include/X11/Xft/Xft.h:35,
from ../include/xincs.h:211,
from FX88591Codec.cpp:1:
/usr/local/include/ft2build.h:56:38: error: freetype/config/ftheader.h: No such file or directory
In file included from ../include/xincs.h:211,
from FX88591Codec.cpp:1:
/usr/include/X11/Xft/Xft.h:36:10: error: #include expects "FILENAME" or <FILENAME>
/usr/include/X11/Xft/Xft.h:53: error: 'FT_Library' does not name a type
/usr/include/X11/Xft/Xft.h:87: error: 'FT_UInt' does not name a type
/usr/include/X11/Xft/Xft.h:94: error: 'FT_UInt' does not name a type
/usr/include/X11/Xft/Xft.h:191: error: expected ',' or '...' before '*' token
/usr/include/X11/Xft/Xft.h:296: error: expected ',' or '...' before '*' token
/usr/include/X11/Xft/Xft.h:354: error: 'FT_Face' does not name a type
/usr/include/X11/Xft/Xft.h:394: error: expected ',' or '...' before '*' token
/usr/include/X11/Xft/Xft.h:400: error: expected ',' or '...' before '*' token
/usr/include/X11/Xft/Xft.h:409: error: 'FT_UInt' has not been declared
/usr/include/X11/Xft/Xft.h:410: error: 'FT_UInt' has not been declared
/usr/include/X11/Xft/Xft.h:418: error: 'FT_UInt' does not name a type
/usr/include/X11/Xft/Xft.h:462: error: expected ',' or '...' before '*' token
/usr/include/X11/Xft/Xft.h:53: error: 'FT_Library' does not name a type
/usr/include/X11/Xft/Xft.h:87: error: 'FT_UInt' does not name a type
/usr/include/X11/Xft/Xft.h:94: error: 'FT_UInt' does not name a type
/usr/include/X11/Xft/Xft.h:191: error: expected ',' or '...' before '*' token
/usr/include/X11/Xft/Xft.h:296: error: expected ',' or '...' before '*' token
/usr/include/X11/Xft/Xft.h:354: error: 'FT_Face' does not name a type
/usr/include/X11/Xft/Xft.h:394: error: expected ',' or '...' before '*' token
/usr/include/X11/Xft/Xft.h:400: error: expected ',' or '...' before '*' token
/usr/include/X11/Xft/Xft.h:409: error: 'FT_UInt' has not been declared
/usr/include/X11/Xft/Xft.h:410: error: 'FT_UInt' has not been declared
/usr/include/X11/Xft/Xft.h:418: error: 'FT_UInt' does not name a type
/usr/include/X11/Xft/Xft.h:462: error: expected ',' or '...' before '*' token
make[1]: *** [FX88591Codec.lo] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [FX88592Codec.lo] Error 1
make: *** [all-recursive] Error 1
****** FATAL ERRROR *******
/usr/include/X11/Xft/Xft.h:36:10: error: #include expects "FILENAME" or <FILENAME>
This line is indeed "#include FT_FREETYPE_H" and so i guess there is
something wrong with my computer configuration.
Anybody know how i can fix it (without porting to Cocoa or Carbon)?
I manually installed freetype and fontconfig with the usual
"configure/make/sudo make install" so the files should be there.
I also updated to Xcode 2.4.1 just today.
--
Best regards,
Lothar mailto:llothar at web.de
More information about the MacOSX-dev
mailing list