Quantcast

OBConversion in Open Babel version 2.4.1

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

OBConversion in Open Babel version 2.4.1

Jördis-Ann Schüler
Hello,

I am currently facing a problem with OpenBabel 2.4.1 and hope that you can help me.

I want to use the Java Interface of OpenBabel, so i compiled it with -DJAVA_BINDINGS=ON.
I include the generated openbabel.jar into my Java Project. My example Java file contains something like that:

System.loadLibrary("openbabel_java");
OBConversion c = new OBConversion();

I get the following error message when creating a OBConversion object:

Exception in thread "main" java.lang.UnsatisfiedLinkError: org.openbabel.openbabel_javaJNI.new_OBConversion__SWIG_2()J
at org.openbabel.openbabel_javaJNI.new_OBConversion__SWIG_2(Native Method)
at org.openbabel.OBConversion.<init>(OBConversion.java:47) 

Apparently, the shared object has been found but the symbol new_OBConversion__SWIG_2() is missing in the shared object?

Can you help me dealing with this problem, please?

I had no problem in Open Babel version 2.3.2.

Thanks,
Jördis-Ann Schüler




 

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OBConversion in Open Babel version 2.4.1

Geoff Hutchison
> I want to use the Java Interface of OpenBabel, so i compiled it with -DJAVA_BINDINGS=ON.
> I include the generated openbabel.jar into my Java Project. My example Java file contains something like that:
...
> Apparently, the shared object has been found but the symbol new_OBConversion__SWIG_2() is missing in the shared object?

Out of curiosity, what version of SWIG are you using? I'm wondering if there's a mismatch here, since SWIG is now in v3.x.

-Geoff


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OBConversion in Open Babel version 2.4.1

Jördis-Ann Schüler
Hi,

I use SWIG version 3.0.8

Thanks, Jördis
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OBConversion in Open Babel version 2.4.1

Steffen Neumann
In reply to this post by Geoff Hutchison
Hi,

On Fr, 2016-11-11 at 11:29 -0500, Geoffrey Hutchison wrote:
> >
...
> > Apparently, the shared object has been found but the symbol
> > new_OBConversion__SWIG_2() is missing in the shared object?
> Out of curiosity, what version of SWIG are you using? I'm wondering
> if there's a mismatch here, since SWIG is now in v3.x.

So 3.0.8 should be working, right ? 

Yours,
Steffen

--
IPB Halle                    AG Massenspektrometrie & Bioinformatik
Dr. Steffen Neumann          http://www.IPB-Halle.DE
Weinberg 3                   Tel. +49 (0) 345 5582 - 1470
06120 Halle                       +49 (0) 345 5582 - 0           
sneumann(at)IPB-Halle.DE     Fax. +49 (0) 345 5582 - 1409



------------------------------------------------------------------------------
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: OBConversion in Open Babel version 2.4.1

Geoff Hutchison
> So 3.0.8 should be working, right ?

You'll need to make sure the entire bindings are re-built (e.g., with javac in this case). But yes, I suspect the problem is that there's an older version of the bindings present, using SWIG2.

-Geoff
------------------------------------------------------------------------------
_______________________________________________
OpenBabel-discuss mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/openbabel-discuss
Loading...