X11 Xft compile failure

  • 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...>
  • On Sep 5, 2007, at 8:51 AM, Lothar Scholz wrote:

    ...
    > g++ -... -I. -I. -I../include -I../include -I
    > /Users/llothar/work_generated/macosx_ix86/contrib/install/include
    ...
    > 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
    ...
    > 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.

    The obvious questions, assuming gcc is to be taken at its word that
    the file can't be found:

    Have you verified that there is a file freetype/config/ftheader.h
    inside the working directory, a default header directory, or an -I
    directory?

    Doing a 'locate ftheader.h' (refreshing the locate DB with 'sudo /usr/
    libexec/locate.updatedb', if necessary) is instructive. When I do
    this, I find /usr/X11/include/freetype2/freetype/config/ftheader.h . I
    bet /usr/X11/include/freetype2 is not in your header search path.

    I find that libfreetype is already installed on my system. I installed
    the developer tools including the X11 SDK.

    — F
  • Hello Fritz,

    Thursday, September 6, 2007, 12:04:41 AM, you wrote:

    FA> I find that libfreetype is already installed on my system. I installed
    FA> the developer tools including the X11 SDK.

    Okay i give up. I just did it the windows way, deleted the harddisk
    and reinstalled everything with the latest versions.

    Freetype2 is indeed somewhere in the X11 SDK but the autoconf that
    is coming with FOX does not know how to detect it.

    Pretty bad. But maybe time to start with the native Cocoa port.

    --
    Best regards,
    Lothar                            mailto:<llothar...>
previous month september 2007 next month
MTWTFSS
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
Go to today