This is an old revision of the document!
Table of Contents
Building Player with GNU Build System
Requirements
- Make
- SDL2 (or SDL 1.2, discouraged)
- SDL2_mixer (or SDL_Mixer 1.2, discouraged)
- Freetype
- Pixman
- libpng
- zlib
- boost
Build
- Run
./configure && make install
If you want to cross compile with a specific gcc toolchain, pass --host=whatever
to configure
.
RTP support with WINE
For most games, you will need to have installed the RTP. To install RTP in non-Windows systems you can use WINE. EasyRPG Player will detect the RTP path from the WINE registry automatically. Will work with original Japanese RTP filenames even when games are created with English RTP translations (Don Miguel, RPG Advocate) and vice-versa. Read rtp to learn how to install the RPG Maker 2000 and 2003 RTPs.
This feature is not built by default yet because it requires Boost Spirit and it is not a header only library. You will need to append CPPFLAGS=-DHAVE_WINE
before or after ./configure
.
Step by step setup for Debian based distros (gNewSense, Trisquel, Debian, Mint, Ubuntu...)
- Do the autotools setup first
- Open the Terminal application
- Copy the following text and paste it in your terminal window and press the enter key, you will need to enter your password and press again the enter key:
sudo apt-get -y install --no-install-recommends libboost-dev libsdl2-mixer-dev libpixman-1-dev libfreetype6-dev
cd ~/EasyRPG && git clone https://github.com/EasyRPG/Player.git && cd Player && autoreconf -i && ./configure CPPFLAGS=-DHAVE_WINE && make
- Go to your Files application and browse into
EasyRPG
folder →Player
folder →src
folder. If there is aeasyrpg-player
file inside, your Player executable has been successfully built. - Move the
easyrpg-player
file into a game folder (same place as RPG_RT.exe) and run it to play the game.
Note: for Trisquel, replace the following words in the text above: libboost-dev
with libboost1.48-dev
Note: if you compiled liblcf with --enable-xml
then replace LIBS=-llcf
with LIBS="-llcf -lexpat"
Note: For Trisquel and Debian 7 will need SDL2 and SDL2_mixer packages from testing (jessie) or replace libsdl2-mixer-dev
with libsdl-mixer1.2-dev
(fallback to SDL 1.2).
Step by step setup for Fedora
- Do the autotools setup first
- Open the Terminal application
- Copy the following text and paste it in your terminal window and press the enter key, you will need to enter your password and press again the enter key:
sudo yum -y install boost-devel SDL2_mixer-devel pixman-devel freetype-devel libpng-devel && cd ~/EasyRPG && git clone https://github.com/EasyRPG/Player.git && cd Player && ./autogen.sh && ./configure CPPFLAGS="-DUNIX -DHAVE_WINE" CXXFLAGS=-I$PWD/../liblcf/build/include LDFLAGS=-L$PWD/../liblcf/build/lib LIBS=-lliblcf && make
- Go to your Files application and browse into
EasyRPG
folder →Player
folder →src
folder. If there is aeasyrpg-player
file inside, your Player setup is OK. - Move the
easyrpg-player
file into a game folder (same place as RPG_RT.exe) and run it to play the game.
Note: if you compiled liblcf with --enable-xml
then replace LIBS=-llcf
with LIBS="-llcf -lexpat"
Installation on Arch Linux
There is an AUR package available, you can use your favourite aur helper or download and use makepkg:
$ packer -S easyrpg-player-git
If you prefer a manual compilation, here is a screencast of the compilation procedure for liblcf and the player: