Compiling Fox on Linux

Compiling F.O.X. under Linux is normally easy (it is developped using Mandriva Linux). The source code for Fox now includes the wxWidgets and freeglut libraries, so dependencies should be minimal. As always, send me an email at vincefn@users.sf.net if you have any trouble with the installation.

Steps:

Installing the required graphics libraries

Below are specific instructions to install the required graphics libaries for the following distributions :

Please add or correct the instructions for your distribution...

If your distribution is not listed, just follow the general building instructions.

General Instructions (if your distribution is not listed below)

To install F.O.X. under Linux:

Mandrake & Mandriva

Mandriva 10.2 (2006)

Fedora

This is partially a guess since I do not have this distribution, so feel free to correct these

Fedora Core 3 & 4

Ubuntu

(Ubuntu 7.10)

SuSE

This is partially a guess since I do not have this distribution, so feel free to correct these

SuSE 9.3

Get, compile & install Fox

Get the Fox.tar.bz2 from SourceForge, CCP14(UK), CCP14(Canada) or CCP14(USA)

Then compile and install Fox (replace VERSION by your version of Fox):

  tar -xjf Fox-VERSION.tar.bz2
  cd Fox-VERSION
  cd Fox
  make # See note below about unicode and shared libraries options
  make install #(for this last step you must be root).

Note: there are several options for the make command:

Fox will be installed in /usr/local/bin/Fox. Otherwise the compiled file is in the src/Fox subdirectory.

Compiling a version of Fox without GUI (Fox-nogui)

It is possible to compile a version of Fox that does not use a GUI and can only be used from the command-line. This is useful if you want to use Fox on a cluster. To do that just you just need to compile the Fox-nogui target:

  tar -xjf Fox-VERSION.tar.bz2
  cd Fox-VERSION
  cd Fox
  make Fox-nogui

The resulting application is src/Fox-nogui.

Note that when switching from building Fox to building Fox-nogui (and vice-versa) you must do a  make clean first.

Compiling an optimized version of Fox

Compile options

Profile driven optimizations

Fox can be further optimized by making "test runs" which are used to give hints to the compiler on how to best optimize the code. To do this you (i) compile Fox by enabling the "recording" of the optimization, then (ii) you run a few optimizations, then (iii) you recompile using the recorded profile. This requires gcc version 3.2 or above.To do that from the Fox subdirectory, do:

make clean
make Fox profile=2
src/Fox --nogui example/pbso4-joint.xml --randomize -n 50000 -o /dev/null
src/Fox --nogui example/Cimetidine-powder.xml --randomize -n 50000 -o /dev/null
src/Fox --speedtest
make clean
make Fox profile=3
make install

This yields about 10% faster code.

None: Compile/Linux (last edited 2009-03-28 21:34:52 by VincentFavreNicolin)