Tuesday, July 21, 2009

Create a new toolbox for Scilab (I)

As i have to change my symbolic module to a symbolic toolbox, i want to write this to use as a future reference.

1) Get Scilab:


$ mkdir toolbox
$ cd toolbox/
toolbox$ git clone git://git.scilab.org/scilab


2) First compilation:



toolbox$ cd scilab/scilab

toolbox/scilab/scilab$ ./configure
...
checking hdf5.h usability... no
checking hdf5.h presence... no
checking for hdf5.h... no
configure: error: Cannot find headers (hdf5.h) of the library HDF5. Please install the dev package



3) HDF5 Headers:

sudo aptitude install libhdf5-serial-dev



4) Installing JHDF5 :


wget http://www.hdfgroup.org/ftp/HDF5/hdf-java/src/hdf-java-2.5-src.tar
tar -xvf hdf-java-2.5-src.tar
cd hdf-java/
./configure --with-jdk=/usr/lib/jvm/java-6-sun-1.6.0.14/include/,/usr/lib/jvm/java-6-sun-1.6.0.14/lib/
make
sudo mkdir -p /usr/share/java/jar
sudo cp lib/jhdf5.jar /usr/share/java/jar


5) Configuring again:


toolbox/scilab/scilab$ ./configure
toolbox/scilab/scilab$ make
toolbox/scilab/scilab$ bin/scilab


Well, we now have our scilab base.
We have to set all the toolboxes files, but that will be tonight.

No comments: