2008-01-19 20:33:08 +01:00
|
|
|
Installation on Linux/Unix
|
|
|
|
==========================
|
2008-01-08 14:52:32 +01:00
|
|
|
|
2008-01-19 20:33:08 +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.
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
* If you build from a CVS snapshot, run the following commands:
|
|
|
|
./bootstrap
|
|
|
|
./configure
|
|
|
|
make
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
Then, as root:
|
|
|
|
make install
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
No graphical interface is built by default, see below for more details.
|
2004-04-08 11:43:06 +02:00
|
|
|
|
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
* If you build from a release tarball, run the following commands:
|
|
|
|
./configure
|
|
|
|
make
|
2007-08-04 22:01:27 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
Then, as root:
|
|
|
|
make install
|
2007-08-04 22:01:27 +02:00
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
No graphical interface is built by default, see below for more details.
|
2004-04-08 11:43:06 +02:00
|
|
|
|
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
|
|
|
|
- one using the ncursesw library: nice but not really graphical
|
|
|
|
- a wxWidgets interface: complete, but it does not allow multiplayer
|
|
|
|
modes, only training mode
|
|
|
|
- a Qt interface: currently under construction, it will replace the
|
|
|
|
wxWidgets interface when finished. It will support all Eliot features.
|
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:
|
|
|
|
./configure --disable-text --enable-ncurses --disable-wxwidgets --enable-qt
|
2004-04-08 11:43:06 +02:00
|
|
|
|
2004-07-04 18:54:35 +02:00
|
|
|
|
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
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
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
Eliot dependencies (libiconv, boost, wxWidgets and Qt) will be downloaded
|
|
|
|
and cross-compiled, except Qt, which is only downloaded. Install it with
|
|
|
|
Wine, ignoring the warning that mingw is not found.
|
|
|
|
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
|
|
|
- because of a bug in gettext, you need to apply a little patch to the files
|
|
|
|
installed in the 'intl' directory:
|
|
|
|
- download the patch here (link in the top-left-hand corner)
|
2008-01-08 14:52:32 +01:00
|
|
|
http://www.koders.com/noncode/fid46DF595700FEB564B6EF45BFF55067F95DCF0420.aspx
|
2008-01-19 20:33:08 +01:00
|
|
|
- apply the patch:
|
2008-01-08 14:52:32 +01:00
|
|
|
patch -p2 < gettext-win32.patch
|
|
|
|
|
2008-01-19 20:33:08 +01:00
|
|
|
- configure with the following command:
|
|
|
|
export INST=`pwd`/extras/contrib/inst && \
|
|
|
|
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 \
|
2008-01-19 20:33:08 +01:00
|
|
|
--enable-wxwidgets --with-wx-config=${INST}/bin/wx-config \
|
|
|
|
--with-boost=${INST}
|
|
|
|
|
|
|
|
- to compile, run 'make', possibly followed with 'make install'
|
2004-04-08 11:43:06 +02:00
|
|
|
|