[Scilab-Dev] problem compiling toolbox C gateway with Scilab 6.0 alpha

Stéphane Mottelet stephane.mottelet at utc.fr
Thu Jul 30 18:08:38 CEST 2015


Hello all,

I still have this compilation problem under 6.0-alpha although the 
toolbox compiles fine under Scilab 5.5.2. If I look carefully in the 
error log, there seems to be a problem with a macro which returns the 
module name (spset is the name of the macro at the scilab level)

L"spset"

instead of

"spset"

For the second toolbox (fsqp) I know I have to revamp all the gateway 
which uses the stack...

Thanks for your help.

Le 03/07/2015 16:08, Stéphane Mottelet a écrit :
> Hello,
>
> Thanks for the fix (Eigen dependency) in Yasp nightly build. Now I 
> have two problems, each specific to a different toolbox, which compile 
> fine under Scilab 5.5.2 (OSX 10.9.5)
>
> *with the first toolbox (with ApiScilab interfacing style)
>
>    Commande : 
> /Applications/scilab-branch-YaSp-1435585794.app/Contents/MacOS/share/scilab/modules/dynamic_link/src/scripts/scicompile.sh 
> spset  libspset.cpp libspset.h libspset.hxx sparse_set.c
> stderr :
>    Exécute le makefile
> ilib_compile : Commande de compilation : make  CFLAGS=" 
> -D__SCILAB_TOOLBOX__  -g 
> -I/Applications/scilab-branch-YaSp-1435585794.app/Contents/MacOS/share/scilab/../../include/scilab/ 
> -I/Applications/scilab-branch-YaSp-1435585794.app/Contents/MacOS/share/scilab/../../include/ 
> " CXXFLAGS=" -D__SCILAB_TOOLBOX__  -g 
> -I/Applications/scilab-branch-YaSp-1435585794.app/Contents/MacOS/share/scilab/../../include/scilab/ 
> -I/Applications/scilab-branch-YaSp-1435585794.app/Contents/MacOS/share/scilab/../../include/ 
> " 
> FFLAGS="-I/Applications/scilab-branch-YaSp-1435585794.app/Contents/MacOS/share/scilab/../../include/scilab/ 
> "
> Sortie :
> stderr : libspset.cpp:13:60: warning: conversion from string literal 
> to 'wchar_t *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
> stderr :     if(wcscmp(_pwstFuncName, L"spset") == 0){ 
> addCFunction(L"spset", &sparse_set, MODULE_NAME); }
> stderr : ^
> stderr : libspset.cpp:13:83: warning: conversion from string literal 
> to 'wchar_t *' is deprecated [-Wc++11-compat-deprecated-writable-strings]
> stderr :     if(wcscmp(_pwstFuncName, L"spset") == 0){ 
> addCFunction(L"spset", &sparse_set, MODULE_NAME); }
> stderr : ^
> stderr : libspset.cpp:9:21: note: expanded from macro 'MODULE_NAME'
> stderr : #define MODULE_NAME L"libspset"
> stderr :                     ^
> stderr : 2 warnings generated.
> stderr : sparse_set.c:6:10: fatal error: 'MALLOC.h' file not found
> stderr : #include "MALLOC.h"
> stderr :          ^
> stderr : 1 error generated.
> stderr : make: *** [sparse_set.lo] Error 1
>
> (...)
>
> *with the second one (fsqp Atoms module, old stack interfacing style) 
> : no problem at built time, but at loading time I got :
>
> macmottelet-gi-0:SCI mottelet$ 
> /Applications/scilab-branch-YaSp-1435585794.app/Contents/MacOS/bin/scilab 
> -nw -f fsqp/loader.sce
> JavaVM: requested Java version (1.5) not available. Using Java at 
> "/System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home" 
> instead.
> Scilab branch-YaSp-1435585794 (Jun 30 2015, 06:35:20)
>
>  Start fsqp toolbox
>
>  Load macros
>
>  Load gateways
> addinter : La bibliothèque partagée n'a pas été chargée: 
> dlopen(/Users/mottelet/svn/sysmetab/tags/4.0/SYSMETAB/SCI/fsqp/sci_gateway/c//libfsqp.dylib, 
> 10): Symbol not found: _SearchInDynLinks
>   Referenced from: 
> /Users/mottelet/svn/sysmetab/tags/4.0/SYSMETAB/SCI/fsqp/sci_gateway/c//libfsqp.dylib
>   Expected in: flat namespace
>  in 
> /Users/mottelet/svn/sysmetab/tags/4.0/SYSMETAB/SCI/fsqp/sci_gateway/c//libfsqp.dylib
>
> at line    18 of executed file loader.sce
> at line    20 of executed file 
> /Users/mottelet/svn/sysmetab/tags/4.0/SYSMETAB/SCI/fsqp/sci_gateway/loader_gateway.sce
> at line    32 of executed file 
> /Users/mottelet/svn/sysmetab/tags/4.0/SYSMETAB/SCI/fsqp/etc/fsqp_toolbox.start
> at line    10 of executed file fsqp/loader.sce
>
>
> What can I do myself to fix this ? Thanks for your help
>
> S.
>
>
>
>
>


-- 
Département de Génie Informatique
EA 4297 Transformations Intégrées de la Matière Renouvelable
Université de Technologie de Compiègne -  CS 60319
60203 Compiègne cedex




More information about the dev mailing list