Ask Your Question
0

Gscam compilation error on Gumstix running Ubuntu 11.04

asked 2012-03-27 16:24:13 -0600

ajr_ gravatar image

updated 2014-01-28 17:11:46 -0600

ngrennan gravatar image

I am trying to install gscam on a Gumstix Overo COM. I have successfully installed the base ROS electric functions such as roscore, rosmake, etc. and I can run roscore. However, rosdep is not able to install yaml-cpp nor tinyxml on the Gumstix's ARM processor. Thus, I tried to install the packages from source:

yaml-cpp : http://code.google.com/p/yaml-cpp/downloads/list

tinyxml : http://code.google.com/p/libtinyxml/

yaml program compiled/installed natively with: cmake, make, sudo make install. Tinyxml I installed by following command: sudo apt-get install libtinyxml-dev

Also I installed necessary dependencies required by gscam:

Image common

svn co https://code.ros.org/svn/ros-pkg/stacks/image_common/tags/electric image_common

common msgs

svn co https://code.ros.org/svn/ros-pkg/stacks/common_msgs/tags/electric common_msgs

pluginlib

hg clone https://kforge.ros.org/common/pluginlib -r electric

common rosdeps

hg clone https://kforge.ros.org/common/rosdepcore -r electric


But still problem is still present, I receive following error while trying to compile gscam package:

