stransky / berusky2

Berusky 2 (Bugs Escape 3D) is a game that challenges your visual/spatial thinking and ability to find a way to resolve a logic task. Using five bugs, you'll go through an adventure full of various puzzles spread across nine episodes. Individual episodes differ in appearance and difficulty, which increases throughout the game.
http://anakreon.cz/en/Berusky2.htm
GNU General Public License v3.0
15 stars 3 forks source link

Linux git compilation instructions/errors #4

Closed qubodup closed 13 years ago

qubodup commented 13 years ago

Hello,

thanks for making this fun looking game foss!

Some people and I tried to compile this but it didn't quite work yet.

For example:

$ autoconf configure.in:7: error: possibly undefined macro: AM_INIT_AUTOMAKE If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:8: error: possibly undefined macro: AM_CONFIG_HEADER configure.in:9: error: possibly undefined macro: AM_MAINTAINER_MODE configure.in:13: error: possibly undefined macro: AM_PROG_CC_STDC configure.in:25: error: possibly undefined macro: AM_GLIB_GNU_GETTEXT configure.in:27: error: possibly undefined macro: AM_PROG_LIBTOOL

I'm on Arch Linux 64bit

See this thread for more info: http://forum.freegamedev.net/viewtopic.php?f=20&t=1315

aapo commented 13 years ago

Compiled under 64bit Ubuntu. Commit: c873a2cc799db5d4380cd50c3f0c0c579d42504 from git: autoreconf -i ;automake -ac; ./configure ; make

stransky commented 13 years ago

I uploaded the missing autoconf files to git repo, should be okay now.

qubodup commented 13 years ago

Thanks! It still fails though on arch 64bit:

make all-recursive make[1]: Entering directory /home/qubodup/src/git/berusky2' Making all in po make[2]: Entering directory/home/qubodup/src/git/berusky2/po' make[2]: Nothing to be done for all'. make[2]: Leaving directory/home/qubodup/src/git/berusky2/po' Making all in src make[2]: Entering directory /home/qubodup/src/git/berusky2/src' g++ -DHAVE_CONFIG_H -I. -I.. -Ikomat -Ikofola -Itmp -Iage/graph -Iage/include -Iage/support -Iage/utils -Igenerator -D_DEBUG -fpermissive -Wall -g -g -O2 -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/SDL -I/usr/include/libdrm -MT font3d.o -MD -MP -MF .deps/font3d.Tpo -c -o font3d.otest -f 'kofola/font3d.cpp' || echo './'kofola/font3d.cpp In file included from age/graph/age.h:54:0, from komat/3d_all.h:17, from kofola/Object.h:10, from kofola/trigers.h:4, from kofola/font3d.h:10, from kofola/font3d.cpp:3: age/utils/utils.h: In function ‘void* int2void(int)’: age/utils/utils.h:537:25: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] In file included from age/graph/age.h:107:0, from komat/3d_all.h:17, from kofola/Object.h:10, from kofola/trigers.h:4, from kofola/font3d.h:10, from kofola/font3d.cpp:3: age/graph/obb.h: In member function ‘virtual float obb::dist(VECT*)’: age/graph/obb.h:223:11: warning: variable ‘tmp_len’ set but not used [-Wunused-but-set-variable] In file included from age/graph/age.h:160:0, from komat/3d_all.h:17, from kofola/Object.h:10, from kofola/trigers.h:4, from kofola/font3d.h:10, from kofola/font3d.cpp:3: age/support/events.h: In member function ‘void game_event::params_int_set(int, int, int, int, int, int, int)’: age/support/events.h:124:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] age/support/events.h:125:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] age/support/events.h:126:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] age/support/events.h:127:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] age/support/events.h:128:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] age/support/events.h:129:35: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] age/support/events.h: In member function ‘void game_event::param_int_set(int, int)’: age/support/events.h:142:39: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] In file included from tmp/compat.h:58:0, from komat/3d_all.h:26, from kofola/Object.h:10, from kofola/trigers.h:4, from kofola/font3d.h:10, from kofola/font3d.cpp:3: komat/obbo.h: In function ‘float obb_vzdal_bod(OBB_OLD*, BOD*)’: komat/obbo.h:84:9: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] komat/obbo.h: In function ‘float obb_vzdal_bod_aabb(OBB_OLD*, BOD*)’: komat/obbo.h:107:9: warning: variable ‘len’ set but not used [-Wunused-but-set-variable] kofola/font3d.cpp: In function ‘char fn2_Load_Triger(char*, GAME_TRIGER*, GRAMMAR*, TRIGER_STRUCTURE*)’: kofola/font3d.cpp:706:8: warning: unused variable ‘text’ [-Wunused-variable] kofola/font3d.cpp: In function ‘int fn2_Set_Font(char*)’: kofola/font3d.cpp:740:73: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:740:73: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:752:72: error: cannot convert ‘int*’ to ‘apuLong* {aka long unsigned int*}’ for argument ‘3’ to ‘void agetbuffer(FILE*, char**, apuLong*)’ kofola/font3d.cpp:762:59: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:770:21: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp: In function ‘void fn2_Test(int)’: kofola/font3d.cpp:867:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:869:65: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp: In function ‘void fn2_Test2(int)’: kofola/font3d.cpp:883:31: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:885:65: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp: In function ‘int fn2_Gen_Menu_Text(int, int, char*, int*, int*)’: kofola/font3d.cpp:940:65: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp: In function ‘int fn2_Get_Font_Texture(int, char*)’: kofola/font3d.cpp:1096:65: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:1113:11: warning: invalid conversion from ‘byte* {aka unsigned char*}’ to ‘char*’ [-fpermissive] kofola/font3d.cpp:1058:5: warning: initializing argument 6 of ‘int fn2_Put_in_3d_List(int, EDIT_TEXT*, EDIT_TEXT_KONFIG*, int, int, char*, int, int)’ [-fpermissive] kofola/font3d.cpp: In function ‘void fn2_Texture(int)’: kofola/font3d.cpp:1139:45: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:1142:41: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:1145:41: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:1148:43: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp:1151:37: warning: deprecated conversion from string constant to ‘char*’ [-Wwrite-strings] kofola/font3d.cpp: In function ‘void fn2_Convert_Rect(char*, int, int)’: kofola/font3d.cpp:1160:21: warning: unused variable ‘ts’ [-Wunused-variable] kofola/font3d.cpp: In function ‘int fn2_DC2Tex(HDC, int, int, int, int)’: kofola/font3d.cpp:1307:1: warning: no return statement in function returning non-void [-Wreturn-type] make[2]: *** [font3d.o] Error 1 make[2]: Leaving directory/home/qubodup/src/git/berusky2/src' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/home/qubodup/src/git/berusky2' make: * [all] Error 2

aapo commented 13 years ago

It has own issue: https://github.com/stransky/berusky2/issues/2