I've tried something more simple:
1) copied the c function from
https://github.com/scilab/scilab/blob/master/scilab/modules/scicos_blocks/src/c/absolute_value.c
2) changed the name from the .c file and name of the void function (fubar.c and void fubar )
3) used the ilib_for_link command and included the folder corresponding with
https://github.com/scilab/scilab/tree/master/scilab/modules/scicos_blocks/includes in the arguments
ibn=ilib_for_link('fubar','fubar.c',[],'c','','loader.sce','','','-I /home/xxx/Projects/scilab/scilab/modules/scicos_blocks/includes','','')
Generate a loader file
Generate a Makefile
ilib_gen_Make: Copy compilation files (Makefile*, libtool...) to TMPDIR
ilib_gen_Make: Copy fubar.c to TMPDIR
ilib_gen_Make: configure : Generate Makefile.
ilib_gen_Make: Modification of the Makefile in TMPDIR.
Running the Makefile
Generate a cleaner file
ibn =
"libfubar.so"
4) create an xcos model using a generic_block3 and fill in fubar as " simulation function" in the arguments
This leads to the error:
" Initialisation problem:
scicosim : unknown block : fubar"
I don't seem to figure out how this importing of c-functions works ...
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)