Re: [Super-tux-devel] seg fault
Brought to you by:
wkendrick
From: Bill K. <nb...@so...> - 2004-02-19 22:21:35
|
On Thu, Feb 19, 2004 at 05:07:03PM +0000, ri...@ae... wrote: > Anyway, I don't like the way that the data directory is found... > The data directory is setuped during the make, which is not that > brilliant, since a simple move of the game makes it not to work. > I think that the installation directory should be setuped during > the make process, but the current dir, when the game is not > installed should use some hack like this one (from myself): > http://rpmcruz.planetaclix.pt/repository/system/index.html#curdir I just noticed this in Makefile, which is damned silly: ifeq ($(PREFIX),) ifeq ($(USERNAME),root) PREFIX=/usr/local ... So ONLY if they compile it as root, will it install in /usr/local??? I NEVER compile stuff as root! I always do: $ ./configure <-- if necessary $ make $ su # make install # exit $ I'm sure in the original 0.0.4/0.0.5 Super Tux, I was doing my stupid old system where it ASSUMED you were installing into your home dir, or just running out of the untar'd directory. I've learned, since then, that it's best to let the user CHOOSE to do this, but DEFAULT to install in /usr/local/ So now, things like Tux Paint will ASSUME data will be stored in, say, "/usr/local/share/tuxpaint/" or some-such, and the user must then do a "make install" as root to get the Makefile to copy data to there. -bill! |