[Ipe-discuss] Compiling under Red Hat Linux 7.2: errors in ftfont.cpp

Sherif Ghali ghali at cs.ualberta.ca
Fri Jun 20 01:32:57 CEST 2003


I'm wondering if anyone managed to compile Ipe on Red Hat Linux.

With the setup:
  Red Hat 7.2, Qt 3.0.6, zlib-1.1.3-25.7, and freetype-2.0.3-7
I get:

    g++ -c -pipe -Wall -W -Wno-unused -Wno-sign-compare -O2  -DQT_NO_ASCII_CAST \
	-DQT_NO_DEBUG -I/usr/include/freetype2 -I.. -I../include \
	-I/usr/local/qt/include -I/usr/local/qt/mkspecs/default \
	-o ftfont.o ftfont.cpp
    ftfont.cpp: In constructor `FTFace::FTFace(Ref*, FTFontEngine*, const char*, 
    ftfont.cpp:121: cannot convert `const unsigned char*' to `FT_Byte*' for 
       argument `2' to `FT_Error FT_New_Memory_Face(FT_LibraryRec_*, FT_Byte*, long 
       int, long int, FT_FaceRec_**)'
    ftfont.cpp: In member function `void FTFace::SetMode(char**, bool, bool)':
    ftfont.cpp:145: `FT_Get_Name_Index' undeclared (first use this function)
    ftfont.cpp:145: (Each undeclared identifier is reported only once for each 
       function it appears in.)
    make: *** [ftfont.o] Error 1

I got ftfont.cpp to compile (by, for example, replacing the
(const unsigned char*) cast by a (FT_Byte*) cast). This gets Ipe
to compile and to link, but is not quite right: The executable
works, then crashes when saving.

Other than ftfont.cpp, all files compile with very few warnings
(though src/tools/pdftoipe/xmloutputdev.cpp has many).

Any suggestions?


More information about the Ipe-discuss mailing list