-
Notifications
You must be signed in to change notification settings - Fork 285
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
Linking Problem with libdart.so on ubuntu 15.10 #695
Comments
It seems the linker fails to find proper libraries, but I honestly don't know much about using compiler and linker. I instead use CMake to build things. If you willing to use CMake for your project, then could you take a look at this example and this patch if it's useful to you? |
Thank you @jslee02 I've tried the example. I get the following error message.
So maybe the problems are
It seems that the error comes from the setting of the compiler P.S. I get the similar undefined reference even on Mac (OSX El Captain) Is there any settings I should add? Or there's other problem? |
Quick question: Did you install DART 5.1 with this patch? |
Silly question: How could I install the patch? Should I remove first, download, and install it again? |
If you installed DART from the dart ppa, then you should remove it first as: sudo apt-get remove libdart5-dev
sudo apt-get remove libdart-core5-dev Or, if you installed DART from the source, then you don't need to remove it. It will be overwritten when you install a new one. A quick way to test the example would be:
|
Thank you for you zip with patch. However, I run into series of error of nplot and osgDart support while building DART
Should I remove the optional support for DART first? |
I solved it by reboot the virtual machine to make sure there's enough swap space. And I built DART with the patch again. The patch works fine and the example you gave runs well. Thank you very much! |
Great! Once #698 is merged, you can use the patched version of DART from the PPA back. |
Dear all,
This is my first time to use DART sim and I have some problem while testing my own code.
I've successfully installed dart 5.1 on my ubuntu which installed on parallel desktop. I tested by running the tutorial binaries in dart source files, and they work fine.
However, when I try to build my own code in another dir, let's say ~/proj/dart-test/ with main.cpp as follows.
I separate the compiling process from linking process with the following command.
compile
g++ -c main.cpp -Wall -msse2 -fPIC -std=c++11 -I/usr/include/eigen3 -I/usr/include/bullet --verbose
link
g++ -o main main.o- -lboost_system -lBulletSoftBody -lBulletDynamics -lBulletCollision -lLinearMath -lassimp -ldart -Wl,--verbose
And the compile process is fine, no error or warning. However, link process dump the following message, which shows that undefined reference to Skeleton::create (where the verbose options shows that I've link the libdart.so). What did I miss?
Error message
Edit: I (@jslee02) applied syntax highlighting to improve the readability.
The text was updated successfully, but these errors were encountered: