Scilab dynamic link FAQ
Dynamic link is a complicated thing. It needs to find compiler, libraries, etc.
The online documentation is available here: http://help.scilab.org/docs/current/en_US/section_eb691bc0a443eb3a95bc5db4d1be2102.html
GNU/Linux and MAC OS X FAQ
Error on the compiler detection
ilib_gen_Make: An error occurred during the detection of the compiler(s). Set ilib_verbose(2) for more information.
Usually, it is because of a library which cannot be find.
To find more information, check into the TMPDIR, TMPDIR/libname/ (since Scilab 5.3.2) or SCI/modules/dynamic_link/src/scripts (if Scilab directory is writable) directory, you should find a file called config.log. Search for:
See `config.log' for more details ## ---------------- ## ## Cache variables. ## ## ---------------- ##
Go a few lines upper (just before the C test code), you should see:
/usr/bin/ld: cannot find -lXXX collect2: ld returned 1 exit status
Make sure that ilib_* functions have a way to find the library by adding a -L/path/to/the/library/ to the CFLAGS arguments.
Error about sci_gateway symbol missing
link: The shared archive was not loaded: /mylib.so: undefined symbol: _Z11sci_gatewayPcPFiS_iE
This error is caused by the fact that g++ has been used on C code.