-
Notifications
You must be signed in to change notification settings - Fork 160
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
cannot compile trajopt #20
Comments
Can you provide more information? What system are you compiling on? What version of OSG do you have installed? Can you copy/paste the output from cmake? |
Im using ubuntu 14.04, cmake .. -DGUROBI_LIBRARY=/opt/gurobi751/linux64/lib/libgurobi75.so |
Looks like an issue with OpenSceneGraph 3.4.2, EventHandler handler was ether moved or removed. It should compile with OpenSceneGraph 3.4.0 |
I am getting the exact same error. Installing OpenSceneGrasp 3.4.0 from source didn't help it. |
Try with |
Can you also try to compile OSG 3.4.1 from source and then compile trajopt? |
I've compiled without OSG (compiled the openrave without OSG as well) and it worked fine. Only problem is thatOpenRAVE is throwing a warning:
|
Can you post all the commands you ran to install/compile OSG, OpenRave, and TrajOpt? Including every |
Initially, I followed this to install OpenRAVE: https://scaron.info/teaching/installing-openrave-on-ubuntu-16.04.html
I have just tried installing OSG 3.4.1 but the openrave is not even compiling now. |
Why don't you start fresh,
Past the commands you ran to build and the resulting errors. |
Okay, so I've uninstalled and installed everything from scratch. Here is what I did after uninstalling:
And I get the exact same errors. |
I am able to build the trajopt without |
Yeah, don't install Uninstall the apt-get version and reinstalled the one from source by running:
However, you're right about OSG being needed only for visualization, so there's no need to build with it. |
If I don't have |
Whats the version of your OS? |
It's Ubuntu 16.04. I've ended up compiling openrave by disabling OSG. I uninstalled OSG 3.4.x that I installed from source and installed |
I installed libopenscegraph-dev for trajopt but it doesnt work with openrave.When I use openscenegraph same as trajopt , openrave gives an error that it doesnt load the environment. I am a beginner using two together, can you give instructions on how to use qtcoin with openrave? |
I am using ubuntu 16.04 , I sloved above error by libopenscengraph-dev. Due to some reasons I did compiling again and I come across this error still |
my sudo apt-get install libopenscenegraph-dev doesnt install libopenscegraph-dev.so and results in .md5sums,.lists files . while try to remove libopenscenegraph100v5 it also removes libopenscengraph-dev. So kindly please let how I can solve this without the above error. |
I sloved this problem by uninstalling and reinstalling with the following steps and the setting ENV_VAR in .bashrc |
My solution:
|
thanks for this post. I almost tried every method mentioned above by everyone and finally successfully build. and |
My final solution : Environment: Ubuntu 16 Step 1: Install OpenRAVE. Ref: https://gitcode.net/mirrors/crigroup/openrave-installation?utm_source=csdn_github_accelerator. Step 2: Install CMake, boost, and Eigen using your package manager (Don't install OpenSceneGraph as we have install it at step 1. This is important). Step 3: Install trajopt. Command as follows: An error I meet: trajopt/src/osgviewer/osgviewer.cpp:17:10: fatal error: osg/CameraNode: No such file or directory Step 4: For testing, refer to https://rll.berkeley.edu/trajopt/doc/sphinx_build/html/install.html |
I couldn't build the package successfully. I get the following error,
../../../lib/libosgviewer.so: undefined reference to
osgGA::EventHandler::event(osg::NodeVisitor*, osg::Drawable*)' ../../../lib/libosgviewer.so: undefined reference to
typeinfo for osgGA::EventHandler'../../../lib/libosgviewer.so: undefined reference to
virtual thunk to osg::Drawable::EventCallback::run(osg::Object*, osg::Object*)' ../../../lib/libosgviewer.so: undefined reference to
osgGA::EventHandler::handle(osgGA::Event*, osg::Object*, osg::NodeVisitor*)'../../../lib/libosgviewer.so: undefined reference to
osg::Callback::traverse(osg::Object*, osg::Object*)' ../../../lib/libosgviewer.so: undefined reference to
osg::NodeVisitor::NodeVisitor(osg::NodeVisitor const&, osg::CopyOp const&)'../../../lib/libosgviewer.so: undefined reference to
osg::Drawable::EventCallback::run(osg::Object*, osg::Object*)' ../../../lib/libosgviewer.so: undefined reference to
osgGA::GUIEventHandler::handle(osgGA::Event*, osg::Object*, osg::NodeVisitor*)'../../../lib/libosgviewer.so: undefined reference to
virtual thunk to osg::NodeCallback::run(osg::Object*, osg::Object*)' ../../../lib/libosgviewer.so: undefined reference to
osg::Group::removeChild(osg::Node*)'../../../lib/libosgviewer.so: undefined reference to
osg::NodeVisitor::apply(osg::Geometry&)' ../../../lib/libosgviewer.so: undefined reference to
VTT for osgGA::EventHandler'../../../lib/libosgviewer.so: undefined reference to
non-virtual thunk to osgGA::EventHandler::event(osg::NodeVisitor*, osg::Drawable*)' ../../../lib/libosgviewer.so: undefined reference to
vtable for osgGA::EventHandler'../../../lib/libosgviewer.so: undefined reference to
osg::Group::getNumChildren() const' ../../../lib/libosgviewer.so: undefined reference to
osg::NodeVisitor::apply(osg::Drawable&)'../../../lib/libosgviewer.so: undefined reference to
osg::NodeCallback::run(osg::Object*, osg::Object*)' ../../../lib/libosgviewer.so: undefined reference to
osgGA::EventHandler::operator()(osg::Node*, osg::NodeVisitor*)'collect2: error: ld returned 1 exit status
make[2]: *** [bin/cast-cost-unit] Error 1
make[1]: *** [src/trajopt/test/CMakeFiles/cast-cost-unit.dir/all] Error 2
make: *** [all] Error 2
18:35:30: The process "/usr/bin/cmake" exited with code 2.
Error while building/deploying project trajopt (kit: Desktop)
When executing step "Make"
i cloned the package and created build directory. So
cd build && cmake .. -DGUROBI_LIBRARY=/opt/gurobi751/linux64/lib/libgurobi75.so && make
gave me above error. Please help me to build it.
The text was updated successfully, but these errors were encountered: