Error compiling

You have a problem with TA3D, it doesn't run or it crashes...
/
Vous avez un problème avec TA3D, il ne se lance pas ou plante...
Post Reply
zeland
Posts: 4
Joined: Mon Mar 23, 2009 7:32 am

Error compiling

Post by zeland » Mon Mar 23, 2009 8:20 am

I have just checked out revision 1591 from svn and I'm getting the following failure to compile.

Code: Select all

[zeland@zeland ta3d]$ cmake ./
-- snip --
[ 29%] Building CXX object src/gfx/CMakeFiles/gfx.dir/font.cpp.o
/home/zeland/src/ta3d/src/gfx/font.cpp: In member function ‘void TA3D::Font::print(float, float, float, const TA3D::String&)’:
/home/zeland/src/ta3d/src/gfx/font.cpp:53: error: ‘FTGL’ has not been declared
/home/zeland/src/ta3d/src/gfx/font.cpp: In member function ‘void TA3D::Font::load(const TA3D::String&, int, int)’:
/home/zeland/src/ta3d/src/gfx/font.cpp:183: error: expected type-specifier before ‘FTBitmapFont’
/home/zeland/src/ta3d/src/gfx/font.cpp:183: error: cannot convert ‘int*’ to ‘FTFont*’ in assignment
/home/zeland/src/ta3d/src/gfx/font.cpp:183: error: expected `;' before ‘FTBitmapFont’
/home/zeland/src/ta3d/src/gfx/font.cpp:186: error: expected type-specifier before ‘FTPixmapFont’
/home/zeland/src/ta3d/src/gfx/font.cpp:186: error: cannot convert ‘int*’ to ‘FTFont*’ in assignment
/home/zeland/src/ta3d/src/gfx/font.cpp:186: error: expected `;' before ‘FTPixmapFont’
make[2]: *** [src/gfx/CMakeFiles/gfx.dir/font.cpp.o] Error 1
make[1]: *** [src/gfx/CMakeFiles/gfx.dir/all] Error 2
make: *** [all] Error 2
I'm really looking forward to the transition to SDL.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Mon Mar 23, 2009 1:32 pm

You need the following libraries installed with their development headers:
_SDL (with SDL_Image, SDL_mixer, SDL_net)
_GLEW
_FreeType2
_FTGL (>= 2.1.3rc5, it may work with earlier versions but it hasn't been tested yet)
_zlib

In your case, either FTGL isn't installed or your version of FTGL is too old.
=>;-D Penguin Powered

zeland
Posts: 4
Joined: Mon Mar 23, 2009 7:32 am

Post by zeland » Mon Mar 23, 2009 2:45 pm

Ah... ftgl >= 2.1.3-RC5. Fedora 10 seem to be at 2.1.2-8. I tried looking at the F11 alpha repo but they only have 2.1.2-10.

User avatar
zuzuf
Administrateur - Site Admin
Posts: 3281
Joined: Mon Oct 30, 2006 8:49 pm
Location: Toulouse, France
Contact:

Post by zuzuf » Mon Mar 23, 2009 3:43 pm

There are several changes in FTGL API from 2.1.2 to 2.1.3rc5, but since we don't use most of FTGL features, it shouldn't be difficult to support 2.1.2 ... I'll see that when I have time.
=>;-D Penguin Powered

zeland
Posts: 4
Joined: Mon Mar 23, 2009 7:32 am

Post by zeland » Tue Mar 24, 2009 2:54 am

Thank you. I appreciate the effort. Until ftgl-2.1.3 reaches "stable", most main line distros won't have it in their repos and users will be forced to fumble around getting ftgl compiled from source.

Post Reply

Who is online

Users browsing this forum: No registered users and 19 guests