ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

OpenRTM-ROS Build Errors

asked 2012-05-19 15:38:48 -0500

TurtleBot_Fan gravatar image

updated 2014-01-28 17:12:22 -0500

ngrennan gravatar image

I'm trying to set up the humanoid simulations provided by OpenRTM-ROS. When following the instructions I execute:

rosmake --rosdep-install --rosdep-yes hrpsys_ros_bridge

but the make ultimately fails and I have no clue how to fix it. I'd really like to see the RTM stuff (humanoid HRP-4c simulation) work with ROS

Here's my result:

sam@Mecha:~$ rosmake --rosdep-install --rosdep-yes hrpsys_ros_bridge
[ rosmake ] Packages requested are: ['hrpsys_ros_bridge']                                                                                                
[ rosmake ] Logging to directory/home/sam/.ros/rosmake/rosmake_output-20120519-225832                                                                    
[ rosmake ] Expanded args ['hrpsys_ros_bridge'] to:
['hrpsys_ros_bridge']                                                                                
[ rosmake ] Generating Install Script using rosdep then executing. This may take a minute, you will be prompted for permissions. . .                     
Executing script below with cwd=/tmp
{{{
#!/usr/bin/env bash
#!/bin/sh
if [ ! -d /usr/share/doc/ttf-mscorefonts-installer ] ; then
  echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections 
  sudo apt-get -y --force-yes install ttf-mscorefonts-installer
  sudo fc-cache
fi

}}}

Executing script below with cwd=/tmp
{{{
#!/usr/bin/env bash
if [ ! -f /usr/local/bin/xdotool ]; then
  sudo aptitude install checkinstall libxtst-dev
  wget http://semicomplete.googlecode.com/files/xdotool-2.20110530.1.tar.gz -O /tmp/xdotool-2.2-$$.tar.gz
  mkdir /tmp/xdotool-2.2-$$; tar -C /tmp/xdotool-2.2-$$ -xvzf /tmp/xdotool-2.2-$$.tar.gz; cd /tmp/xdotool-2.2-$$/xdotool-2.20110530.1; ./configure; make; sudo mkdir -p /usr/local/man/man1; sudo mkdir -p /usr/local/lib; sudo mkdir -p /usr/local/include; sudo checkinstall -y
fi

}}}

Executing script below with cwd=/tmp
{{{
#!/usr/bin/env bash
#!/bin/bash
if [ ! -f /etc/apt/sources.list.d/openrave-release*.list ] ; then
  echo "deb http://ppa.launchpad.net/openrave/release/ubuntu `lsb_release -cs` main" |  sudo tee /etc/apt/sources.list.d/openrave-release.list
  sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 58E6B835EDC85D09
  sudo apt-get -y update
fi
sudo apt-get -y --force-yes install libcollada15dom-dev

}}}

Reading package lists... Done
Building dependency tree       
Reading state information... Done
libcollada15dom-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 152 not upgraded.
Executing script below with cwd=/tmp
{{{
#!/usr/bin/env bash
#!/bin/bash
codename=`lsb_release -cs`
if [ ! -f /usr/bin/glc-capture ] ; then
  if [ $codename = "lucid" -o $codename = "maverick" -o $codename = "natty" ] ; then
    sudo apt-get install -y build-essential cmake libx11-dev libxxf86vm-dev libgl1-mesa-dev libasound2-dev libpng12-dev
    sudo apt-get install -y ia32-libs
    sudo apt-get install -y gcc-multilib
    sudo ln -s /usr/lib32/libGL.so.1 /usr/lib32/libGL.so
    sudo ln -s /usr/lib32/libasound.so.2 /usr/lib32/libasound.so
    sudo ln -s /usr/lib32/libXxf86vm.so.1 /usr/lib32/libXxf86vm.so
    sudo ln -s /usr/lib32/libX11.so.6 /usr/lib32/libX11.so
    sudo ln -s /usr/lib32/libpng12.so.0 /usr/lib32/libpng.so
    wget https://raw.github.com/ienorand/glc/ppa/scripts/glc-build.sh
    chmod a+x glc-build.sh
    printf "/usr\n\ny\n" | sudo ./glc-build.sh
  else
    yes | sudo apt-add-repository ppa:arand
    sudo apt-get update
    sudo apt-get install -y glc
  fi
fi

}}}

Reading package lists... Done
Building dependency tree       
Reading state information... Done
build-essential is already the newest version.
cmake is already the newest version.
libx11-dev is already the newest version.
libxxf86vm-dev is already the newest ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-05-20 20:53:12 -0500

Kei Okada gravatar image

Basically, glc is just used for documentation process and you can ignore by uncommenting

<rosdep name="glc" />

from jsk_tools/manifest.xml.

It would help me to fix the problem if you can send me following information

lucid-amd64 $ echo $PATH
/opt/ros/electric/ros/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
lucid-amd64 $ echo $LD_LIBRARY_PATH

lucid-amd64 $ ls -al /usr/lib32/libGL.so 
lrwxrwxrwx 1 root root 15 2012-02-01 17:46 /usr/lib32/libGL.so -> mesa/libGL.so.1
lucid-amd64 $ locate libGL.so
/usr/lib/libGL.so
/usr/lib/mesa/libGL.so
/usr/lib/mesa/libGL.so.1
/usr/lib/mesa/libGL.so.1.2
/usr/lib32/libGL.so
/usr/lib32/mesa/libGL.so.1
/usr/lib32/mesa/libGL.so.1.2
edit flag offensive delete link more

Comments

Thank you for replying Keu Okada! I found the jsk_tools/manifest.xml, but how do I "uncomment" <rosdep name="glc" /> ? Here is the data you requested, so you can help me solve my problem:

