[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: kdelibs && freetype2
From:       Craig Drummond <Craig.Drummond () gmx ! net>
Date:       2003-08-01 9:22:24
[Download RAW message or body]

> fi
> In file included from FontViewPart.cpp:31,
>                  from libkfontviewpart_la.all_cpp.cpp:2:
> ../lib/FontEngine.h:155: error: 'FT_Library' is used as a type, but is not
>    defined as a type.
> ../lib/FontEngine.h:156: error: 'FT_Face' is used as a type, but is not 
> defined
>    as a type.
> ../lib/FontEngine.h:246: error: `FT_UShort' was not declared in this scope
> ../lib/FontEngine.h:246: error: syntax error before `)' token
> ../lib/FontEngine.h:247: error: `FT_UShort' was not declared in this scope
> ../lib/FontEngine.h:247: error: syntax error before `)' token
> ../lib/FontEngine.h:251: error: `FT_CharMap' was not declared in this

How strange... These are *all* defined in "freetype2/freetype.h".
FontEngine.h does a "#include FT_FREETYPE_H" where FT_FREETYPE_H is a freetype macro
for "freetype2/freetype.h" - so this should be OK.

> scope
> ../lib/FontEngine.h:251: error: `charMap' was not declared in this scope
> ../lib/FontEngine.h:251: error: variable declaration is not allowed here
> ../lib/FontEngine.h:251: error: syntax error before `{' token
> ../lib/FontEngine.h:252: error: semicolon missing after declaration of `
>    CFontEngine'
> ../lib/FontEngine.h: In member function `const QString&
>    CFontEngine::getFullName()':
> ../lib/FontEngine.h:190: error: `itsFullName' undeclared (first use this

...

> ../lib/FontEngine.h: In member function `QString&
>    CFontEngine::getAfmEncodingT1()':
> ../lib/FontEngine.h:239: error: `itsAfmEncoding' undeclared (first use
> this
>    function)

These are all defined later on. MAybe this is the problem? What compiler are
you using? Can you try moving these functions to a "public" section *after*
the variables are declared?

> ../lib/FontEngine.h: At global scope:
> ../lib/FontEngine.h:252: error: ISO C++ forbids defining types within
> return
>    type
> ../lib/FontEngine.h:252: error: extraneous `int' ignored
> ../lib/FontEngine.h:252: error: long, short, signed or unsigned invalid
> for `
>    getGlyphIndexFt'
> ../lib/FontEngine.h:252: error: semicolon missing after declaration of
> `class
>    CFontEngine'
> ../lib/FontEngine.h: In function `int getGlyphIndexFt(short unsigned
> int)':
> ../lib/FontEngine.h:252: error: `itsFt' undeclared (first use this
> function)
> ../lib/FontEngine.h:252: error: `FT_Get_Char_Index' undeclared (first use
> this
>    function)
> ../lib/FontEngine.h: In function `bool setCharmapUnicodeFt()':
> ../lib/FontEngine.h:253: error: `ft_encoding_unicode' undeclared (first
> use
>    this function)
> ../lib/FontEngine.h:253: error: `FT_Select_Charmap' undeclared (first use
> this
>    function)
> ../lib/FontEngine.h: In function `bool setCharmapSymbolFt()':
> ../lib/FontEngine.h:254: error: `ft_encoding_symbol' undeclared (first use
> 
> this
>    function)
> ../lib/FontEngine.h:254: error: `FT_Select_Charmap' undeclared (first use
> this
>    function)
> ../lib/FontEngine.h: At global scope:
> ../lib/FontEngine.h:271: error: `NAME' was not declared in this scope
> ../lib/FontEngine.h: In function `QString& getXlfdBmp()':
> ../lib/FontEngine.h:280: error: `itsXlfd' undeclared (first use this
> function)
> ../lib/FontEngine.h: At global scope:
> ../lib/FontEngine.h:291: error: syntax error before `private'
> ../lib/FontEngine.h:294: error: 'EWidth' is used as a type, but is not
> defined
>    as a type.

This is looking stranger and stranger - what compiler/version are you
using???

> 
> 
> -- 
> Best regards,
> Vladimir Lazarenko

Craig.

-- 
COMPUTERBILD 15/03: Premium-e-mail-Dienste im Test
--------------------------------------------------
1. GMX TopMail - Platz 1 und Testsieger!
2. GMX ProMail - Platz 2 und Preis-Qualitätssieger!
3. Arcor - 4. web.de - 5. T-Online - 6. freenet.de - 7. daybyday - 8. e-Post

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic