problem for compiling the 2.1.0 version

Didier Bretin didier at bretin.net
Fri Sep 20 03:30:04 EDT 2002


Hello,

  I take to shrimpx this morning on irc about my problem of compilation.
Here is the informations:

OS: Linux
Distribution: Red Hat 7.1
Version: openbox 2.1.0
X version: XFree86-4.0
g++ version: gcc-c++-2.96

First version of the error:
g++ -DHAVE_CONFIG_H -I. -I. -I..   -DNDEBUG -DLOCALEPATH=\"/project/usr/local/openbox-2.1.0/share/openbox/nls\" -DDEFAULTMENU=\"/project/usr/local/openbox-2.1.0/share/openbox/menu\" -DDEFAULTSTYLE=\"/project/usr/local/openbox-2.1.0/share/openbox/styles/mbdtex\"  -g -O2  -I/usr/X11R6/include -Wall -W -c Font.cc
Font.cc: In method `void BFont::drawString (long unsigned int, int, 
int, const BColor &, const string &) const':
Font.cc:275: `XftDrawStringUtf8' undeclared (first use this function)
Font.cc:275: (Each undeclared identifier is reported only once for each 
function it appears in.)
Font.cc: In method `unsigned int BFont::measureString (const string &) 
const':
Font.cc:313: `XftTextExtentsUtf8' undeclared (first use this function)
make[2]: *** [Font.o] Erreur 1
make[2]: Quitte le répertoire `/project/src/tmp/openbox-2.1.0/src'
make[1]: *** [all-recursive] Erreur 1
make[1]: Quitte le répertoire `/project/src/tmp/openbox-2.1.0'
make: *** [all-recursive-am] Erreur 2


Then I make some changes:

[10:52:01] <shrimpx> all you need to do is change XftDrawStringUtf8 to XftDrawString8 on lines 274 and 285 in Font.cc
[10:58:33] <shrimpx> ack. one more change. on line 312, change XftTextExtentsUtf8 to XftTextExtents8

And then I got this errors:
g++ -DHAVE_CONFIG_H -I. -I. -I..   -DNDEBUG  -g -O2  -I/usr/X11R6/include -Wall -W -c xftlsfonts.cc
xftlsfonts.cc: In function `int main (int, char **)':
xftlsfonts.cc:129: `XftTypeMatrix' undeclared (first use this function)
xftlsfonts.cc:129: (Each undeclared identifier is reported only once 
for each function it appears in.)
xftlsfonts.cc:130: `union _XftValue::{anonymous}' has no member named 
`m'
xftlsfonts.cc:131: `union _XftValue::{anonymous}' has no member named 
`m'
xftlsfonts.cc:132: `union _XftValue::{anonymous}' has no member named 
`m'
xftlsfonts.cc:133: `union _XftValue::{anonymous}' has no member named 
`m'
make[3]: *** [xftlsfonts.o] Erreur 1
make[3]: Quitte le répertoire `/project/src/openbox-2.1.0/util'
make[2]: *** [all-recursive] Erreur 1
make[2]: Quitte le répertoire `/project/src/openbox-2.1.0/util'
make[1]: *** [all-recursive] Erreur 1
make[1]: Quitte le répertoire `/project/src/openbox-2.1.0'
make: *** [all-recursive-am] Erreur 2



I hope that all this will help the debug process :o))

Regards.

-- 
Didier BRETIN
didier at bretin.net
http://www.bretin.net/
ICQ: 46032186



More information about the openbox mailing list