Game Development Community

Need help getting started on Linux

by Drethon · in Torque Game Engine · 06/21/2008 (11:37 am) · 1 replies

I'm getting started with TGE 1.5 on Linux, I've built on Windows before but want to get away from Windows if I can. I'm trying to build for the first time but getting the following errors, any help please?

--> Compiling lpng/png.c
/bin/sh: freetype-config: not found
'-mcpu=' is deprecated. Use '-mtune=' or '-march=' instead.
In file included from lpng/png.h:363,
from lpng/png.c:13:
lpng/pngconf.h:243:25: error: stdio.h: No such file or directory
lpng/pngconf.h:286:25: error: sys/types.h: No such file or directory
lpng/pngconf.h:313:22: error: setjmp.h: No such file or directory
lpng/pngconf.h:326:22: error: string.h: No such file or directory
lpng/pngconf.h:332:20: error: stdlib.h: No such file or directory
lpng/pngconf.h:357:22: error: math.h: No such file or directory
lpng/pngconf.h:1037:22: error: time.h: No such file or directory
In file included from lpng/png.h:363,
from lpng/png.c:13:
lpng/pngconf.h:1062: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'png_size_t'
lpng/pngconf.h:1144: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token
In file included from lpng/png.c:13:
lpng/png.h:552: error: expected specifier-qualifier-list before 'png_size_t'
lpng/png.h:603: error: expected specifier-qualifier-list before 'png_size_t'
lpng/png.h:830: error: expected specifier-qualifier-list before 'png_size_t'
lpng/png.h:1015: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:1063: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:1076: error: expected specifier-qualifier-list before 'jmp_buf'
lpng/png.h:1383: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:1383: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:1427: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:1435: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:1450: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:1474: warning: 'struct tm' declared inside parameter list
lpng/png.h:1474: warning: its scope is only this definition or declaration, which is probably not what you want
lpng/png.h:1478: error: expected declaration specifiers or '...' before 'time_t'
lpng/png.h:1826: error: expected declaration specifiers or '...' before 'png_FILE_p'
lpng/png.h:1916: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:2797: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:2799: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:2799: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:2810: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:2812: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:2812: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:2846: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:2850: error: expected declaration specifiers or '...' before 'png_size_t'
lpng/png.h:2854: error: expected declaration specifiers or '...' before 'png_size_t'
.... And more

#1
06/21/2008 (6:45 pm)
Found some missing stuff over at http://www.garagegames.com/mg/forums/result.thread.php?qt=61028, now I have the following errors instead. Maybe this question should be over in the Linux area...

In file included from ./platform/platformAL.h:25,
from ./platform/platformAudio.h:16,
from ./audio/audio.h:10,
from audio/audio.cc:6:
../lib/openal/LINUX/al/al_func.h:18: error: '' has incomplete type
../lib/openal/LINUX/al/al_func.h:18: error: invalid use of 'ALvoid'
In file included from ./platform/platformAL.h:26,
from ./platform/platformAudio.h:16,
from ./audio/audio.h:10,
from audio/audio.cc:6:
../lib/openal/LINUX/al/alc_func.h:11: error: '' has incomplete type
../lib/openal/LINUX/al/alc_func.h:11: error: invalid use of 'ALCvoid'
In file included from ./sim/netConnection.h:19,
from ./game/gameConnection.h:16,
from audio/audio.cc:11:
./platform/event.h:128: warning: invalid access to non-static data member 'PacketReceiveEvent::data' of NULL object
./platform/event.h:128: warning: (perhaps the 'offsetof' macro was used incorrectly)
./platform/event.h:130: warning: invalid access to non-static data member 'ConnectedReceiveEvent::data' of NULL object
./platform/event.h:130: warning: (perhaps the 'offsetof' macro was used incorrectly)
./platform/event.h:132: warning: invalid access to non-static data member 'ConsoleEvent::data' of NULL object
./platform/event.h:132: warning: (perhaps the 'offsetof' macro was used incorrectly)
audio/audio.cc: In function 'bool cullSource(U32*, F32)':
audio/audio.cc:252: error: too few arguments to function
audio/audio.cc: In function 'AUDIOHANDLE alxCreateSource(const Audio::Description*, const char*, const MatrixF*, AudioSampleEnvironment*)':
audio/audio.cc:731: error: too few arguments to function
audio/audio.cc: In function 'void alxLoopingUpdate()':
audio/audio.cc:1732: error: too few arguments to function
audio/audio.cc: In function 'void alxStreamingUpdate()':
audio/audio.cc:1833: error: too few arguments to function
audio/audio.cc: In function 'bool Audio::OpenALInit()':
audio/audio.cc:2414: error: too few arguments to function
audio/audio.cc:2419: error: too few arguments to function
audio/audio.cc:2441: error: too few arguments to function
make[1]: *** [out.GCC3.DEBUG/audio/audio.obj] Error 1
make: *** [default] Error 2



I found this but it doesn't seem relevant: http://www.garagegames.com/mg/forums/result.thread.php?qt=74990