Re: [Vrmlengine-main] compiling issues
Game engine supporting many 3D/2D formats and graphic effects
Brought to you by:
kambi
From: Michalis K. <mic...@gm...> - 2009-01-18 08:12:47
|
da...@la... wrote: [...] > > I did a make clean; make in the game engine directory, then I went to the > view3dscene directory and did ./compile.sh > > the results are: > [...] > /usr/local/lib/fpc/2.2.2/units/x86_64-linux/gtk2/gtk2.o: In function > `GTK2_GTK_TYPE_FILE_FOLDER$$QWORD': > gtk2.pas:(.text+0x105b5): undefined reference to > `gtk_file_folder_get_type' > Error: Error while linking > Fatal: There were 1 errors compiling module, stopping > Fatal: Compilation aborted > Error: /usr/local/bin/ppcx64 returned an error exitcode (normal if you did > not specify a source file to be compiled) > root@dlang-laptop:/usr/src/kambi/view3dscene# > Argh. Ubuntu 8.10 uses GTK 2.14, that broke compatibility with previous versions and removed some functions. This is fixed in FPC now (more details here http://mantis.freepascal.org/view.php?id=11837), unfortunately this fix is only in FPC > 2.2.2 (not stable). To use FPC 2.2.2, you should be able to tell the linker to ignore these undefined references (they are not used by view3dscene anyway, they just get linked because they are declared in FPC gtk2 unit): in compile.sh, add option -k--noinhibit-exec to fpc call, that is make it fpc -dRELEASE @kambi.cfg -k--noinhibit-exec \ ../view3dscene/view3dscene.pasprogram Please tell me if this works, I'll mention it on http://vrmlengine.sourceforge.net/kambi_vrml_game_engine.php#section_fpc_ver then. Sorry about the trouble, such things obviously shouldn't happen... Unfortunately this a GTK and FPC problem, beyond the control of my engine. Michalis |