Unable to compile Gazebo with Dart. Bizarre error no static lib found error.
I was trying to compile Gazebo with Dart on Ubuntu 14.04, but alas I keep getting this bizarre error:
gazebo: error while loading shared libraries: libgazebo_common.so.4: cannot open shared object file: No such file or directory
Know, I know this error is very similar to one of the ones described in the tutorial for installing Gazebo, but that error is libgazebo_common.so.1 not .4. Moreover, I tried the solution suggested on that page:
echo '/usr/local/lib' | sudo tee /etc/ld.so.conf.d/gazebo.conf
sudo ldconfig
but it did not work. Any idea how to resolve this error? I tried both following the directions on the websites and when that did not work, using the .sh script provided in the following git repo to do it, but that did not work. Any idea what could be causing my error?
Did you check that
libgazebo_common.so.4
is inside/usr/local/lib
? Have you tried/usr/local/lib/x86_64-linux-gnu
instead?That worked, but now I am getting new errors:Error opening log file: "/home/skylion/.gazebo/gzserver.log" Error opening log file: "/home/skylion/.gazebo/default.log" Error opening log file: "/home/skylion/.gazebo/gzclient.log" Error opening log file: "/home/skylion/.gazebo/default.log" Qt has caught an exception thrown from an event handler. Throwing exceptions from an event handler is not supported in Qt. You must reimplement QApplication::notify() and catch all exceptions there.
terminate cal
humm maybe try deleting your log files? `rm ~/.gazebo/*.log`
Thank you, @chapulina your solution worked. If you write it up, I'll accept it in answer form. Update: I spoke too soon, it' s not running dart now: * Internal Program Error - assertion (dartChildLink.get() != __null) failed in virtual void gazebo::physics::DARTJoint::Init(): /home/skylion/gazebo/gazebo/physics/dart/DARTJoint.cc(84): dartChildLink pointer is NULL. Regardless, since this is a different issue I have opened up a new question on the matter.