Posts: 8
Threads: 2
Joined: Sep 2015
Favorite Pack: CCLP1
I installed the "tworld" package with APT, but it stores some files in "~/.tworld" like I would expect, but others (level sets and resource files) in "/usr/share/games/tworld". I would like everything to be in "~/.tworld", and I read somewhere in the documentation that I can specify different folders, but I can't find how to actually do it. Help please?
I eat chips! *crunch crunch crunch*
Posts: 8
Threads: 2
Joined: Sep 2015
Favorite Pack: CCLP1
Alright, I tried compiling it myself, but I get this error:
[Click to Show Content]
Code:
cyrus@fractalbot:~$ cd ~/Downloads/Software/CHIPS/tworld
cyrus@fractalbot:~/Downloads/Software/CHIPS/tworld$ ./configure --with-sharedir=~/.tworld
using sdl for OS/hardware layer ...
checking for sdl-config... no
configure: creating ./config.status
config.status: creating Makefile
config.status: creating oshw/Makefile
cyrus@fractalbot:~/Downloads/Software/CHIPS/tworld$ make
make: sdl-config: Command not found
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o tworld.o tworld.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o series.o series.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o play.o play.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o encoding.o encoding.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o solution.o solution.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o res.o res.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o lxlogic.o lxlogic.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o mslogic.o mslogic.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o unslist.o unslist.c
echo \#define COMPILE_TIME \"`date '+%Y %b %e %T %Z'`\" > comptime.h
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o help.o help.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o score.o score.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o random.o random.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o cmdline.o cmdline.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o fileio.o fileio.c
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG '-DROOTDIR="~/.tworld"' -c -o err.o err.c
(cd oshw && make)
make[1]: Entering directory '/home/cyrus/Downloads/Software/CHIPS/tworld/oshw-sdl'
make[1]: sdl-config: Command not found
gcc -Wall -Wextra -O2 -fomit-frame-pointer -DNDEBUG -c -o sdloshw.o sdloshw.c
sdloshw.c:10:17: fatal error: SDL.h: No such file or directory
#include "SDL.h"
^
compilation terminated.
<builtin>: recipe for target 'sdloshw.o' failed
make[1]: *** [sdloshw.o] Error 1
make[1]: Leaving directory '/home/cyrus/Downloads/Software/CHIPS/tworld/oshw-sdl'
Makefile:78: recipe for target 'liboshw.a' failed
make: *** [liboshw.a] Error 2
I eat chips! *crunch crunch crunch*
Posts: 8
Threads: 2
Joined: Sep 2015
Favorite Pack: CCLP1
And yes, I am aware why the files are structured that way -- but I like to tinker with the data/res files, and my home folder is mounted to a separate partition that is shared by multiple Linux installs, so my settings are preserved even if I wipe and reinstall a distro or two. That way I don't have to re-widger the /usr/share stuff on each one.
I eat chips! *crunch crunch crunch*
Posts: 8
Threads: 2
Joined: Sep 2015
Favorite Pack: CCLP1
Ok, got it working with the command line options! Woohoo! I would still like to learn how to compile it myself though, and know what went wrong.
I eat chips! *crunch crunch crunch*
Posts: 18
Threads: 1
Joined: Jul 2015
Scorecard:
Brian Raiter
What went wrong is that you don't have the SDL development package. (You have SDL installed, but you don't have the support files that let you build something that uses SDL.) Running "sudo apt-get install libsdl1.2-dev" would fix that.
Posts: 18
Threads: 1
Joined: Jul 2015
Scorecard:
Brian Raiter
(Oh, and I would say that your use case is exactly the type of situation I had in mind when I added the environment variables feature to Tile World.)