Eclipse 4 and native code [message #1021593] |
Wed, 20 March 2013 07:09  |
Eclipse User |
|
|
|
Hi,
I am trying to use native code in my Eclipse 4 app. I read several wikis and blogs but I can't get it to work. The issue is that the native code has dependencies to other native code and it isn't resolved by Eclipse.
What I have done so far is to create a project that contains the third-party JAR and the native code DLL's. The fragment approach described by Alex Blewitt here didn't even find the DLL's at all.
http://www.eclipsezone.com/eclipse/forums/t64011.html
So I put everything in one plugin project to test. But I always get
java.lang.UnsatisfiedLinkError: ... Can't find dependent libraries
So I tried to do it as explained in here
http://wiki.eclipse.org/Eclipse_Plug-in_Development_FAQ#How_do_I_include_native_libraries_in_my_bundle.3F
I created an OSGi Service that calls System.loadLibrary() as described in the wiki, but on debugging I don't even come across the static init block that contains the loadLibrary() statements.
I read several times that it is an issue having dependent native code libraries, but fairly no solution except the loadLibrary() stuff. But maybe the place where I put those statements is wrong.
Can anybody give me a hint on how to solve this? Where to put the loadLibrary() statements?
Thanks,
Dirk
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.59388 seconds