Home | Tutorials | Wiki | Issues
Ask Your Question
1

Installation problem in Ubuntu 12.10 [closed]

asked 2013-01-20 17:55:36 -0600

amit gravatar image

updated 2013-01-21 15:32:45 -0600

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...FromSource)
  • 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...FromSource) 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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by nkoenig
close date 2013-07-23 18:18:36.058618

Comments

Is there a reason you're installing it from source? Can WUBI not use the pre-compiled binaries from the repositories?

Ben B gravatar imageBen B ( 2013-01-21 16:56:40 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
0

answered 2013-01-21 21:10:39 -0600

amit gravatar image

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/x8664-linux-gnu/OGRE-1.7.4/PluginCgProgramManager.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/x8664-linux-gnu/OGRE-1.7.4/PluginCgProgramManager.so]Heightmaps(Terrain) will not display properly.You'll need to install Ogre3d from source.Please visit www.ogre3d.org.
edit flag offensive delete link more

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.

ThomasK gravatar imageThomasK ( 2013-01-21 23:58:04 -0600 )edit

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.

ThomasK gravatar imageThomasK ( 2013-01-22 00:00:14 -0600 )edit

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 ?

amit gravatar imageamit ( 2013-01-22 12:34:10 -0600 )edit

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.

ThomasK gravatar imageThomasK ( 2013-01-22 14:04:43 -0600 )edit

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]

amit gravatar imageamit ( 2013-01-23 17:49:33 -0600 )edit

Are you sourcing the correct setup.sh?

ThomasK gravatar imageThomasK ( 2013-01-23 19:50:25 -0600 )edit

Did you source Gazebo's setup.sh file? You probably have to run source /usr/share/gazebo/setup.sh

nkoenig gravatar imagenkoenig ( 2013-01-23 20:43:58 -0600 )edit

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

amit gravatar imageamit ( 2013-01-24 16:43:38 -0600 )edit
1

[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

amit gravatar imageamit ( 2013-01-24 16:45:26 -0600 )edit

Gazebo gets installed to /usr/local/share/gazebo-<version>/ when compiling from source. Since 1.3 there's also a /usr/local/share/gazebo/setup.sh which simply loads the setup.sh of the installed Gazebo with the highest version. Source this setup.sh and it should work.

ThomasK gravatar imageThomasK ( 2013-01-24 21:56:25 -0600 )edit
0

answered 2013-01-21 17:55:14 -0600

amit gravatar image

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#CompilingFromSource to install all the pre-requisites and then tried to install using the pre-compiled binaries.

edit flag offensive delete link more
0

answered 2013-01-21 18:19:56 -0600

Ben B gravatar image

updated 2013-01-21 18:22:35 -0600

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.

edit flag offensive delete link more
0

answered 2013-01-21 20:12:42 -0600

ThomasK gravatar image

@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.

edit flag offensive delete link more

Comments

Yup. That's why I was suggesting 12.04.

Ben B gravatar imageBen B ( 2013-01-22 19:05:03 -0600 )edit

Question Tools

Stats

Asked: 2013-01-20 17:55:36 -0600

Seen: 1,108 times

Last updated: Jan 21 '13