-
Notifications
You must be signed in to change notification settings - Fork 324
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Undefined Symbols during runtime #85
Comments
I've seen something like this before, we might have possibly introduced a circular dependency in the PhysX libraries so they need to be linked multiple times. As a workaround, you can let the linker take multiple iterations over all the libraries until all the symbols are resolved. Something like this should work
|
@jcarius-nv ok so it now works but only if I don't define the errorCallback and allocatorCallback as static. The same error occurs still when they're defined as static. Thanks |
Hello @farbod1277,
Anyway since it has been a while since this has been opened. I will close it now. If you have any input from your side, feel free to open it again. |
Hi there,
I'm trying to use the PhysX API within a ROS2 node. I've cloned this repository and followed the build instructions. I'm using Ubuntu 20.04 LTS and have built the "checked" version of PhysX. All the snippets run without any issues.
The instructions for building applications with PhysX refer to adding the /include and /bin folder to the project's makefile but since ROS2 auto generates the makefiles I have to do it at the package's CMakeLists.txt level. Hence I've added the following to my CMakeLists.txt:
Here is the output of env:
I've also added the following lines to my application's header file where I'd be initialising PhysX:
Within this file I have the following lines for initialising PhysX:
And when I run my ROS2 node I get the following error:
If I instead make the DefaultAllocator and ErrorCallabck non static like so:
I get a different undefined symbol error:
This suggests that there was an issue with properly linking the PhysX libraries, but I'm not sure what I've done wrong. Any help would be much appreciated. Please let me know if you need any more details. Thanks.
The text was updated successfully, but these errors were encountered: