Jump to content


Photo

Ufo2000 For Linux Won't Build Against Newer Freetype


  • Please log in to reply
7 replies to this topic

#1 sAdIsTiCmAcHiNe

sAdIsTiCmAcHiNe

    Squaddie

  • Forum Members
  • PipPip
  • 6 posts

Posted 28 February 2007 - 01:18 AM

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.

#2 Serge

Serge

    Project Leader: UFO 2000

  • Xenocide Programming Department
  • 785 posts

Posted 28 February 2007 - 01:27 AM

Make sure you have freetype headers installed (freetype dev package maybe, I don't have fedora).
ufo2000 development team
http://ufo2000.sourceforge.net

#3 Dorian

Dorian

    Sergeant

  • Forum Members
  • PipPipPip
  • 26 posts

Posted 28 February 2007 - 06:24 AM

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.

#4 Dorian

Dorian

    Sergeant

  • Forum Members
  • PipPipPip
  • 26 posts

Posted 28 February 2007 - 06:25 AM

liballegro4.1 4.1.15-6
liballegro-dev 4.1.15-6


Well, with 4.2 the same shuckeroonies.

#5 Grimshrat

Grimshrat

    Sergeant

  • Forum Members
  • PipPipPip
  • 16 posts

Posted 28 February 2007 - 11:10 AM

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

#6 Serge

Serge

    Project Leader: UFO 2000

  • Xenocide Programming Department
  • 785 posts

Posted 28 February 2007 - 05:14 PM

Should be fixed in SVN now
ufo2000 development team
http://ufo2000.sourceforge.net

#7 Grimshrat

Grimshrat

    Sergeant

  • Forum Members
  • PipPipPip
  • 16 posts

Posted 04 March 2007 - 11:30 AM

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

#8 Grimshrat

Grimshrat

    Sergeant

  • Forum Members
  • PipPipPip
  • 16 posts

Posted 04 March 2007 - 11:42 AM

works now, seems like I forgot to update some other files except the binary, after a rebuilt, seems to work fine