kdebase will not compile with freetype 2.1.8

ismail d önmez kde at myrealbox.com
Fri Apr 23 10:05:57 BST 2004


It compiles fine for me after Craig checked out the fix.

-----Original Message-----
From: Nick Brown <nickbroon at blueyonder.co.uk>
To: kde-core-devel at kde.org
Date: Thu, 22 Apr 2004 17:27:57 +0100
Subject: kdebase will not compile with freetype 2.1.8

The recently released freetype2 2.1.8 contains a rewritten cache system.
See http://sourceforge.net/project/shownotes.php?release_id=232858

kdebase (I'm using cvs from yesterday) will not compile using this version, it will however compile with 2.1.7.
I believe that kfontinst needs reworked or a configure check for freetype upto only 2.1.7 added.

See below for errors;

thanks,
Nick


if /bin/sh ../../../libtool --silent --mode=compile --tag=CXX g++ -DHAVE_CONFIG_H -I. -I../../../../../source/kdebase/kcontrol/kfontinst/lib -I../../.. -I/usr/include/freetype2  -DOS_Linux -I../../../../../source/kdebase/kcontrol/kfontinst/lib/../../fonts -I/home/kdedevel/kdecvs/install/include -I/usr/X11R6/include  -D_LARGEFILE64_SOURCE -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -g -O2 -Wformat-security -Wmissing-format-attribute -fno-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 FontEngine.lo -MD -MP -MF ".deps/FontEngine.Tpo" \
  -c -o FontEngine.lo `test -f '../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp' || echo '../../../../../source/kdebase/kcontrol/kfontinst/lib/'`../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp; \
then mv -f ".deps/FontEngine.Tpo" ".deps/FontEngine.Plo"; \
else rm -f ".deps/FontEngine.Tpo"; exit 1; \
fi
In file included from ../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:57:
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.h:163: error: 'FTC_Image_Cache' is used as a type, but is not defined as a type.
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.h:164: error: 'FTC_SBit_Cache' is used as a type, but is not defined as a type.
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.h:314: error: `FTC_Image_Desc' was not declared in this scope
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.h:314: error: `font' was not declared in this scope
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.h:314: error: syntax error before `,' token
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.h:317: error: type specifier omitted for parameter `FTC_Image_Desc'
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.h:317: error: syntax error before `&' token
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp: In member function `void CFontEngine::createPreview(int, int, QPixmap&, int)':
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:518: error: `FTC_Image_Desc' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:518: error: (Each undeclared identifier is reported only once for each function it appears in.)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:518: error: syntax error before `;' token
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:541: error: `font' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:543: error: `ftc_image_grays' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:589: error: `FTC_Manager_Lookup_Size' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp: At global scope:
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2444: error: syntax error before `,' token
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp: In member function `bool CFontEngine::getGlyphBitmap(...)':
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2449: error: `ptr' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2457: error: 'struct CFontEngine::TFtData' has no member named 'sBitCache'
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2457: error: `FTC_SBit_Cache_Lookup' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2459: error: `target' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2465: error: `left' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2466: error: `top' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2467: error: `xAdvance' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2475: error: 'struct CFontEngine::TFtData' has no member named 'imageCache'
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2475: error: `FTC_Image_Cache_Lookup' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp: At global scope:
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2535: error: type specifier omitted for parameter `FTC_Image_Desc'
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2535: error: syntax error before `&' token
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp: In member function `bool CFontEngine::drawGlyph(...)':
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2545: error: `glyphNum' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2547: error: `x' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2547: error: `width' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2549: error: `startX' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2550: error: `y' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2550: error: `stepY' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2552: error: `height' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2573: error: `pix' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2581: error: `space' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp: In constructor `CFontEngine::TFtData::TFtData()':
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2607: error: `sBitCache' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2607: error: `FTC_SBit_Cache_New' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2612: error: `imageCache' undeclared (first use this function)
../../../../../source/kdebase/kcontrol/kfontinst/lib/FontEngine.cpp:2612: error: `FTC_Image_Cache_New' undeclared (first use this function)
make[4]: *** [FontEngine.lo] Error 1
make[4]: Leaving directory `/home/kdedevel/kdecvs/build/kdebase/kcontrol/kfontinst/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/kdedevel/kdecvs/build/kdebase/kcontrol/kfontinst'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/kdedevel/kdecvs/build/kdebase/kcontrol'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/kdedevel/kdecvs/build/kdebase'
make: *** [all] Error 2







More information about the kde-core-devel mailing list