From: William K. <nb...@so...> - 2001-09-03 18:20:25
|
On Mon, Sep 03, 2001 at 10:00:46AM -0700, Samuel Hart wrote: > Here's some info from Calvin Arndt on his efforts to make tuxmath RPMs. > > He reported a possible problem. > > ---------- Forwarded Message ---------- > Subject: Re: Tuxmath > Date: Mon, 3 Sep 2001 09:53:03 -0700 (PDT) > From: Calvin Arndt <cal...@ya...> > To: Samuel Hart <cri...@ge...> > > > --- Samuel Hart <cri...@ge...> wrote: > > Hey, we are rapidly approaching our first release of Tux of Math > > Command: > > http://www.geekcomix.com/dm/tuxmath/ > > > > Would you be willing to help us get an RPM for it? > > I'm working on it sam got it to compile but for some reason the game > look for the data dir in root dir ie "/data" not "./data" I cheated and > symlinked the data dir to root just to get to see the game and it look > real good! Thanks for the note. It seems that "make" on your system didn't expand the "$PWD" (current directory) variable. This should be moot, since the game will eventually be set up with autoconf/automake, and there'll be a "make install" step, which will copy all of the data to somewhere like "/usr/local/..." or "/usr/share/..." > what follow is just for the curious... > I won't pretend to understand a bit of this either!!! All of the complaints you see are pretty standard. I want the main 'tuxmath' directory to remain fairly clean even after you build (with "make"), so I stored all of the source files in "src/" and have all of the object (".o") files get built into an "obj/" directory. Some versions of tar, however, don't 'mkdir' directorys which, in the tar archive, are empty. So, I make sure that "obj" is 'mkdir'd every step of the way, hence the constant "cannot make directory `obj'" warnings. (Notice they are ignored :) ) There are also many warnings (thanks to "-Wall" switch to 'gcc') about things being "defined, but not used" in ".h" files. These are definitions of string constants which are used in the accompanying ".c" files, but not at all in the ".h" files, which GCC is complaining about. I'm not really all that good at writing C programs that aren't all in on gigantic C file (see my numerous other games :) ), so I don't know the best way to rid this warning. Tips? Anyway, other than these warnings and errors (which I get too ;) ), and the odd lack of "$PWD" variable in "make", it sounds like it built and ran for you, which is good! :) Out of curioisity, what model and version of 'make' are you running? (Is it "gmake", or?) And what OS/architecture? (Sounds like probably RedHat on Intel?) Thanks!!! -bill! > calsdesk:~/tuxmath$ make > BUILDING tuxmath.o > mkdir obj > cc -Wall -O2 -I/usr/include/SDL -D_REENTRANT -DDATA_PREFIX=\"/data\" > -DDEBUG > -DVERSION=\"2001.09.02\" src/tuxmath.c -c -o obj/tuxmath.o > src/game.h:57: warning: `operchars' defined but not used > src/game.h:61: warning: `oper_opts' defined but not used > BUILDING setup.o > mkdir obj > mkdir: cannot make directory `obj': File exists > make: [obj/setup.o] Error 1 (ignored) > cc -Wall -O2 -I/usr/include/SDL -D_REENTRANT -DDATA_PREFIX=\"/data\" > -DDEBUG > -DVERSION=\"2001.09.02\" src/setup.c -c -o obj/setup.o > src/game.h:57: warning: `operchars' defined but not used > BUILDING title.o > mkdir obj > mkdir: cannot make directory `obj': File exists > make: [obj/title.o] Error 1 (ignored) > cc -Wall -O2 -I/usr/include/SDL -D_REENTRANT -DDATA_PREFIX=\"/data\" > -DDEBUG > -DVERSION=\"2001.09.02\" src/title.c -c -o obj/title.o > src/images.h:94: warning: `image_filenames' defined but not used > src/game.h:57: warning: `operchars' defined but not used > src/game.h:61: warning: `oper_opts' defined but not used > src/sounds.h:33: warning: `sound_filenames' defined but not used > src/sounds.h:51: warning: `music_filenames' defined but not used > BUILDING game.o > mkdir obj > mkdir: cannot make directory `obj': File exists > make: [obj/game.o] Error 1 (ignored) > cc -Wall -O2 -I/usr/include/SDL -D_REENTRANT -DDATA_PREFIX=\"/data\" > -DDEBUG > -DVERSION=\"2001.09.02\" src/game.c -c -o obj/game.o > src/game.c:1182: warning: `#ifdef' argument starts with a digit > src/game.h:61: warning: `oper_opts' defined but not used > src/images.h:94: warning: `image_filenames' defined but not used > src/sounds.h:33: warning: `sound_filenames' defined but not used > src/sounds.h:51: warning: `music_filenames' defined but not used > BUILDING options.o > mkdir obj > mkdir: cannot make directory `obj': File exists > make: [obj/options.o] Error 1 (ignored) > cc -Wall -O2 -I/usr/include/SDL -D_REENTRANT -DDATA_PREFIX=\"/data\" > -DDEBUG > -DVERSION=\"2001.09.02\" src/options.c -c -o obj/options.o > src/images.h:94: warning: `image_filenames' defined but not used > src/game.h:57: warning: `operchars' defined but not used > src/game.h:61: warning: `oper_opts' defined but not used > src/sounds.h:33: warning: `sound_filenames' defined but not used > src/sounds.h:51: warning: `music_filenames' defined but not used > BUILDING credits.o > mkdir obj > mkdir: cannot make directory `obj': File exists > make: [obj/credits.o] Error 1 (ignored) > cc -Wall -O2 -I/usr/include/SDL -D_REENTRANT -DDATA_PREFIX=\"/data\" > -DDEBUG > -DVERSION=\"2001.09.02\" src/credits.c -c -o obj/credits.o > src/images.h:94: warning: `image_filenames' defined but not used > src/game.h:57: warning: `operchars' defined but not used > src/game.h:61: warning: `oper_opts' defined but not used > src/sounds.h:33: warning: `sound_filenames' defined but not used > src/sounds.h:51: warning: `music_filenames' defined but not used > BUILDING playsound.o > mkdir obj > mkdir: cannot make directory `obj': File exists > > > > __________________________________________________ > Do You Yahoo!? > Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger > http://im.yahoo.com > > ------------------------------------------------------- > > -- > Sam "Criswell" Hart <cri...@ge...> AIM, Yahoo!: <criswell4069> > Homepage: < http://www.geekcomix.com/snh/ > > PGP Info: < http://www.geekcomix.com/snh/contact/ > > Tux4Kids: < http://www.geekcomix.com/tux4kids/ > > > _______________________________________________ > Tuxmath-devel mailing list > Tux...@li... > https://lists.sourceforge.net/lists/listinfo/tuxmath-devel |