sam@Mecha:~$ echo $PATH /opt/ros/electric/ros/bin:/opt/ros/electric/ros/bin:/home/sam/openrobots/bin:/home/sam/openrobots/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

sam@Mecha:~$ echo $LD_LIBRARY_PATH (it gave an empty result)

sam@Mecha:~$ ls -al /usr/lib32/libGL.so lrwxrwxrwx 1 root root 15 2012-05-19 20:42 /usr/lib32/libGL.so -> mesa/libGL.so.1

TurtleBot_Fan gravatar image TurtleBot_Fan  ( 2012-05-21 19:28:12 -0500 )edit

you can uncomment by <!-- rosdep name="glc" --> , could you check cd /tmp/glc/build (if you still have this directory, if not rosdep install jsk_tools) and make VERBOSE=1 ?

Kei Okada gravatar image Kei Okada  ( 2012-05-21 19:45:23 -0500 )edit

/tmp/glc/build$ make VERBOSE=1

Kei Okada gravatar image Kei Okada  ( 2012-05-21 19:45:27 -0500 )edit

/tmp/glc/build$ make VERBOSE=1

Kei Okada gravatar image Kei Okada  ( 2012-05-21 19:45:31 -0500 )edit

I changed the jsk_tools/manifest.xml by commenting out <rosdep name="glc" /> like you instructed. I then did: sam@Mecha:~$ VERBOSE=1 sam@Mecha:~$ rosdep install jsk_tools All required rosdeps installed successfully sam@Mecha:~$ Then I did: rosmake --rosdep-install --rosdep-yes hrpsys_ros_bridge and got the following: sam@Mecha:~$ rosmake --rosdep-install --rosdep-yes hrpsys_ros_bridge [ rosmake ] Packages requested are: ['hrpsys_ros_bridge']
[ rosmake ] Logging to directory/home/sam/.ros/rosmake/rosmake_output-20120522-001846
[ rosmake ] Expanded args ['hrpsys_ros_bridge'] to: ['hrpsys_ros_bridge']
[ rosmake ] Generating Install Script using rosdep then executing. This may take a minute, you will be prompted for permissions. . .
Executing script below with cwd=/tmp {{{

!/usr/bin/env bash

!/bin/sh

if [ ! -d /usr/share/doc/ttf-mscorefonts-installer ] ; then echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections sudo apt-get -y --force-yes install ttf-mscorefonts-installer sudo fc-cache fi

}}}

Executing script below with cwd=/tmp {{{

!/usr/bin/env bash

if [ ! -f /usr/local/bin/xdotool ]; then sudo aptitude install checkinstall libxtst-dev wget http ...(more)

TurtleBot_Fan gravatar image TurtleBot_Fan  ( 2012-05-21 20:26:31 -0500 )edit

I rebooted my computer and did rosmake --rosdep-install --rosdep-yes hrpsys_ros_bridge again and my result was slightly different from above. the eulisp package failed to build this time. sam@Mecha:~$ rosmake --rosdep-install --rosdep-yes hrpsys_ros_bridge [ rosmake ] Packages requested are: ['hrpsys_ros_bridge']
[ rosmake ] Logging to directory/home/sam/.ros/rosmake/rosmake_output-20120522-004435
[ rosmake ] Expanded args ['hrpsys_ros_bridge'] to: ['hrpsys_ros_bridge']
[ rosmake ] Generating Install Script using rosdep then executing. This may take a minute, you will be prompted for permissions. . . Executing script below with cwd=/tmp {{{

!/usr/bin/env bash

!/bin/sh

if [ ! -d /usr/share/doc/ttf-mscorefonts-installer ] ; then echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections sudo apt-get -y --force-yes install ttf-mscorefonts-installer sudo fc-cache fi

}}}

Executing script below with cwd=/tmp {{{

!/usr/bin/env bash

if [ ! -f /usr/local/bin/xdotool ]; then sudo aptitude install checkinstall libxtst-dev wget http://semicomplete.googlecode.com/files/xdotool-2.20110530.1.tar.gz -O /tmp/xdotool-2.2-$$.tar.gz mkdir /tmp/xdotool-2 ...(more)

TurtleBot_Fan gravatar image TurtleBot_Fan  ( 2012-05-21 20:56:18 -0500 )edit

it seems that your computer is something wrong with OpenGL libraries. Can you compile other opengl example progrmas? what is the results of ls -al /usr/lib/libGL* /usr/lib/mesa/*

Kei Okada gravatar image Kei Okada  ( 2012-05-21 21:42:48 -0500 )edit
1

Ok. I haven't ever compiled an opengl program, but I just found out I can do it in a C++ compiler with the right include files. What IDE or compiler do "you" use for compiling opengl ? I'll see if I can find an opengl program to compile and also find out how to compile it, unless there is a faster way. If I make sure I have all the opengl libraries and compile an opengl program, then what would I do next? The result of ls -al /usr/lib/libGL* /usr/lib/mesa/* is: sam@Mecha:~$ ls -al /usr/lib/libGL* /usr/lib/mesa/* -rw-r--r-- 1 root root 654 2011-07-29 03:02 /usr/lib/libGL.la lrwxrwxrwx 1 root root 13 2011-08-08 17:35 /usr/lib/libGL.so -> mesa/libGL.so lrwxrwxrwx 1 root root 15 2011-07-29 03:02 /usr/lib/libGL.so.1 -> libGL.so.275.21 ...(more)

TurtleBot_Fan gravatar image TurtleBot_Fan  ( 2012-05-22 14:16:10 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2012-05-19 15:38:48 -0500

Seen: 508 times

Last updated: May 20 '12