Discussion:
[Swig-devel] include files for scilab
Aashay Singhal
2017-03-31 16:13:27 UTC
Permalink
Hello all!

This is in follow up to my previous mail. I found out that swig expects all
the header files of scilab in a single directory i.e.
'/usr/local/include/scilab' which is not the case. The header files
required to compile the example_wrap.c file are in following directories :
1) ~/scilab/modules/output_stream/includes
2) ~/scilab/modules/api_scilab/includes
3) ~/scilab/modules/core/includes
4) ~/scilab/modules/localization/includes
5) ~/scilab/modules/ast/includes/types
6) ~/scilab/modules/ast/includes/ast
7) ~/scilab/modules/mexlib/includes

This is assuming that scilab is installed in the home directory.
All these files need to be written with a -I flag while doing gcc. So, I
would suggest that the documnetation (http://www.swig.org/Doc3.0/Scilab.html)
must be changed according to this. Also, in the examples the make file will
need to be updated. Looking forward to fix this.
Thanking you

Regards,
Aashay
m***@comcast.net
2017-03-31 19:07:18 UTC
Permalink
The
header files required to compile the example_wrap.c file are in
following directories : 1)
~/scilab/modules/output_stream/includes 2)
~/scilab/modules/api_scilab/includes 3)
~/scilab/modules/core/includes 4)
~/scilab/modules/localization/includes 5)
~/scilab/modules/ast/includes/types 6)
~/scilab/modules/ast/includes/ast 7)
~/scilab/modules/mexlib/includes
This is assuming that scilab is installed in the home
directory.
How was scilab installed in your home directory? I ask this because
the header file layout does not look very much at all similar to how
other packages install their header files.

Was the source of scilab unpacked and built in ~/scilab? If this is
the case then scilab may not really be installed in the normal way.
I'm not an expert in any way on scilab but I do know other languages
(like python) behave much like this. In python's case one needs to
'make install' using a prefix such as /home/user/scilabrun to copy the
built components (and header files) into their proper installed
locations.

I suspect the above is the case (you have not done a 'make install')
as all of the scilab headers appear in /usr/include/scilab when I
install it on my Fedora linux machine. I suggest you read any
build/install documentation that may come with scilab and see what it
has to say about installing it.

Mike

Loading...