[kde-linux] Compatibility with XFree 4.1.0/ Xft.h incompatibility

paul-henri.ferme at noos.fr paul-henri.ferme at noos.fr
Fri Aug 5 07:07:01 UTC 2005


hi

I am trying to compile kde stable 3.4.2 on a 2 years old machine.

It uses
XFree86 Version 4.1.0 / X Window System
(protocol Version 11, revision 0, vendor release 6510)
Release Date: 2 June 2001

Most of QT/kdebase compiled OK but i got a fatal compile error as follows:

make[5]: Entering directory `/home/kde-34/sources/konstruct/kde/kdebase/work/kde                                    base-3.4.2/kcontrol/kfontinst/lib'
if /bin/sh ../../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_                                    H -I. -I. -I../../..  -I/home/kde-34/kde3.4.2/include -I/usr/X11R6/include  -I/u                                    sr/kerberos/include -I/usr/local/include/freetype2 -I/usr/local/include -I/usr/l                                    ocal/include   -D_LARGEFILE64_SOURCE -DQT_THREAD_SUPPORT -I/home/kde-34/kde3.4.2                                    /include -I/usr/X11R6/include -D_REENTRANT -
D_FILE_OFFSET_BITS=64  -Wnon-virtual                                    -dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-alig                                    n -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wno-non-virtual-dtor                                     -O2 -I/home/kde-34/kde3.4.2/include -I/usr/X11R6/include -L/home/kde-34/kde3.4.2  /lib -L/usr/X11R6/lib -O2 -pipe -Wformat-security -Wmissing-format-attribute -fn                                    o-
exceptions -fno-check-new -fno-common -DQT_CLEAN_NAMESPACE -DQT_NO_ASCII_CAST                                     -DQT_NO_STL -DQT_NO_COMPAT -DQT_NO_TRANSLATION -D_GNU_SOURCE  -MT libkfontinst_l                                    a.all_cpp.lo -MD -MP -MF ".deps/libkfontinst_la.all_cpp.Tpo" -c -o libkfontinst_                                    la.all_cpp.lo libkfontinst_la.all_cpp.cpp; \
then mv -f ".deps/libkfontinst_la.all_cpp.Tpo" ".deps/libkfontinst_la.all_cpp.Pl                                    o"; else rm -f ".deps/libkfontinst_la.all_cpp.Tpo"; exit 1; fi
In file included from libkfontinst_la.all_cpp.cpp:3:
FcEngine.cpp: In function `bool KFI::drawChar(QPixmap&, XftDraw*, XftFont*, 
   XftColor*, const QString&, int, int&, int&, int, int, int, int)':
FcEngine.cpp:312: invalid conversion from `const FcChar16*' to `XftChar16*'
FcEngine.cpp:322: invalid conversion from `const FcChar16*' to `XftChar16*'
In file included from libkfontinst_la.all_cpp.cpp:3:
FcEngine.cpp: In function `bool KFI::drawString(QPixmap&, XftDraw*, XftFont*, 
   XftColor*, const QString&, int, int&, int, int)':
FcEngine.cpp:335: invalid conversion from `const FcChar16*' to `XftChar16*'
FcEngine.cpp:337: invalid conversion from `const FcChar16*' to `XftChar16*'
In file included from libkfontinst_la.all_cpp.cpp:3:
FcEngine.cpp: At global scope:
FcEngine.cpp:346: type specifier omitted for parameter `FT_UInt'
FcEngine.cpp:346: parse error before `,' token


This looks like a problem with my header /usr/X11R6/include/X11/Xft/Xft.h
as it doesn't define FT_UInt

I noticed this is not the case with this same header on later X version (i cheked with XFree86 4.3.0).

Does anybody from this list succeed in compiling kde 3.4.2 with XFree 4.1.0?

Is there any way to avoid this dependency with Kde 3.4.2 sources on linux? As i guess this is only the font handling section from kde that creates problem can i disable this section in compiling?

Any hint here? I am really stuck with this problem and any help/advice would be appreciated.

phf




More information about the kde-linux mailing list