问题
I have a large mixed java/c++ application that loads multiple shared libs into java. It works fine on my Ubuntu 12.04 32-bit machine, but I'm having problems getting things to work on a Fedora 17 64-bit machine. Everything compiles fine, but when I try to run it I get:
Exception in thread "main" java.lang.UnsatisfiedLinkError: /pathto/libmylib.so: dlopen: cannot load any more object with static TLS
Any help is greatly appreciated!
UPDATE: I've narrowed this down to a problem with PCL (point cloud library) dependencies. libmylib.so depends on PCL, but can also be compiled without PCL if it's not installed. Compiling without PCL works fine. I'm waiting on the folks in the PCL community to get back to me, and I'll update this thread based on their suggestions.
回答1:
It looks like PCL library depends on libgomp
, and you are likely hitting this issue.
来源:https://stackoverflow.com/questions/13650740/dlopen-cannot-load-any-more-object-with-static-tls