I don't believe that the way I did it is the right or the easiest way to do it. I tried to find more info in Egoboo's site and the tar file but I guess I didn't have any luck understanding.
I'm not an expert when it comes to compiling, so if I missed something that I should have known from the beginning please tell me so. When it comes to compile a program, I usually just follow the instructions given in the tar file, and if there is a problem, usually programs are so well written that they tell you exactly what is wrong, and that's how I came out with this solution.
So here it goes:
Step 1: Download the tar file that holds the game. In my case it was called egoboo-2.8.1.tar.gz . Look for the newest one in the download section of egoboo's official website.
Step 2: Extract the content from the tar file. You will end up with a folder, in my case, it was called egoboo-2.8.1 .
Step 3: Open the egoboo-2.8.1, go to the doc folder and open up the file called Quickstart Guide.pdf . There you will find an Installation Guide, that will ask you to make sure you have the following packages installed on your system, so go ahead and do so:
• libsdl-image1.2-dev
• libsdl-mixer1.2-dev
• libsdl1.2-dev
• libsdl-ttf2.0-dev
• build-essential
Step 3: You will need to install libphysfs-dev also, other wise you will receive the following message during the compiling:
Code: Select all
egoboo_vfs.c:33:20: fatal error: physfs.h: No such file or directory compilation terminated.
Step 4: This was another bit of a problem for me. I found 3 make files in the tar file. At first I though that the most obvious was to use the one located in “/egoboo-2.8.1/src/game” but when I cd there and run make the following message appeared:
Code: Select all
make: Nothing to be done for `all'.
Anyway, what you got to do is open a terminal, cd to “egoboo-2.8.1/src” and run “make “.
If everything went right, you should now be able to find an executable file called “egoboo-2.x” in the “/egoboo-2.8.1/src/game” folder. Great job.
Step 5: Now, we could try to run this executable file, but all the respond we will get is the following:
Code: Select all
Initializing filesystem services...
Game directories are:
Binaries: /usr/games/
Data: /usr/share/games/egoboo-2.x
User Data: /home/ariel/.egoboo-2.x
Config Files: /usr/etc/egoboo-2.x
Code: Select all
FATAL ERROR: Cannot find the file "setup.txt".
Step 6: So the next thing we were suppose to do after we run “make” was to run “sudo make install” after and then all the files would had been copied to were they belong right? Wrong!!! If we do that we will get the following error:
Code: Select all
cp: cannot stat `./basicdat': No such file or directory
It seems to me that the files in the tar file are not arrange the way they are suppose to, but again I don't know much about compiling.
In any case, what you have to do is re arrange the files where they are suppose to go so that “sudo make install” copy them to were the have to go. To do this, just cut everything that is inside the “egoboo-2.8.1” folder exept “egoboo-2.8.1/src” and paste it on “egoboo-2.8.1/src”.
Go back to the terminal, make sure you are in “egoboo-2.8.1/src” and run “sudo make install”. Don't forget to use sudo, other wise you will receive the following message:
Code: Select all
install: cannot create regular file `/usr/games/egoboo-2.x': Permission denied
Step 6: Congratulations, you can now play egoboo, to do so, open a terminal an run “egoboo-2.x”.
Hope this tutorial helps some absentminded as my self. I don't understand why the files in the tar file are arranged the way they are, maybe there is a reason or it's a bug but it really doesn't matter, the game is AWESOME and I'm happy I was able to installed. I thank all the people that is working on this game, for making such a cool jewel or Free software. I hope I'll be able to contribute some how in the near future. Thank you all.