2010-02-07 23:30:10 +01:00
|
|
|
Summary
|
|
|
|
=======
|
2008-01-08 14:52:32 +01:00
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
This file contains instructions on how to buid Eliot on various platforms.
|
|
|
|
In case of compilation problem, you can send a mail to the eliot-dev@nongnu.org
|
|
|
|
mailing-list.
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
1) General information: useful information for any platform
|
|
|
|
2) Linux/Unix build
|
|
|
|
3) Windows build
|
|
|
|
4) Mac OS X build
|
2004-04-08 11:43:06 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
1) General information
|
|
|
|
======================
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
If you build Eliot from a CVS snapshot, you need to run ./bootstrap to generate
|
|
|
|
the configure script. This is not needed when building from a release tarball.
|
2007-08-04 22:01:27 +02:00
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
In the following, do not forget that the ./configure command can take options.
|
|
|
|
Run ./configure --help to have the list of available options.
|
2007-08-04 22:01:27 +02:00
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
Here are the external dependencies of Eliot, with a link to the relevant website.
|
|
|
|
You need to install them (at least the mandatory ones) before building Eliot.
|
|
|
|
Note that the OS-specific instructions may contain hints on how to install them easily.
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
- libboost (mandatory): http://www.boost.org/
|
|
|
|
--> Used for many things
|
|
|
|
|
|
|
|
- libarabica (mandatory): http://www.jezuk.co.uk/cgi-bin/view/arabica
|
|
|
|
--> Used for saving/loading games
|
|
|
|
You can use any XML back-end supported by Arabica (like expat, or libxml2)
|
|
|
|
|
|
|
|
- libconfig (optional): http://www.hyperrealm.com/libconfig/
|
|
|
|
--> Used for saving/loading preferences
|
|
|
|
|
|
|
|
- Qt (optional, but recommended): http://qt.nokia.com/
|
|
|
|
--> Used for the graphical interface (see below)
|
|
|
|
|
|
|
|
- libncursesw (optional): http://www.gnu.org/software/ncurses/
|
|
|
|
--> Used for the ncurses interface (see below)
|
2004-07-04 18:54:35 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
There are in fact several interfaces to Eliot:
|
|
|
|
- one in text mode: mostly useful to debug Eliot
|
2009-12-14 22:00:00 +01:00
|
|
|
- one using the ncursesw library: nice and almost complete, but not really
|
|
|
|
graphical
|
2008-09-06 22:06:58 +02:00
|
|
|
- a Qt interface: the best interface to use, it supports all the features.
|
|
|
|
This one is enabled by default if Qt development files are detected, but
|
|
|
|
you can force it with --enable-qt
|
2004-07-04 18:54:35 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
These interfaces can be enabled or disabled at configuration time. Example:
|
2008-12-08 22:45:27 +01:00
|
|
|
./configure --disable-text --enable-ncurses --enable-qt
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2004-07-04 18:54:35 +02:00
|
|
|
|
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
2) Linux/Unix build
|
|
|
|
===================
|
|
|
|
|
|
|
|
On Debian-based systems (like Ubuntu), the following command should install
|
|
|
|
the needed dependencies (you may need to adjust the version numbers):
|
|
|
|
|
|
|
|
sudo apt-get install libboost-dev libqt4-core libqt4-gui libconfig++8-dev libncursesw5-dev
|
|
|
|
|
|
|
|
In addition, you need to download and build libarabica (this is straight-forward).
|
|
|
|
|
|
|
|
To build Eliot, you only have to run the following command:
|
|
|
|
./configure && make
|
|
|
|
|
|
|
|
Then, as root:
|
|
|
|
make install
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3) Windows build
|
|
|
|
================
|
2008-01-08 14:52:32 +01:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
There are 2 ways to proceed:
|
|
|
|
* cross-compilation from a Linux host, using the mingw32 cross-compiler
|
|
|
|
* directly on Windows, using Cygwin (http://www.cygwin.com/)
|
|
|
|
Only the cross-compilation is officially supported (but adapting these
|
|
|
|
instructions for Cygwin shouldn't be too hard; patches welcome!).
|
2008-01-08 14:52:32 +01:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
Here are the steps for the cross-compilation:
|
2004-07-04 18:54:35 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
* install the build environment (this step is not documented here,
|
|
|
|
as it is out of the scope of this document)
|
2008-01-08 14:52:32 +01:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
* build and install dependencies:
|
|
|
|
The Makefile in the 'extras/contrib' directory should be able to do it for you:
|
2004-07-04 18:54:35 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
cd extras/contrib && make all
|
2004-07-04 18:54:35 +02:00
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
Eliot dependencies will be downloaded and cross-compiled.
|
2008-01-19 20:33:08 +01:00
|
|
|
The dependencies are installed in 'extras/contrib/inst'
|
|
|
|
|
|
|
|
* build Eliot:
|
|
|
|
|
|
|
|
- if you don't have the 'configure' script, generate it:
|
2005-04-03 23:12:03 +02:00
|
|
|
./bootstrap
|
2004-07-04 18:54:35 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
- configure with the following command:
|
|
|
|
export INST=`pwd`/extras/contrib/inst && \
|
2008-09-06 22:06:58 +02:00
|
|
|
PKG_CONFIG_PATH="${INST}/lib/pkgconfig:${PKG_CONFIG_PATH}" \
|
2008-01-19 20:33:08 +01:00
|
|
|
CPPFLAGS=-I${INST}/include LDFLAGS=-L${INST}/lib \
|
2004-07-04 18:54:35 +02:00
|
|
|
CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \
|
2005-01-01 16:42:55 +01:00
|
|
|
./configure --host=i586-mingw32msvc --build=i386-linux \
|
2011-08-16 20:16:24 +02:00
|
|
|
--with-boost=${INST} --with-expat=${INST}
|
2008-01-19 20:33:08 +01:00
|
|
|
|
|
|
|
- to compile, run 'make', possibly followed with 'make install'
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2008-09-06 22:06:58 +02:00
|
|
|
- run 'make package-win32-zip' to get everything packed up in a nice .zip
|
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
4) Mac OS X build
|
|
|
|
=================
|
|
|
|
|
|
|
|
* Installing dependencies can be done easily using MacPorts (http://www.macports.org/):
|
|
|
|
sudo port install libconfig-hr
|
|
|
|
sudo port install boost
|
|
|
|
sudo port install arabica
|
|
|
|
sudo port install qt4-mac
|
|
|
|
|
|
|
|
* Configure: you can use the following command (assuming the dependencies are installed in /opt/local):
|
|
|
|
CPPFLAGS="-I/opt/local/include/libxml2 -I/opt/local/include" \
|
|
|
|
LDFLAGS="-L/opt/local/lib" \
|
|
|
|
LIBS="-lxml2" \
|
|
|
|
./configure --enable-qt --disable-text
|
|
|
|
|
2010-02-12 19:16:37 +01:00
|
|
|
* You may need to remove the moc files manually:
|
|
|
|
rm qt/*.moc.cpp
|
|
|
|
|
2010-02-07 23:30:10 +01:00
|
|
|
* To compile, run 'make'
|
|
|
|
|
|
|
|
* Then, to get a ready to use .dmg file, run 'make package-macosx-dmg'
|