help building xgalaga from sources
Hi,
I've downloaded xgalaga++-0.6.1 and I'm stuck in the "installation" phase. It seems that I'm missing some *.d files in the directory /home/user/xgalaga. I have addedd "write" permissions using chmod ugo+w to the directory where the sources are located, and it seems that running "make all" generates an error. The README file does not give any more clues, save for the "You may need to edit installation pathes in the Makefile. Note: The Makefile is a 'Generic Makefiles' from <http://home.infomaniak.ch/mongenet/M...ericMakefiles/>." Here's the list of the source files: alien10.xpm alien11.xpm alien12.xpm alien13.xpm alien14.xpm alien1.xpm alien2.xpm alien3.xpm alien4.xpm alien5.xpm alien6.xpm alien7.xpm alien8.xpm alien9.xpm bomb.xpm bonus_fire.xpm bonus_shield.xpm bonus_speed.xpm build_fail.txt bullet.xpm config.cc config.h constants.h explosion.cc explosion.h gfxinterface.cc gfxinterface.h highscore.cc highscore.h input.cc input.h instance.cc instance.h Last_make_goal_was_all main.cc Makefile managers.cc managers.h menu.cc menu.h out.txt (my output file) pix.cc pix.h player.xpm posix_stream.cc posix_stream.h README score.cc score.h sprites.cc sprites.h stars.cc stars.h time_util.cc time_util.h vectordeque.t.h xgalaga++.6x xpms.cc xpms.h And here's the error output aka "build_fail.txt": Makefile:219: config.d: No such file or directory Makefile:219: explosion.d: No such file or directory Makefile:219: gfxinterface.d: No such file or directory Makefile:219: highscore.d: No such file or directory Makefile:219: input.d: No such file or directory Makefile:219: instance.d: No such file or directory Makefile:219: main.d: No such file or directory Makefile:219: managers.d: No such file or directory Makefile:219: menu.d: No such file or directory Makefile:219: pix.d: No such file or directory Makefile:219: posix_stream.d: No such file or directory Makefile:219: score.d: No such file or directory Makefile:219: sprites.d: No such file or directory Makefile:219: stars.d: No such file or directory Makefile:219: time_util.d: No such file or directory Makefile:219: xpms.d: No such file or directory rm -f ./xgalaga++ ./Last_make_goal_was_* ./config.o ./explosion.o ./gfxinterface.o ./highscore.o ./input.o ./instance.o ./main.o ./managers.o ./menu.o ./pix.o ./posix_stream.o ./score.o ./sprites.o ./stars.o ./time_util.o ./xpms.o ./config.d ./explosion.d ./gfxinterface.d ./highscore.d ./input.d ./instance.d ./main.d ./managers.d ./menu.d ./pix.d ./posix_stream.d ./score.d ./sprites.d ./stars.d ./time_util.d ./xpms.d touch Last_make_goal_was_all /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include xpms.cc |\ sed '\''s@\(xpms\)\.o[ :]*@./\1.o xpms.d: $(goal_flag_file) @g'\'' > xpms.d;\ [ -s xpms.d ] || rm -f xpms.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include time_util.cc |\ sed '\''s@\(time_util\)\.o[ :]*@./\1.o time_util.d: $(goal_flag_file) @g'\'' > time_util.d;\ [ -s time_util.d ] || rm -f time_util.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include stars.cc |\ sed '\''s@\(stars\)\.o[ :]*@./\1.o stars.d: $(goal_flag_file) @g'\'' > stars.d;\ [ -s stars.d ] || rm -f stars.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include sprites.cc |\ sed '\''s@\(sprites\)\.o[ :]*@./\1.o sprites.d: $(goal_flag_file) @g'\'' > sprites.d;\ [ -s sprites.d ] || rm -f sprites.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include score.cc |\ sed '\''s@\(score\)\.o[ :]*@./\1.o score.d: $(goal_flag_file) @g'\'' > score.d;\ [ -s score.d ] || rm -f score.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include posix_stream.cc |\ sed '\''s@\(posix_stream\)\.o[ :]*@./\1.o posix_stream.d: $(goal_flag_file) @g'\'' > posix_stream.d;\ [ -s posix_stream.d ] || rm -f posix_stream.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include pix.cc |\ sed '\''s@\(pix\)\.o[ :]*@./\1.o pix.d: $(goal_flag_file) @g'\'' > pix.d;\ [ -s pix.d ] || rm -f pix.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include menu.cc |\ sed '\''s@\(menu\)\.o[ :]*@./\1.o menu.d: $(goal_flag_file) @g'\'' > menu.d;\ [ -s menu.d ] || rm -f menu.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include managers.cc |\ sed '\''s@\(managers\)\.o[ :]*@./\1.o managers.d: $(goal_flag_file) @g'\'' > managers.d;\ [ -s managers.d ] || rm -f managers.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include main.cc |\ sed '\''s@\(main\)\.o[ :]*@./\1.o main.d: $(goal_flag_file) @g'\'' > main.d;\ [ -s main.d ] || rm -f main.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include instance.cc |\ sed '\''s@\(instance\)\.o[ :]*@./\1.o instance.d: $(goal_flag_file) @g'\'' > instance.d;\ [ -s instance.d ] || rm -f instance.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include input.cc |\ sed '\''s@\(input\)\.o[ :]*@./\1.o input.d: $(goal_flag_file) @g'\'' > input.d;\ [ -s input.d ] || rm -f input.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include highscore.cc |\ sed '\''s@\(highscore\)\.o[ :]*@./\1.o highscore.d: $(goal_flag_file) @g'\'' > highscore.d;\ [ -s highscore.d ] || rm -f highscore.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include gfxinterface.cc |\ sed '\''s@\(gfxinterface\)\.o[ :]*@./\1.o gfxinterface.d: $(goal_flag_file) @g'\'' > gfxinterface.d;\ [ -s gfxinterface.d ] || rm -f gfxinterface.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include explosion.cc |\ sed '\''s@\(explosion\)\.o[ :]*@./\1.o explosion.d: $(goal_flag_file) @g'\'' > explosion.d;\ [ -s explosion.d ] || rm -f explosion.d' /bin/sh: line 1: g++-3.0: command not found /bin/sh -ec 'g++-3.0 -MM -I. -I/usr/X11R6/include config.cc |\ sed '\''s@\(config\)\.o[ :]*@./\1.o config.d: $(goal_flag_file) @g'\'' > config.d;\ [ -s config.d ] || rm -f config.d' /bin/sh: line 1: g++-3.0: command not found g++-3.0 -c config.cc -I. -I/usr/X11R6/include -s -DHIGH_SCORES_FILE=.xgalaga++.scores -Wall -ansi -O -fomit-frame-pointer -o config.o make: g++-3.0: Command not found make: *** [config.o] Error 127 [linux@penguin_stampede xgalaga++-0.6.1]$ make install cp xgalaga++ /usr/games cp: cannot stat `xgalaga++': No such file or directory make: *** [install] Error 1 [linux@penguin_stampede xgalaga++-0.6.1]$ install install: too few arguments End of Build_Fail.txt My apologies for the long posting. Any suggestions that you can make will be greatly appreciated. I duno if not adding the dummy files like 'config.d' to the directory is what's making the "make all" choke here. I'm not sure what kind of file a config.d would be in the first place, it cannot be an object binary file, nor it is a text-like options file. Sincerely, JS P.S. Almost forgot the essentials, I'm running Mandrake 9.2 on kernel 2.4.22-10mdk. JS |
Hi,
I've peeked inside the "Makefile" since then and found that files like 'conig.d' are the "dependencies files." Although it's an interesting clue, I'm not sure how to satisfy them. (the relevant section from "Makefile"): # This makefile creates and includes makefiles containing actual dependencies. # For every source file a dependencies makefile is created and included. # The deps variable contains the list of all dependencies makefiles. deps_suffix = d deps := $(objs:.o=.$(deps_suffix)) Joseph |
Success on Suse 9.2
Hi,
I found that the space key (fire) did not work for xgalaga. Compiling the source failed. Lots of Googling resulted in the following info: Obtained from: http://packages.qa.debian.org/x/xgalaga.html Patch1: http://www5a.biglobe.ne.jp/~na_t/jun....34-fix1.patch Patch2: http://lists.freebsd.org/pipermail/f...er/017763.html The fix1 patch allowed me to compile the program. It fixes a non-obvious problem in libsprite/data.c The second patch didn't install cleanly, but you can see what it's doing. It fixes the key codes under KDE. You should be able to download the source and the fix1 patch. A clean fix2 patch for this source package is included below. Then follow the instructions: $ cd xgalaga_2.0.34.orig $ patch -p0 xgalaga-2.0.34-fix1.patch $ patch -p0 xgalaga-2.0.34-fix2.patch $ cd xgalaga-2.0.34 $ ./configure $ make $ ./xgalaga This should work. Then you have to become root and 'make install' to get sound. ### xgalaga-2.0.34-fix2.patch ### --- xgalaga-2.0.34/main.c.orig 2005-01-22 18:34:44.591641136 -0600 +++ xgalaga-2.0.34/main.c 2005-01-22 18:40:12.551783616 -0600 @@ -779,6 +779,7 @@ if(gameOver) { while(W_EventsPending()) { W_NextEvent(&wev); + if (wev.key >= 256) wev.key -= 256; if(gameOver) mouseControl = 1; @@ -826,6 +827,7 @@ while(W_EventsPending()) { W_NextEvent(&wev); + if (wev.key >= 256) wev.key -= 256; switch(wev.type) { case W_EV_KEY_OFF: |
All times are GMT -5. The time now is 11:14 PM. |