robot@overo:~/ros_packages/gscam$ rosmake --rosdep-install gscam
[ rosmake ] Packages requested are: ['gscam']                                                                                   
[ rosmake ] Logging to directory/home/robot/.ros/rosmake/rosmake_output-20120327-190214                                         
[ rosmake ] Expanded args ['gscam'] to:
['gscam']                                                                               
[ rosmake ] Generating Install Script using rosdep then executing. This may take a minute, you will be prompted for permissions. . .
Failed to find rosdep yaml-cpp for package gscam on OS:ubuntu version:11.04
Failed to find rosdep tinyxml for package gscam on OS:ubuntu version:11.04
WARNING: Rosdeps [u'yaml-cpp', u'tinyxml'] could not be resolved
rosdep executing this script:
{{{
set -o errexit
#No Packages to install
}}}
[ rosmake ] rosdep successfully installed all system dependencies                                                               
[ rosmake ] Starting >>> tools/rospack                                                                                          
[ rosmake ] Finished <<< tools/rospack                                                                                          
[rosmake-0] Starting >>> rosbuild [ make ]                                                                                      
[rosmake-0] Finished <<< rosbuild  No Makefile in package rosbuild                                                              
[rosmake-0] Starting >>> roslang [ make ]                                                                                       
[rosmake-0] Finished <<< roslang  No Makefile in package roslang                                                                
[rosmake-0] Starting >>> cpp_common [ make ]                                                                                    
[rosmake-0] Finished <<< cpp_common [PASS] [ 5.87 seconds ]                                                                     
[rosmake-0] Starting >>> roscpp_traits [ make ]                                                                                 
[rosmake-0] Finished <<< roscpp_traits [PASS] [ 4.92 seconds ]                                                                  
[rosmake-0] Starting >>> rostime [ make ]                                                                                       
[rosmake-0] Finished <<< rostime [PASS] [ 13.12 seconds ]                                                                       
[rosmake-0] Starting >>> roscpp_serialization [ make ]                                                                          
[rosmake-0] Finished <<< roscpp_serialization [PASS] [ 5.48 seconds ]                                                           
[rosmake-0] Starting >>> roslib [ make ]                                                                                        
[rosmake-0] Finished <<< roslib [PASS] [ 9.30 seconds ]                                                                         
[rosmake-0] Starting >>> xmlrpcpp [ make ]                                                                                      
[rosmake-0] Finished <<< xmlrpcpp [PASS] [ 5.66 seconds ]                                                                       
[rosmake-0] Starting >>> rosconsole [ make ]                                                                                    
[rosmake-0] Finished <<< rosconsole [PASS] [ 17.61 seconds ]                                                                    
[rosmake-0] Starting >>> std_msgs [ make ]                                                                                      
[rosmake-0] Finished <<< std_msgs [PASS] [ 44.36 seconds ]                                                                      
[rosmake-0] Starting >>> rosgraph_msgs [ make ]                                                                                 
[rosmake-0] Finished <<< rosgraph_msgs [PASS] [ 8.57 seconds ]                                                                  
[rosmake-0] Starting >>> roscpp [ make ]                                                                                        
[rosmake-0] Finished <<< roscpp [PASS] [ 18.71 seconds ]                                                                        
[rosmake-0] Starting >>> rospy [ make ]                                                                                         
[rosmake-0] Finished <<< rospy [PASS] [ 12.29 seconds ]                                                                         
[rosmake-0] Starting >>> rosclean [ make ]                                                                                      
[rosmake-0] Finished <<< rosclean [PASS] [ 5.30 seconds ]                                                                       
[rosmake-0] Starting >>> rosgraph [ make ]                                                                                      
[rosmake-0] Finished <<< rosgraph [PASS] [ 5.78 seconds ]                                                                       
[rosmake-0] Starting >>> rosparam [ make ]                                                                                      
[rosmake-0] Finished <<< rosparam [PASS] [ 5.15 seconds ]                                                                       
[rosmake-0] Starting >>> rosmaster [ make ]                                                                                     
[rosmake-0] Finished <<< rosmaster [PASS] [ 4.93 seconds ]                                                                      
[rosmake-0] Starting >>> rosout [ make ]                                                                                        
[rosmake-0] Finished <<< rosout [PASS] [ 5.55 seconds ]                                                                         
[rosmake-0] Starting >>> roslaunch [ make ]                                                                                     
[rosmake-0] Finished <<< roslaunch  No Makefile in package roslaunch                                                            
[rosmake-0] Starting >>> rosunit [ make ]                                                                                       
[rosmake-0] Finished <<< rosunit [PASS] [ 4 ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-04-04 03:08:54 -0600

ajr_ gravatar image

updated 2012-04-23 09:41:49 -0600

Previous error was solved by installing yaml-cpp with following commands...

mkdir build
cd build
cmake -DBUILD_SHARED_LIBS=ON ..
make
sudo make install

Still one error left, which i think is caused by Ubuntu 11.10 and different paths for certain dependencies. I received following error message while trying to rosmake gscam:

[rosmake-0] Starting >>> gscam [ make ]                                         
[ rosmake ] Last 40 linescam: 54.1 sec ]             [ 1 Active 32/33 Complete ]
{-------------------------------------------------------------------------------
  [rosbuild] Including /home/robot/ros/ros_comm/clients/rospy/cmake/rospy.cmake
  [rosbuild] Including /home/robot/ros/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /home/robot/ros_packages/gscam/build
  cd build && make -l1
  make[1]: Entering directory `/home/robot/ros_packages/gscam/build'
  [rosbuild] Building package gscam
  [rosbuild] Cached build flags older than manifests; calling rospack to get flags
  [rosbuild] Including /home/robot/ros/ros_comm/clients/roslisp/cmake/roslisp.cmake
  [rosbuild] Including /home/robot/ros/ros_comm/clients/rospy/cmake/rospy.cmake
  [rosbuild] Including /home/robot/ros/ros_comm/clients/cpp/roscpp/cmake/roscpp.cmake
  -- Configuring done
  -- Generating done
  -- Build files have been written to: /home/robot/ros_packages/gscam/build
  make[2]: Entering directory `/home/robot/ros_packages/gscam/build'
  make[3]: Entering directory `/home/robot/ros_packages/gscam/build'
  make[3]: Leaving directory `/home/robot/ros_packages/gscam/build'
  [  0%] Built target rospack_genmsg_libexe
  make[3]: Entering directory `/home/robot/ros_packages/gscam/build'
  make[3]: Leaving directory `/home/robot/ros_packages/gscam/build'
  [  0%] Built target rosbuild_precompile
  make[3]: Entering directory `/home/robot/ros_packages/gscam/build'
  make[3]: Leaving directory `/home/robot/ros_packages/gscam/build'
  make[3]: Entering directory `/home/robot/ros_packages/gscam/build'
  make[3]: Warning: File `/home/robot/ros/ros_comm/messages/std_msgs/msg_gen/cpp/include/std_msgs/Header.h' has modification time 3.8e+08 s in the future
  [100%] Building CXX object CMakeFiles/gscam.dir/src/gscam.o
  In file included from /usr/include/glib-2.0/glib/galloca.h:34:0,
                   from /usr/include/glib-2.0/glib.h:32,
                   from /usr/include/gstreamer-0.10/gst/gst.h:27,
                   from /home/robot/ros_packages/gscam/src/gscam.cpp:6:
  /usr/include/glib-2.0/glib/gtypes.h:34:24: fatal error: glibconfig.h: No such file or directory
  compilation terminated.
  make[3]: *** [CMakeFiles/gscam.dir/src/gscam.o] Error 1
  make[3]: Leaving directory `/home/robot/ros_packages/gscam/build'
/glibconfig.h  /usr/include/glib-2.0/glib/Error 2                               e /usr/include/glib-2.0/glib/                  dcp: cannot create regular file `/usr/include/glib-2.0/glib/glibconfig.h': Permission deniedude/glib-2.0/glib/                  lrobot@overo:~/ros_packages/gscam$ man cp                                        c /usr/include/glib-2.0/glib/                  nCP(1)                            User Commands                           CP(1)  i /usr/include/glib-2.0/glib/                  / /usr/include/glib-2.0/glib/---------------------------------------------------}0 /usr/include/glib-2.0/glib/                  .robot@overo:~/ros_packages/gscam

edit flag offensive delete link more

Comments

... this final step was solved by editing CMakelist.txt file inside gscam package. It was necessary to check if output of command pkg-config --cflags glib-2.0 was found on CMakelist.txt file includes. Correct include path was missing so by adding right path to txt file, gscam finally compiled.

ajr_ gravatar imageajr_ ( 2012-04-23 04:28:08 -0600 )edit

Also some libraries where missing. Running command sudo apt-get install gstreamer0.10-plugins-good helped.

ajr_ gravatar imageajr_ ( 2012-04-24 06:28:18 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-03-27 16:24:13 -0600

Seen: 1,051 times

Last updated: Apr 23 '12