Docs > Ikaros for Linux
These are the Linux specific instructions on how to compile Ikaros using the included Code::Blocks project and how to make a new Ikaros project.
Instructions of how to run Ikaros, both from the IDE and from the terminal, and how to add a new module to the project are also included.
The software, used in this document, are listed in the end of the document. Ikaros will most likely work with later package than those listed here.
sudo apt-get install libpng-dev g++ libgsl0-dev libjpeg62-dev
This document explain how to compile Ikaros using the open source cross platform IDE Code::Blocks.
sudo apt-get install libpng-dev g++ libgsl0-dev libjpeg62-dev
Compiler settings Add "LINUX" in #defines. Linker settings Add the following libraries to Link libraries: gslcblas jpeg pthread png z There is a bug in libpthread that results in segmentation fault when using dynamic linked libpthread together with signal. To avoid this the libraries are linked static. Add "-static" in the other link options. Search directories add "../../../Source" to Compiler search directory.
Output filename ../../../Bin/ikaros Execution working ../../../Bin
To run Ikaros you can either run it directly from Code::Blocks or use the terminal.
In Code::Blocks, press the "Run" button to start Ikaros. Ikaros is initially set up to run the WebUI Demo and will start up with that file and wait for a web browser to connect to port 127.0.0.1:8000. Enter this URL into FireFox. This will show a start-up page in the browser from which the different views can be selected.
The Ikaros control file can be changed by specifying the "set programs' argument" in the "Project" file menu. It is best to use a relative path to the ikc file here, for example: '../Examples/web_ui_objects.ikc', since this allows the project to be moved around.
At the shell prompt write the following:
> ./ikaros experimentfile.ikc
Here, "experimentfile.ikc" is the path to the experiment you want to run. Example ikc-files are available in the Examples directory. Note that the Ikaros binary must be placed at the correct location relative to the Source directory. If you move the binary from the Ikaros/Bin directory or set up your path so that Ikaros/Bin in in your search path, you need to change IKAROSPATH in IKAROS_System.h to point to the absolute location of the Ikaros directory.
Command line options can also be specified here.
While quite easy to add another module to the simulator it does involve a few steps. The idea is to create a new folder to hold the module, add the folder to the project, add a bit of documentation (you will thank yourself for doing this), and tell the system to add the module to the Ikaros.
An example on how to write an Ikaros module can be found here.
Ubuntu Linux
http://www.ubuntu.com/
Ubuntu 7.04 (Feisty Fawn)
Code::Blocks
http://www.codeblocks.org/
Code::Blocks SVN (3960)
Ikaros
http://www.ikaros-project.org/
Ikaros 1.0
Independent JPEG Group
http://www.ijg.org/
libjpeg62-dev
GSL - GNU Scientific Library
http://www.gnu.org/software/gsl/
libgsl0-dev
Only GSL's BLAS functions are used.
POSIX Threads
libpthread-dev
PNG Libary
http://www.libpng.org/
libpng12-dev
L Libary
http://www.zlib.net/
zlib1g-dev
Copyright © 2001-2007 Christian Balkenius