Thank you for all what you do.
version: 5.15.0
operating system: ubuntu linux x64
I am trying to get the library for javascript/nodejs. The support for it declared on page
http://sbml.org/Software/libSBML/5.15.0/docs//cpp-api/libsbml-installation.html
1) I 'v tried download and succesfully install binaries from
https://sourceforge.net/projects/sbml/files/libsbml/5.15.0/stable/Linux/64-bit/libSBML-5.15.0-Linux-x64.deb
but it seems to me there is no nodejs support files within installed library.
2) I'v tried build and install from sources
https://sourceforge.net/projects/sbml/files/libsbml/5.15.0/stable/libSBML-5.15.0-core-src.tar.gz
as described in documentation but again no success. The configuration step with GNU make
./configure --with-javascript
results in log message were:
configure: WARNING: unrecognized options: --with-javascript
...
Is javascript still supported in libSBML?
Javascript is supported, but you will need to use the cmake build system. if you configure using
cmake -DWITH_JAVASCRIPT=ON <other options=""></other>
then it ought to work. Please let us know if you have further issues.
best
Frank
I am not experienced in console cmake and libsbml did not provide manual for it. So I tried with cmake-gui and options: WITH_JAVASCRIPT. Is it the same as your option?
Unfortunately, there are errors again.
nodejs and node-gyp are installed. I have no ideas what's wrong. BTW make/compilation without javascript is OK.
I'v attached cmake configuration log.
Evgeny Metelkin
Last edit: InSysBio 2017-10-17
I'v tried also in Windows10 x64 + cmake-gui +VS2017. The similar behavior:
Everything OK without javascript
Building with javascript did not result in critical errors, but sbml.node was missed.
Hi
Sorry for the delay in replying.
Could you let us know which node version you are using ?
For us v.0.12.0 was working using swig 3.0.5.
It seems javascript have jumped very fast so we need to readdress our builds.
It would also be useful if you could include the CMakeCache.txt files from each build win/linux.
Thanks
Sarah
Hi
I am using on Windows 10
NodeJS v6.11.3
swigwin 3.0.12
CMakeCache.txt attached
on Ubuntu/Linux
NodeJS v4.2.6
swigwin 3.0.8
In the meantime we have confirmed, that SWIG won't currently work with NodeJS newer than 6.x. And we fixed a build issue that would require a manually change in directory. (fixed in libsbml SVN and will be part of the upcoming release).
With that I was able to build the binaries just fine:
linux x64: https://www.dropbox.com/s/r5vj5cjs0bjrurl/node-4.2.6-linux-x64-sbml.node.tar.gz?dl=0
win 64: https://www.dropbox.com/s/gt2wmo4ai5ryoj4/node-6.11.3-win64-sbml.zip?dl=0
the only thing to take care of would be on ubuntu to ensure that the correct node interpreter is installed (as there is another node package, that does different things).
best
Frank
Hi Frank, Sarah.
Yes, it works!
Thank you so much.
Evgeny Metelkin.