-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Ubuntu
ZeLarpMaster edited this page Feb 15, 2017
·
2 revisions
This software requires EiffelStudio and the Game2 library.
- Download the Eiffel Game2 library on your computer using git.
-
Rename the library folder (containing this README.md) to
game2. - You need to add the game2 folder in the
contrib/libraryfolder of EiffelStudio. Normally, this folder is in/usr/lib/EiffelStudio_XX.YYor in/usr/local/Eiffel_XX.YY. - You need to install the C libraries SDL2, SDL2_image, SDL2_gfx, SDL2_ttf, OpenAL, libsndfile, libmpg123, OpenGL, GLU, libepoxy and all their development tools kit and dependencies:
sudo apt-get install libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-ttf-dev libopenal-dev libsndfile1-dev libmpg123-dev libepoxy-dev libgl1-mesa-dev libglu1-mesa-dev
- Execute the "compile_c_library.sh" script (from the "game2" directory).
Note: If you have an error in the apt-get command telling libsdl2-dev depending of libgles2-mesa-dev. Just install the latest and retry like this:
sudo apt-get install libgles2-mesa-dev
sudo apt-get install libsdl2-dev libsdl2-gfx-dev libsdl2-image-dev libsdl2-ttf-dev libopenal-dev libsndfile1-dev libmpg123-dev libepoxy-dev libgl1-mesa-dev libglu1-mesa-dev
Git is needed to download the MP3Player from GitHub.
- Install Git for Ubuntu by running:
sudo apt-get install git
Open a terminal in the folder of your choice and enter the following command to clone (download) the MP3Player.
git clone https://github.com/XDki113r/MP3Player.git
After using this command, a folder called MP3Player will be added in the folder where your terminal is.
Open the mp3_player.ecf with EiffelStudio, compile the finalized version of the program (Compile --> Finalize), discard assertions if asked, and run the finalized version (Run --> Finalized).