Difference between revisions of "The new simulator"

From IridiaWiki
Jump to navigationJump to search
(todo name of the sim)
(added information on how not to mess with debian installation)
Line 6: Line 6:
 
Of course you need an account to be able to retrieve the files. People of IRIDIA can easily
 
Of course you need an account to be able to retrieve the files. People of IRIDIA can easily
 
have an acces by asking to the sysadmin. For anybody else interested, you should write us.
 
have an acces by asking to the sysadmin. For anybody else interested, you should write us.
First login like this (just replace acampo by your login name)
+
First login like this (just replace <username> by your login name)
   
 
<pre>
 
<pre>
$cvs -d:pserver:acampo@iridia.ulb.ac.be/home/cvsroot login
+
$cvs -d:pserver:<username>@iridia.ulb.ac.be/home/cvsroot login
 
</pre>
 
</pre>
   
Line 15: Line 15:
   
 
<pre>
 
<pre>
$cvs -d:pserver:acampo@iridia.ulb.ac.be/home/cvsroot co newSimulator
+
$cvs -d:pserver:<username>@iridia.ulb.ac.be/home/cvsroot co newSimulator
 
</pre>
 
</pre>
   
Line 37: Line 37:
   
 
== Compiling ==
 
== Compiling ==
In the tgz, we have ODE, Dyna and OK.
+
In the tgz, we have ODE, Dyna and OK.
First of all, compile ODE. Then you have to copy by hand the files libode.a and includes
+
First of all, compile ODE. Assuming that the directory where you checked out the simulator is called <tt>simulator</tt> and that you already cd into it, do:
in the appropriate directories e.g. ''/usr/local/lib'' and ''/usr/local/include/ode''.
 
   
 
<pre>
 
<pre>
  +
~simulator$ cd ode
~ode$ ./configure
 
 
~ode$ make
 
~ode$ make
~ode$ su
+
~ode$ cd ..
~ode# mkdir /usr/local/include/ode
 
~ode# cp include/ode/* /usr/local/include/ode/
 
~ode# cp lib/libode.a /usr/local/lib/
 
 
</pre>
 
</pre>
  +
  +
Now you need to install FMOD. You can download it from <tt>http://www.fmod.org/files/fmodapi374linux.tar.gz</tt>. Uncompress it into your simulator directory:
  +
  +
<pre>
  +
~simulator$ tar xfz fmodapi374linux.tar.gz
  +
~api$ cd fmodapi374linux/api
  +
~api$ ln -s inc/ fmod
  +
~api$ cd -
  +
</pre>
  +
  +
If you use Debian, you have to install the package libxml2-dev (if it is not installed).
   
 
Once this is done, you can compile ok10. Move to the directory and type
 
Once this is done, you can compile ok10. Move to the directory and type

Revision as of 17:42, 31 March 2005

This page is intended to give some preliminary support for the new simulator of IRIDIA and coordination among developers.

Getting the sources

You can retrieve the files from a CVS repository located on iridia server. Of course you need an account to be able to retrieve the files. People of IRIDIA can easily have an acces by asking to the sysadmin. For anybody else interested, you should write us. First login like this (just replace <username> by your login name)

$cvs -d:pserver:<username>@iridia.ulb.ac.be/home/cvsroot login

Then retrieve files :

$cvs -d:pserver:<username>@iridia.ulb.ac.be/home/cvsroot co newSimulator


Once files are retrieved, cvs has a memory of the location of the repository, so you just have to work inside the same directories and each time you finish a coding session, ar reach a crucial step, do a

$cvs commit

and do also an update before starting to code, so you retrieve on your local copy the modifications brought by anybody else to the files of the cvs. Command for the update :

$cvs update

If you don't want to get bored using CVS, you can use the GUI Cervisia. If you want to learn more about CVS commands, branches, tags, releases and so on, you can read this CVS reference for example : http://www.wincvs.org/howto/cvsdoc/

Compiling

In the tgz, we have ODE, Dyna and OK. First of all, compile ODE. Assuming that the directory where you checked out the simulator is called simulator and that you already cd into it, do:

~simulator$ cd ode
~ode$ make
~ode$ cd ..

Now you need to install FMOD. You can download it from http://www.fmod.org/files/fmodapi374linux.tar.gz. Uncompress it into your simulator directory:

~simulator$ tar xfz fmodapi374linux.tar.gz
~api$ cd fmodapi374linux/api
~api$ ln -s inc/ fmod
~api$ cd -

If you use Debian, you have to install the package libxml2-dev (if it is not installed).

Once this is done, you can compile ok10. Move to the directory and type make clean. then run ./clean.sh and eventually type make. If you have installed all the dependencies, it should work. Otherwise you can report the problems in the bugs'n problems section :-)

Bugs'n problems

All the reported problems are reported using the syntax : [date of discovery] [date of fixing] [author] : name Followed optionnally by a short description.

Open ones

[2005-03-21] [] [Alex] : I have ODE on my computer, but it won't work with the simulator. I had to compile the provided version of ODE. Did David make any modification to the ODE lib ? If yes we need to discuss about it. I should not be forced to install a modified lib, since it could contain bugs or be different from the original one and disturb the behaviour of other programs.

Closed ones

TODO

I suggest we use the same syntax as above : [date of discovery] [date of fixing] [author] : name Followed optionnally by a short description.

Open ones

[2005-03-21] [] [Alex] : INSTALL file to write

[2005-03-21] [] [Alex] : configure script to provide

[2005-03-21] [] [Alex] : problem with libxml headers ? In debian libxml2 headers are located in /usr/include/libxml2/libxml

[2005-03-21] [] [Alex] : REMOVE FMOD.

[2005-03-30] [] [Alex] : We need to give a name to this simulator. Maybe it is dyna ?

Closed ones