Jump to content
XCOMUFO & Xenocide

Ufo2000 For Linux Won't Build Against Newer Freetype


sAdIsTiCmAcHiNe

Recommended Posts

I get the following error building on fedora 6

 

src/glyphkeeper/glyph.c:20:10: error: #include expects "FILENAME" or <FILENAME>

In file included from src/glyphkeeper/glyph.c:271:

src/glyphkeeper/glyph_face.c: In function ‘gk_face_driver_name’:

src/glyphkeeper/glyph_face.c:41: error: dereferencing pointer to incomplete type

src/glyphkeeper/glyph_face.c:41: error: dereferencing pointer to incomplete type

src/glyphkeeper/glyph_face.c:42: error: dereferencing pointer to incomplete type

In file included from src/glyphkeeper/glyph.c:283:

src/glyphkeeper/glyph_rend.c: In function ‘rend_remove_size_object’:

src/glyphkeeper/glyph_rend.c:205: warning: implicit declaration of function ‘FT_Done_Size’

src/glyphkeeper/glyph_rend.c: In function ‘gk_rend_set_face’:

src/glyphkeeper/glyph_rend.c:289: warning: implicit declaration of function ‘FT_New_Size’

src/glyphkeeper/glyph_rend.c: In function ‘gk_rend_set_size_subpixel’:

src/glyphkeeper/glyph_rend.c:312: warning: implicit declaration of function ‘FT_Activate_Size’

src/glyphkeeper/glyph_rend.c: In function ‘rend_update_matrix’:

src/glyphkeeper/glyph_rend.c:357: warning: implicit declaration of function ‘FT_Matrix_Multiply’

src/glyphkeeper/glyph_rend.c: In function ‘rend_workout’:

src/glyphkeeper/glyph_rend.c:507: error: dereferencing pointer to incomplete type

src/glyphkeeper/glyph_rend.c:508: error: dereferencing pointer to incomplete type

src/glyphkeeper/glyph_rend.c:510: error: dereferencing pointer to incomplete type

make: *** [obj/glyph.o] Error 1

 

My understanding is that the first line relates to newer freetype libraries not supplying certain headers.

Link to comment
Share on other sites

Make sure you have freetype headers installed (freetype dev package maybe, I don't have fedora).

 

I do have, but got the same problem.

 

By the way, is developers concerved about memory ?

It eats hundreds of megabytes on my host and then hangs.

Here is qprof output : http://pastebin.ca/375579

 

Linux, debian sid

kernel 2.6.19.1

liballegro4.1 4.1.15-6

liballegro-dev 4.1.15-6

 

I've tried to figure out the problem with valgrind, but it segfaults.

Link to comment
Share on other sites

I get the following error building on fedora 6

 

src/glyphkeeper/glyph.c:20:10: error: #include expects "FILENAME" or <FILENAME>

In file included from src/glyphkeeper/glyph.c:271:

src/glyphkeeper/glyph_face.c: In function ‘gk_face_driver_name’:

src/glyphkeeper/glyph_face.c:41: error: dereferencing pointer to incomplete type

src/glyphkeeper/glyph_face.c:41: error: dereferencing pointer to incomplete type

src/glyphkeeper/glyph_face.c:42: error: dereferencing pointer to incomplete type

In file included from src/glyphkeeper/glyph.c:283:

src/glyphkeeper/glyph_rend.c: In function ‘rend_remove_size_object’:

src/glyphkeeper/glyph_rend.c:205: warning: implicit declaration of function ‘FT_Done_Size’

src/glyphkeeper/glyph_rend.c: In function ‘gk_rend_set_face’:

src/glyphkeeper/glyph_rend.c:289: warning: implicit declaration of function ‘FT_New_Size’

src/glyphkeeper/glyph_rend.c: In function ‘gk_rend_set_size_subpixel’:

src/glyphkeeper/glyph_rend.c:312: warning: implicit declaration of function ‘FT_Activate_Size’

src/glyphkeeper/glyph_rend.c: In function ‘rend_update_matrix’:

src/glyphkeeper/glyph_rend.c:357: warning: implicit declaration of function ‘FT_Matrix_Multiply’

src/glyphkeeper/glyph_rend.c: In function ‘rend_workout’:

src/glyphkeeper/glyph_rend.c:507: error: dereferencing pointer to incomplete type

src/glyphkeeper/glyph_rend.c:508: error: dereferencing pointer to incomplete type

src/glyphkeeper/glyph_rend.c:510: error: dereferencing pointer to incomplete type

make: *** [obj/glyph.o] Error 1

 

My understanding is that the first line relates to newer freetype libraries not supplying certain headers.

 

I have the same problem on Debian

Link to comment
Share on other sites

Should be fixed in SVN now

 

I have managed to compile the SVN now but it dies with:

 

getFileType(): offset 440

0x0 0x3c 0x3a 0x3a 0x0 0x0 0x20 0x21 0x20 0x20

getFileType(): offset 112

0x0 0x8 0xd0 0x5 0x0 0x0 0x20 0x20 0x20 0x20

Tileset 'moonbase' initialized, crc32 = EBA287A1

Duplicate item with name 'Ethereal Corpse' - ignored

getFileType(): offset 440

0x0 0x3c 0x3a 0x3a 0x0 0x0 0x20 0x21 0x20 0x20

getFileType(): offset 112

0x0 0x8 0xd0 0x5 0x0 0x0 0x20 0x20 0x20 0x20

libpng warning: Incomplete compressed datastream in iCCP chunk

libpng warning: Profile size field missing from iCCP chunk

libpng warning: Incomplete compressed datastream in iCCP chunk

libpng warning: Profile size field missing from iCCP chunk

Shutting down Allegro due to signal #11

Segmentation fault

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...