The simplest example still does not work on scilab 5.5 in
xubuntu!! I am getting incredibly frustrated with swig+scilab. I have
a very boring xubuntu virtual box on an OSX host - its quite fresh
installation - this is my testing server.
I built swig with scilab support from the gsoc2012-scilab branch using
./configure --with-scilab=/home/ian/Downloads/scilab-5.5.0/bin/scilab-cli --with-scilab-inc=/home/ian/Downloads/scilab-5.5.0/include/ --prefix=/home/ian/swig_scilab
then make, make install. I then did a
/home/ian/swig-scilab/bin/swig -scilab example.i
in the Examples/scilab/simple folder of the swig source. It
generates builder.sce and example_wrap.c files. I start up scilab-cli. I
run exec builder.sce. It builds libexample.so.
I try to load the module from scilab-cli using
using scilab-cli as per the instructions, I get the following output:
-->addinter(libexample_path + filesep() + 'libexample' + getdynlibext(), 'libexample', list_functions);
nlibext(), 'libexample', list_functions)
addinter: The shared archive was not loaded: /home/ian/Code/swig-scilab/Examples/scilab/simple//libexample.so: undefined symbol: Foo
at line 20 of exec file called by :
The libexample.so generated clearly has the Foo symbol exported. A snip from nm libexample.so:
00000000002052e0 b fname
00000000000032ab T Foo_get
0000000000003381 T Foo_set
00000000000014f0 t frame_dummy
no way to debug anything as far as I can see. The shared library has
the symbol, it won't load it. I would so love to wrap my library for scilab, but the current situation is not good.