I'm using the following manifest to include some native code in a
bundle:

<Bundle-NativeCode>
  natives/windows/x86/lwjgl32.dll; osname=Windows; processor=x86,
  natives/windows/x86_64/lwjgl.dll; osname=Windows; processor=x86-64,
  natives/linux/x86_64/liblwjgl.so; osname=Linux; processor=x86-64,
  natives/osx/x86_64/liblwjgl.dylib; osname=MacOSX; processor=x86-64,

  natives/windows/x86/OpenAL32.dll; osname=Windows; processor=x86,
  natives/windows/x86_64/OpenAL.dll; osname=Windows; processor=x86-64,
  natives/linux/x86_64/libopenal.so; osname=Linux; processor=x86-64,
  natives/osx/x86_64/libopenal.dylib; osname=MacOSX; processor=x86-64,

  natives/windows/x86/jemalloc32.dll; osname=Windows; processor=x86,
  natives/windows/x86_64/jemalloc.dll; osname=Windows; processor=x86-64,
  natives/linux/x86_64/libjemalloc.so; osname=Linux; processor=x86-64,
  natives/osx/x86_64/libjemalloc.dylib; osname=MacOSX; processor=x86-64,

  natives/windows/x86/glfw32.dll; osname=Windows; processor=x86,
  natives/windows/x86_64/glfw.dll; osname=Windows; processor=x86-64,
  natives/linux/x86_64/libglfw.so; osname=Linux; processor=x86-64,
  natives/osx/x86_64/libglfw.dylib; osname=MacOSX; processor=x86-64
</Bundle-NativeCode>

It seems that on my current platform (Linux x86-64, Felix 5.6.1), only
liblwjgl.so is found. Calls to System.loadLibrary("jemalloc") fail quietly 
(stepping through in the debugger shows that this variable:

  
https://github.com/apache/felix/blob/trunk/framework/src/main/java/org/apache/felix/framework/BundleWiringImpl.java#L2528

... only ever contains a single entry for "natives/linux/x86_64/liblwjgl.so; 
osname=Linux; processor=x86-64".

Are the rest of my binaries being ignored? Is this a bug in Felix or
is it my fault?

M

Attachment: pgpQ06F_JOAA7.pgp
Description: OpenPGP digital signature

_______________________________________________
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Reply via email to