Installation problem in Ubuntu 12.10
Hello everyone,
I am trying GAZEBO first time on my WUBI installed Ubuntu 12.10. Please pardon me if my question is stupid. I don't have ROS too.
- I am following the instructions given in the installation link (http://gazebosim.org/wiki/1.3/install#Compiling_From_Source)
- At the 8th Step (which is running make command) I am getting fatal error and the compilation gets terminated. The message I am getting is : /home/amit/gazebo/gazebo/msgs/test/MsgFactory.cc:18:25: fatal error: gtest/gtest.h: No such file or directory compilation terminated. make[2]: *** [gazebo/msgs/test/CMakeFiles/MsgFactory.dir/MsgFactory.cc.o] Error 1 make[1]: *** [gazebo/msgs/test/CMakeFiles/MsgFactory.dir/all] Error 2 make: *** [all] Error 2
I have not installed the 3rd party mandatory requirements given at (http://gazebosim.org/wiki/Requirements) separately. Instead I followed the 2nd instruction of (http://gazebosim.org/wiki/1.3/install#Compiling_From_Source) assuming that this will install all the mandatory stuffs.
Kindly tell me whats wrong here. Please help me out. Do let me know if this information is not sufficient.
Asked by amit on 2013-01-20 18:55:36 UTC
Answers
Ben, thanks for getting back to me. I have tried the pre-compiled binaries too but am getting the following errors:
amit@ubuntu:~$ sudo apt-get install gazebo
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies: gazebo : Depends: ros-fuerte-visualization-common but it is not going to be installed Depends: libboost-thread1.46.1 but it is not installable Depends: libboost-signals1.46.1 but it is not installable Depends: libboost-system1.46.1 but it is not installable Depends: libboost-filesystem1.46.1 but it is not installable Depends: libboost-program-options1.46.1 but it is not installable Depends: libboost-regex1.46.1 but it is not installable Depends: libboost-iostreams1.46.1 but it is not installable E: Unable to correct problems, you have held broken packages. amit@ubuntu:~$
I have run the 2nd command given at http://gazebosim.org/wiki/1.3/install#Compiling_From_Source to install all the pre-requisites and then tried to install using the pre-compiled binaries.
Asked by amit on 2013-01-21 18:55:14 UTC
Comments
Installing the binaries, I got that error when using an older version of Ubuntu. It seems possible that those libraries aren't working right with Ubuntu versions that are not 12.04 LTS.
I would try installing 12.04 LTS, then installing the binaries.
Asked by Ben B on 2013-01-21 19:19:56 UTC
Comments
@amit:
Regarding your original question, try installing libgtest-dev (i.e. sudo apt-get install libgtest-dev
).
The gazebo packages are built for precise (12.04), if you want to use it for a newer distribution compile it from source. The error you're getting on 12.10 is due to 12.10 distributing boost 1.49 (according to google) while the gazebo package depends on 1.46.1 (as that's what's being distributed on 12.04).
@ben-b: "It seems possible that those libraries aren't working right with Ubuntu versions that are not 12.04 LTS."
The install instructions for pre-compiled binaries are intended for 12.04. For other versions compile the source code manually.
Asked by ThomasK on 2013-01-21 21:12:42 UTC
Comments
Yup. That's why I was suggesting 12.04.
Asked by Ben B on 2013-01-22 20:05:03 UTC
Thanks Thomas and Ben...
I tried to install Gazebo1.2 by first following the tarball instructions and then compiling from source. It worked. It is very slow though. When I run it, it gives me 2 warnings :
-Warning [RenderEngine.cc:381] Unable to load Ogre Plugin[/usr/lib/x86_64-linux-gnu/OGRE-1.7.4/Plugin_CgProgramManager.so]Heightmaps(Terrain) will not display properly.You'll need to install Ogre3d from source.Please visit www.ogre3d.org.
- Warning [RenderEngine.cc:381] Unable to load Ogre Plugin[/usr/lib/x86_64-linux-gnu/OGRE-1.7.4/Plugin_CgProgramManager.so]Heightmaps(Terrain) will not display properly.You'll need to install Ogre3d from source.Please visit www.ogre3d.org.
Asked by amit on 2013-01-21 22:10:39 UTC
Comments
"It is very slow though" ... this is normal :) ... Regarding the warnings, this won't affect you unless you want to use heightmaps. In order to have heightmaps show up properly you'll have to compile Ogre manually with nvidia's cg library installed (libcg) and then compile Gazebo again.
Asked by ThomasK on 2013-01-22 00:58:04 UTC
What's the reason for using Gazebo 1.2 instead of the latest one (1.3, soon 1.4) though? They're more stable and I think cg might not even be required anymore, not sure.
Asked by ThomasK on 2013-01-22 01:00:14 UTC
I was having trouble installing 1.3 and I was running out of time. So i installed 1.2 :\ I had installed it before looking at your response. It tool me a while to do that so I am kind of scared to redo the entire process. I was thinking to go ahead with 1.2. Is it a good decision ?
Asked by amit on 2013-01-22 13:34:10 UTC
if you compiled it from source and succeeded then compiling 1.3 from source should work with the same setup. I'd recommend keeping gazebo up to date as a lot of bugs are fixed continuously and new features are being added. So you might run into a bug that doesn't exist in a newer version anymore.
Asked by ThomasK on 2013-01-22 15:04:43 UTC
I retried installing 1.3... This time the make command run smoothly and compilation went uninterrupted. But after setting the environment variables I am having problem. This is what I getting when I run Gazebo : Error [Server.cc:228] Could not open file[worlds/empty.world]
Asked by amit on 2013-01-23 18:49:33 UTC
Are you sourcing the correct setup.sh?
Asked by ThomasK on 2013-01-23 20:50:25 UTC
Did you source Gazebo's setup.sh
file? You probably have to run source /usr/share/gazebo/setup.sh
Asked by nkoenig on 2013-01-23 21:43:58 UTC
Hi nkoenig,
I reinstalled me UBUNTU 12.10, then again tried reinstalled everything from scratch using source code from Mercurial. Everything worked fine until Step-9. After that when I run these commands echo "source /usr/share/gazebo-1.3/setup.sh" >> ~/.bashrc source ~/.bashrc
Asked by amit on 2013-01-24 17:43:38 UTC
[continued from the previous comment......] I get bash: /usr/share/gazebo-1.4/setup.sh: No such file or directory and then after running the 11th command 1.e. gazebo, I get gazebo: error while loading shared libraries: libgazebo_common.so.1: cannot open shared object file: No such file or directory
Asked by amit on 2013-01-24 17:45:26 UTC
Gazebo gets installed to /usr/local/share/gazebo-
Asked by ThomasK on 2013-01-24 22:56:25 UTC
I tried that also. It didn't work and gave the same error as mentioned above. Please help me. Its been a while I am struggling with this. If this continues I would not be able to finish my project on time. :(
Asked by amit on 2013-01-25 00:35:30 UTC
Comments
Is there a reason you're installing it from source? Can WUBI not use the pre-compiled binaries from the repositories?
Asked by Ben B on 2013-01-21 17:56:40 UTC