eliot-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Eliot-dev] eliot INSTALL


From: Olivier Teulière
Subject: [Eliot-dev] eliot INSTALL
Date: Sun, 07 Feb 2010 22:30:10 +0000

CVSROOT:        /cvsroot/eliot
Module name:    eliot
Changes by:     Olivier Teulière <ipkiss>       10/02/07 22:30:10

Modified files:
        .              : INSTALL 

Log message:
        Improved the build instructions, and added a section for Mac OS X

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/eliot/INSTALL?cvsroot=eliot&r1=1.14&r2=1.15

Patches:
Index: INSTALL
===================================================================
RCS file: /cvsroot/eliot/eliot/INSTALL,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -b -r1.14 -r1.15
--- INSTALL     14 Dec 2009 21:00:00 -0000      1.14
+++ INSTALL     7 Feb 2010 22:30:10 -0000       1.15
@@ -1,29 +1,45 @@
-Installation on Linux/Unix
-==========================
+Summary
+=======
 
-In the following, do not forget that the ./configure command can take options.
-Run ./configure --help to have the list of available options.
+This file contains instructions on how to buid Eliot on various platforms.
+In case of compilation problem, you can send a mail to the address@hidden
+mailing-list.
 
-* If you build from a CVS snapshot, run the following commands:
-    ./bootstrap
-    ./configure
-    make
+1) General information: useful information for any platform
+2) Linux/Unix build
+3) Windows build
+4) Mac OS X build
 
-Then, as root:
-    make install
 
-See below for more details on the available interfaces.
 
+1) General information
+======================
 
-* If you build from a release tarball, run the following commands:
-    ./configure
-    make
+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.
 
-Then, as root:
-    make install
+In the following, do not forget that the ./configure command can take options.
+Run ./configure --help to have the list of available options.
 
-See below for more details on the available interfaces.
+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.
 
+ - 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)
 
 There are in fact several interfaces to Eliot:
  - one in text mode: mostly useful to debug Eliot
@@ -36,19 +52,28 @@
 These interfaces can be enabled or disabled at configuration time. Example:
     ./configure --disable-text --enable-ncurses --enable-qt
 
-Dependencies:
- - libboost (mandatory): needed 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): needed for the graphical interface
- - libncursesw (optional): needed for the ncurses interface
 
 
-Windows build
-=============
+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
+================
 
 There are 2 ways to proceed:
 * cross-compilation from a Linux host, using the mingw32 cross-compiler
@@ -66,8 +91,7 @@
 
     cd extras/contrib && make all
 
-  Eliot dependencies (libiconv, boost, and Qt) will be downloaded
-  and cross-compiled (except Qt, which is already compiled).
+  Eliot dependencies will be downloaded and cross-compiled.
   The dependencies are installed in 'extras/contrib/inst'
 
 * build Eliot:
@@ -94,3 +118,23 @@
 
     - run 'make package-win32-zip' to get everything packed up in a nice .zip
 
+
+
+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
+
+* To compile, run 'make'
+
+* Then, to get a ready to use .dmg file, run 'make package-macosx-dmg'




reply via email to

[Prev in Thread] Current Thread [Next in Thread]