[Scilab-Dev] Building fsqp under 5.4.1
Stéphane Mottelet
stephane.mottelet at utc.fr
Wed Jun 19 16:37:33 CEST 2013
Le 17/06/13 18:56, Stéphane Mottelet a écrit :
> Le 17/06/13 16:06, Stéphane Mottelet a écrit :
>> Hello all,
>>
>> Can anybody help me to upgrade the fsqp toolbox ? Latest sources
>> fsqp-1.4-distributable are available here :
>>
>> http://www.utc.fr/filex/get?k=bng24zHTa23tS5RpfX
>>
>> I have the following build error :
>>
>> Création des macros...
>> -- Création de [fsqp_toolboxlib] (Macros) --
>> Création de la passerelle...
>> Génère un fichier gateway
>> Génère un fichier loader
>> Génère un Makefile
>> ilib_gen_Make : Configure : Génère le Makefile.
>> ilib_gen_Make : Copie les fichiers de compilation (Makefile*,
>> libtool...) vers TMPDIR
>> ilib_gen_Make : Copie Ncfsqp.c vers TMPDIR
>> ilib_gen_Make : Copie cintfsqp2.c vers TMPDIR
>> ilib_gen_Make : Copie libfsqp.c vers TMPDIR
>> ilib_gen_Make : Copie qld.c vers TMPDIR
>> ilib_gen_Make : Configure : Génère le Makefile.
>> ilib_gen_Make : Modification du Makefile dans TMPDIR.
>> Exécute le makefile
>> !--error 10000
>> ilib_compile : Une erreur s'est produite lors de la compilation
>> In file included from cintfsqp2.c:1:
>> /Applications/scilab-5.4.1.app/Contents/MacOS/share/scilab/../../include/scilab/stack-c.h:19:6:
>>
>> error: #error Using stack-c.h is deprecated. Please use api_scilab
>> instead (try 'help api_scilab'). Note the stack-c.h API will be
>> removed after Scilab 6.0. You can define
>> __USE_DEPRECATED_STACK_FUNCTIONS__ to bypass this error.
>>
>> Where do I have to define __USE_DEPRECATED_STACK_FUNCTIONS__ in the
>> build scripts ?
>>
>> S.
>>
>> _______________________________________________
>> dev mailing list
>> dev at lists.scilab.org
>> http://lists.scilab.org/mailman/listinfo/dev
> Ok, I found where to add the definition :
>
> tbx_build_gateway('fsqp',table,..
> src_files, ..
> path,[],"","-D__USE_DEPRECATED_STACK_FUNCTIONS__
> -D__STD_C__ -I"+path)
>
> but now I have an issue with libintl.h :
>
> ilib_compile : Une erreur s'est produite lors de la compilation
> In file included from cintfsqp2.c:7:
> /Applications/scilab-5.4.1.app/Contents/MacOS/share/scilab/../../include/scilab/localization.h:26:21:
> error: libintl.h: No such file or directory
>
> This file does not exist on OSX.
>
> S.
>
OK, I am sure I'm getting close to the edge : I have built and installed
gettext, and now the interface is coorectly built. But now, I have the
following error at loading time :
-->exec(get_absolute_file_path("loader.sce")+"etc/"+"fsqp_toolbox.start");
Start fsqp toolbox
Load macros
Load gateways
addinter(libfsqp_path + filesep() + 'libfsqp' + getdynlibext(),
'libfsqp', list_functions);
!--error 236
addinter : La bibliothèque partagée n'a pas été chargée:
dlopen(/Users/mottelet/scilab/fsqp-1.4-distributable/sci_gateway/c//libfsqp.dylib,
10): Symbol not found: _Error
Referenced from:
/Users/mottelet/scilab/fsqp-1.4-distributable/sci_gateway/c//libfsqp.dylib
I'm almost sure this has to do with a localization issue. Everything was
working with Scilab 5.3.3, maue a Scilab guru could help me to adapt the
interface ?
S.
More information about the dev
mailing list