CallScilab under Windows
Mike Page
Mike at Page-One.Waitrose.com
Fri Jan 21 19:45:14 CET 2011
Hi,
Has anyone managed to get CallScilab to work under Windows? The information
on the web page is mainly for Linux and is hard to convert.
I am using a pre-compiled version of Scilab 5.3.0 under Windows XP and have
built the example C source code (from
http://www.scilab.org/product/man/call_scilab.html) with Visual C++ Express
2010.
I got the include files from the directories:
C:\Program Files\Scilab-5.3.0\modules\call_scilab\includes
C:\Program Files\Scilab-5.3.0\modules\api_scilab\includes
C:\Program Files\Scilab-5.3.0\modules\core\includes
and the lib files from:
C:\Program Files\Scilab-5.3.0\bin\api_scilab.lib and call_scilab.lib
I have C:\Program Files\Scilab-5.3.0\bin in the Path so that the DLLs can be
located at run time.
The example builds OK, but there are two warnings:
1. The example includes stack_c.h, which is deprecated. I changed it to
api_scilab.h instead.
2. The third parameter of StartScilab is given as NULL, but the prototype
has this as an int (although the documentation says int*). I changed it to
0 which shouldn't make any functional difference.
That got an error-free and warning-free build.
When I run the code, the call to StartScilab generates an error:
"Impossible to read <path to my executable>\etc\jvm_options.xml"
Should there be a path or environment variable setting for this? I have an
environment variable SCI set to C:\Program Files\Scilab-5.3.0.
I copied the directory C:\Program Files\Scilab-5.3.0\etc to <path to my
executable>\etc so that I would have a default jvm_options file and the
error changes to:
"Scilab cannot create Scilab Java Main-Cass (we have not been able to find
the main Scilab class. Check if the Scilab and thirdparty packages are
available)."
Any suggestions as to where I go from here. It looks like I am missing some
step in the configuration.
Thanks,
Mike.
More information about the users
mailing list