User Tools

Site Tools


development:compiling:player:autotools

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
development:compiling:player:autotools [2014/03/05 01:48] – rename readers library to liblcf fdelapenadevelopment:compiling:player:autotools [2019/07/01 01:54] (current) – [Step by step setup for Fedora] add freetype and harfbuzz dependencies fdelapena
Line 2: Line 2:
  
 ===== Requirements ===== ===== Requirements =====
-  * Make+  * g++ or clang 
 +  * make 
 +  * pkg-config 
 +  * [[../liblcf/autotools|liblcf]] 
 +  * libpng 
 +  * FreeType 
 +  * HarfBuzz 
 +  * Pixman
   * SDL2 (or SDL 1.2, discouraged)   * SDL2 (or SDL 1.2, discouraged)
   * SDL2_mixer (or SDL_Mixer 1.2, discouraged)   * SDL2_mixer (or SDL_Mixer 1.2, discouraged)
-  * Freetype +  * libmpg123 
-  * Pixman +  * libvorbis 
-  * libpng+  * opusfile 
 +  * libsndfile 
 +  * libxmp 
 +  * SpeexDSP 
 +  * WildMIDI
   * zlib   * zlib
-  * boost 
-  * [[../liblcf/autotools|liblcf]] 
  
-===== Build ===== +===== Requirements for building from git ===== 
-  * Run ''./configure CPPFLAGS="-D//UNIX// -D//HAVE_WINE//" && make && make install''+  * autoconf >= 2.69 
 +  * automake >1.11.4 
 +  * git
  
-For other systems, replace ''-D//UNIX//'' for your platform, for example, ''-D//_WIN32//'' if you are using Windows. See ''src/system.h'' file for details. 
  
-If you want to cross compile with a specific gcc toolchain, pass ''%%--%%host=//whatever//'' to ''configure''.+Run ''autoreconf -i'' to generate the ''configure'' script.
  
-For most games, you will need to have installed the RTPTo install RTP in UNIX 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 [[/user/player/rtp]] to learn how to install the RPG Maker 2000 and 2003 RTPs.+===== Build ===== 
 +  * Run: 
 +<code bash> 
 +./configure 
 +make 
 +sudo make install 
 +</code> 
 +===== RTP support with WINE =====
  
-If you don't want to use WINE to check RTP installation you can remove the ''-D//HAVE_WINE//'' partTo set up RTP folders by handread [[/user/player/rtp]] to do it.+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 automaticallyWill work with original Japanese RTP filenames even when games are created with English RTP translations (Don MiguelRPG Advocate) and vice-versa. Read [[/user/player/rtp]] to learn how to install the RPG Maker 2000 and 2003 RTPs. 
 + 
 +====== Build from Git =====
  
 ===== Step by step setup for Debian based distros (gNewSense, Trisquel, Debian, Mint, Ubuntu...) ===== ===== Step by step setup for Debian based distros (gNewSense, Trisquel, Debian, Mint, Ubuntu...) =====
-  * Do the [[../liblcf/autotools]] setup first+  * Do the [[../liblcf/autotools#step-by-step-setup-for-debian-based-distros-gnewsense-trisquel-debian-mint-ubuntu]] setup first
   * Open the Terminal application   * 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:   * 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 && ./autogen.sh && ./configure CPPFLAGS="-DUNIX -DHAVE_WINE" CXXFLAGS=-I$PWD/../liblcf/build/include LDFLAGS=-L$PWD/../liblcf/build/lib LIBS=-llcf && make'' +<code bash> 
-  * 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. +sudo apt-get -y install --no-install-recommends libsdl2-mixer-dev libpixman-1-dev libfreetype6-dev libspeexdsp-dev libxmp-dev libwildmidi-dev libopusfile-dev libvorbis-dev libharfbuzz-dev libmpg123-dev libsndfile-dev 
-  * Move the ''easyrpg-player'' file into a game folder (same place as RPG_RT.exe) and run it to play the game+git clone https://github.com/EasyRPG/Player.git 
- +cd Player 
-Note: for Trisquel, replace the following words in the text above: ''libboost-dev'' with ''libboost1.48-dev'' +autoreconf -i 
- +./configure 
-Note: if you compiled liblcf with ''%%--%%enable-xml'' then replace ''LIBS=-llcf'' with ''LIBS="-llcf -lexpat"'' +make 
- +sudo make install 
-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). +</code>
 ===== Step by step setup for Fedora ===== ===== Step by step setup for Fedora =====
  
-  * Do the [[../liblcf/autotools]] setup first+  * Do the [[../liblcf/autotools#step-by-step-setup-for-fedora]] setup first
   * Open the Terminal application   * 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:   * 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'' +<code bash> 
-  * Go to your Files application and browse into ''EasyRPG'' folder -''Player'' folder -> ''src'' folder. If there is a ''easyrpg-player'' file insideyour Player setup is OK. +sudo dnf -y install SDL2_mixer-devel pixman-devel libpng-devel freetype-devel harfbuzz-devel libmpg123-devel libvorbis-devel opusfile-devel wildmidi-devel libxmp-devel libsndfile-devel speexdsp-devel asciidoc 
-  * Move the ''easyrpg-player'' file into game folder (same place as RPG_RT.exe) and run it to play the game.+git clone https://github.com/EasyRPG/Player.git 
 +cd Player 
 +autoreconf -i 
 +./configure --enable-fmmidi 
 +make 
 +sudo make install 
 +</code> 
 +===== Installation on Arch Linux ===== 
 + 
 +There is an [[https://aur.archlinux.org/packages/easyrpg-player-git/|AUR package]] available, you can use your favourite aur helper or download and use makepkg: 
 +<code bash> 
 +packer -easyrpg-player-git 
 +</code> 
 +If you prefer a manual compilationhere is a screencast of the compilation procedure for liblcf and the player: 
 + 
 +https://asciinema.org/a/8393
  
-Note: if you compiled liblcf with ''%%--%%enable-xml'' then replace ''LIBS=-llcf'' with ''LIBS="-llcf -lexpat"'' 
development/compiling/player/autotools.1393984099.txt.gz · Last modified: 2014/03/05 01:48 by fdelapena

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki