User Tools

Site Tools


development:compiling:player:autotools

This is an old revision of the document!


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

Requirements for building from git

  • git
  • autoconf >= 2.69
  • automake

Run autoreconf -i to generate the configure script.

Build

  • Run ./configure && make

If you want to cross compile with a specific gcc toolchain, pass --host=whatever to configure and set the PKG_CONFIG_PATH to the path containing specific cross compiling toolchain versions of expat.pc and liblcf.pc files.

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 a easyrpg-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.

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
autoreconf -i
./configure CPPFLAGS=-DHAVE_WINE
make

  • Go to your Files application and browse into EasyRPG folder → Player folder → src folder. If there is a easyrpg-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.

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:

https://asciinema.org/a/8393

development/compiling/player/autotools.1395852900.txt.gz · Last modified: 2014/03/26 16:55 by fdelapena

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki