Discussion:
[Swig-user] Incompatibility with Scilab 6.0
Aashay Singhal
2017-03-28 19:48:17 UTC
Permalink
Hello everyone,

While setting up swig to use with scilab 6.0, I came across certain issues.
I ran
1. `./configure --with-scilab=/home/scilab_/scilab/bin
--with-scilab-inc=/home/scilab_/scilab/modules/api_scilab/includes`
2. `make`
3. `make install`

After this I tried running scilab demo for scilab. The issues I faced are
as follows :

1. The make command in the gives following error :`example_wrap.c:736:21:
fatal error: version.h: No such file or directory`
2. I found these libraries in the scilab directory and pointed gcc to
search for them there. But still the stack-c.h is required which is no more
present in scilab 6.0. Also, according to scilab devs, this header file can
be removed as a dependency safely. So, this is an issue.
3. Even after removing the stack-c.h dependency it gives multiple errors,
link here. <https://pastebin.com/qmv3tBWn>

Please help me figure this out. Also, if someone can guide me a bit, I will
be happy to fix these bugs myself.
Thank you
Aashay
Aashay Singhal
2017-03-29 18:51:39 UTC
Permalink
Hello!

I found out that the example_wrap.c doesn't have a problem but it is
calculating wrong version. I have scilab6.0 but it is evaluating the
version to be less than 6.0. This is why there were errors.
Line 737 in example_wrap.c calculates the version (i.e. if the version is
6.0.0 then it will calculate it to be 600).
So, can you tell me where does this code take the version from?

Thanks
Aashay
Post by Aashay Singhal
Hello everyone,
While setting up swig to use with scilab 6.0, I came across certain
issues. I ran
1. `./configure --with-scilab=/home/scilab_/scilab/bin
--with-scilab-inc=/home/scilab_/scilab/modules/api_scilab/includes`
2. `make`
3. `make install`
After this I tried running scilab demo for scilab. The issues I faced are
fatal error: version.h: No such file or directory`
2. I found these libraries in the scilab directory and pointed gcc to
search for them there. But still the stack-c.h is required which is no more
present in scilab 6.0. Also, according to scilab devs, this header file can
be removed as a dependency safely. So, this is an issue.
3. Even after removing the stack-c.h dependency it gives multiple errors,
link here. <https://pastebin.com/qmv3tBWn>
Please help me figure this out. Also, if someone can guide me a bit, I
will be happy to fix these bugs myself.
Thank you
Aashay
Aashay Singhal
2017-03-29 19:51:05 UTC
Permalink
I am able to resolve the issue. The only problem now is, I have to change
the makefile so that it looks for the header files of scilab at right place
which is kind of manageable.
Thanks
Aashay
Post by Aashay Singhal
Hello!
I found out that the example_wrap.c doesn't have a problem but it is
calculating wrong version. I have scilab6.0 but it is evaluating the
version to be less than 6.0. This is why there were errors.
Line 737 in example_wrap.c calculates the version (i.e. if the version is
6.0.0 then it will calculate it to be 600).
So, can you tell me where does this code take the version from?
Thanks
Aashay
Post by Aashay Singhal
Hello everyone,
While setting up swig to use with scilab 6.0, I came across certain
issues. I ran
1. `./configure --with-scilab=/home/scilab_/scilab/bin
--with-scilab-inc=/home/scilab_/scilab/modules/api_scilab/includes`
2. `make`
3. `make install`
After this I tried running scilab demo for scilab. The issues I faced are
fatal error: version.h: No such file or directory`
2. I found these libraries in the scilab directory and pointed gcc to
search for them there. But still the stack-c.h is required which is no more
present in scilab 6.0. Also, according to scilab devs, this header file can
be removed as a dependency safely. So, this is an issue.
3. Even after removing the stack-c.h dependency it gives multiple errors,
link here. <https://pastebin.com/qmv3tBWn>
Please help me figure this out. Also, if someone can guide me a bit, I
will be happy to fix these bugs myself.
Thank you
Aashay
William S Fulton
2017-04-27 18:58:58 UTC
Permalink
Simon, does Scilab 6 work now? If so, can we set it up on Travis to test?

William
Post by Aashay Singhal
I am able to resolve the issue. The only problem now is, I have to change
the makefile so that it looks for the header files of scilab at right place
which is kind of manageable.
Thanks
Aashay
Post by Aashay Singhal
Hello!
I found out that the example_wrap.c doesn't have a problem but it is
calculating wrong version. I have scilab6.0 but it is evaluating the
version to be less than 6.0. This is why there were errors.
Line 737 in example_wrap.c calculates the version (i.e. if the version is
6.0.0 then it will calculate it to be 600).
So, can you tell me where does this code take the version from?
Thanks
Aashay
Post by Aashay Singhal
Hello everyone,
While setting up swig to use with scilab 6.0, I came across certain
issues. I ran
1. `./configure --with-scilab=/home/scilab_/scilab/bin
--with-scilab-inc=/home/scilab_/scilab/modules/api_scilab/includes`
2. `make`
3. `make install`
After this I tried running scilab demo for scilab. The issues I faced
1. The make command in the gives following error
:`example_wrap.c:736:21: fatal error: version.h: No such file or directory`
2. I found these libraries in the scilab directory and pointed gcc to
search for them there. But still the stack-c.h is required which is no more
present in scilab 6.0. Also, according to scilab devs, this header file can
be removed as a dependency safely. So, this is an issue.
3. Even after removing the stack-c.h dependency it gives multiple
errors, link here. <https://pastebin.com/qmv3tBWn>
Please help me figure this out. Also, if someone can guide me a bit, I
will be happy to fix these bugs myself.
Thank you
Aashay
------------------------------------------------------------
------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Swig-devel mailing list
https://lists.sourceforge.net/lists/listinfo/swig-devel
Loading...