This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
development:compiling:liblcf:autotools [2014/03/02 21:54] fdelapena |
development:compiling:liblcf:autotools [2016/07/18 17:09] fdelapena Modern distros have at least automake 1.11 already, prevents some warnings since 1.14 |
||
---|---|---|---|
Line 2: | Line 2: | ||
===== Requirements ===== | ===== Requirements ===== | ||
- | * GNU Autoconf 2.68 or greater | + | * g++ or clang |
- | * GNU Automake 1.11 or greater | + | * make |
- | * GNU iconv (already included in most distributions) (Not required for Windows) | + | * pkg-config |
- | * GNU Gettext development files (Required for iconv detecion) | + | * libtool |
- | * Expat (optional for XML reading support) | + | * Expat |
+ | * ICU | ||
- | More information at [[./requirements]] | + | ===== Requirements for building from git ===== |
+ | * autoconf >= 2.69 | ||
+ | * automake >= 1.11.4 | ||
+ | * git | ||
+ | Run ''autoreconf -i'' to generate the ''configure'' script. | ||
===== Build ===== | ===== Build ===== | ||
- | * Run ''./configure && make && sudo make install'' | + | * Run: |
+ | <code bash> | ||
+ | ./configure --prefix=/usr | ||
+ | make | ||
+ | sudo make install | ||
+ | </code> | ||
+ | |||
+ | ====== 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...) ===== | ||
* 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 git make automake g++ gettext && mkdir EasyRPG && cd EasyRPG && git clone https://github.com/EasyRPG/liblcf.git && cd liblcf && ./autogen.sh && ./configure %%--%%prefix=$PWD/build && make && make install'' | + | <code bash> |
- | * Go to your Files application and browse into ''EasyRPG'' folder -> ''liblcf'' folder -> ''build'' folder -> ''lib'' folder. If there is a ''liblcf.a'' file inside, your liblcf library setup is OK. | + | sudo apt-get -y install --no-install-recommends git make automake pkg-config libtool g++ libexpat1-dev libicu-dev |
+ | git clone https://github.com/EasyRPG/liblcf.git | ||
+ | cd liblcf | ||
+ | autoreconf -i | ||
+ | ./configure --prefix=/usr | ||
+ | make | ||
+ | sudo make install | ||
+ | cd .. | ||
+ | </code> | ||
===== Step by step setup for Fedora ===== | ===== Step by step setup for Fedora ===== | ||
* 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 git automake gettext-devel gcc-g++ && mkdir EasyRPG && cd EasyRPG && git clone https://github.com/EasyRPG/liblcf.git && cd liblcf && ./autogen.sh && ./configure %%--%%prefix=$PWD/build && make && make install'' | + | <code bash> |
- | * Go to your Files application and browse into ''EasyRPG'' folder -> ''liblcf'' folder -> ''build'' folder -> ''lib'' folder. If there is a ''liblcf.a'' file inside, your liblcf library setup is OK. | + | sudo dnf -y install libtool expat-devel libicu-devel gcc-c++ |
- | + | git clone https://github.com/EasyRPG/liblcf.git | |
- | ===== Enable XML reading support (required if you want to use LCF2XML) ===== | + | cd liblcf |
- | + | autoreconf -i | |
- | ==== Requirements ==== | + | ./configure --prefix=/usr |
- | + | make | |
- | * For Debian based (gNewSense, Trisquel, Debian, Mint, Ubuntu...), do ''sudo apt-get -y install libexpat1-dev'' | + | sudo make install |
- | * For Fedora, do ''sudo yum -y install expat-devel'' | + | cd .. |
+ | </code> | ||
+ | ===== Installation on Arch Linux ===== | ||
- | ==== Build ==== | + | There is an [[https://aur.archlinux.org/packages/liblcf-git/|AUR package]] available, you can use your favourite aur helper or download and use makepkg: |
+ | <code bash> | ||
+ | packer -S liblcf-git | ||
+ | </code> | ||
+ | ===== Additional help ===== | ||
- | If you already have built the library, you might clean library building files before compiling again. | + | Contact with us at https://webchat.freenode.net/?channels=easyrpg |
- | * Run ''./configure %%--%%prefix=$PWD/build %%--%%enable-xml && make && make install'' | + | The current autotools build system maintainer is fdelapena |