You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 22, 2021. It is now read-only.
Hello again!
Pitifully regardless how useful this tool seemed to me I have encountered an almost unavoidable issue with Matlab. After preparing the mex library to use the classes defined in other libraries I'm working with (concretely the MRPT toolbox, http://www.mrpt.org/), I get the following error in Matlab during execution:
Error using MRPT.RealLRF_
Invalid MEX-file '/home/jesus/Code/Matlab/mexMRPT/+MRPT/RealLRF_.mexa64': dlopen: cannot load
any more object with static TLS
It seems as if the linked libraries of MRPT have too many dependencies, so that Matlab collapses. I think you have also worked out some similar wrapping and solutions for OpenCV, which is in some way similar to the MRPT toolbox I'm using. So, do you think there could be any workaround for this issue with static TLS in Matlab?
I highly thank you for your work and support!
The text was updated successfully, but these errors were encountered:
Hi @sepidehhosseinzadeh, I suppose it highly depends on the particular project you are working with. If you are adding an external project as a dependency, it might help to have its libraries as static (e.g. using STATIC option for add_library in Cmake) in order to reduce the number of dynamic dependencies of the compiled MEX library.
Regretfully, it's been a while since I had to deal with this... To sum up I would say it need not to be straightforward to solve, depending on the particular libraries involved. If you give some more details about what you're working on maybe I could give additional advice.
Hello again!
Pitifully regardless how useful this tool seemed to me I have encountered an almost unavoidable issue with Matlab. After preparing the mex library to use the classes defined in other libraries I'm working with (concretely the MRPT toolbox, http://www.mrpt.org/), I get the following error in Matlab during execution:
Error using MRPT.RealLRF_
Invalid MEX-file '/home/jesus/Code/Matlab/mexMRPT/+MRPT/RealLRF_.mexa64': dlopen: cannot load
any more object with static TLS
It seems as if the linked libraries of MRPT have too many dependencies, so that Matlab collapses. I think you have also worked out some similar wrapping and solutions for OpenCV, which is in some way similar to the MRPT toolbox I'm using. So, do you think there could be any workaround for this issue with static TLS in Matlab?
I highly thank you for your work and support!
The text was updated successfully, but these errors were encountered: