Ask Your Question
0

Compilation error building Rviz on OSX Lion

asked 2011-08-13 04:34:54 -0600

LucaGhera gravatar image

updated 2011-08-14 07:52:24 -0600

tfoote gravatar image

Hi all,

I'm trying to build rviz on Osx Lion. I found some errors along the path but I fixed it by replacing my old macports libraries with the corresponding universal version.

Otherwise at the moment I have a problem with yaml_cpp. Below you can see the log:

make -f Makefile wipe
rm -rf yaml-cpp build/yaml-cpp-0.2.5
cd build && make clean
/bin/sh: line 0: cd: build: No such file or directory
make[1]: [clean] Error 1 (ignored)
rm -rf build
touch wiped
mkdir -p build
if [ ! -f yaml-cpp-0.2.5.tar.gz.md5sum ]; then echo "Error: Couldn't find md5sum file yaml-cpp-0.2.5.tar.gz.md5sum" && false; fi
`rospack find rosbuild`/bin/download_checkmd5.py http://yaml-cpp.googlecode.com/files/yaml-cpp-0.2.5.tar.gz build/yaml-cpp-0.2.5.tar.gz `awk {'print $1'} yaml-cpp-0.2.5.tar.gz.md5sum`
[rosbuild] Downloading http://yaml-cpp.googlecode.com/files/yaml-cpp-0.2.5.tar.gz to build/yaml-cpp-0.2.5.tar.gz...Done
[rosbuild] Checking md5sum on build/yaml-cpp-0.2.5.tar.gz
touch -c build/yaml-cpp-0.2.5.tar.gz
rm -rf build/yaml-cpp-0.2.5 
cd build; tar -xzf  ../build/yaml-cpp-0.2.5.tar.gz
touch build/yaml-cpp-0.2.5/unpacked
cd build && cmake -DCMAKE_INSTALL_PREFIX=../yaml-cpp yaml-cpp-0.2.5
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Checking whether C compiler has -isysroot
-- Checking whether C compiler has -isysroot - yes
-- Checking whether C compiler supports OSX deployment target flag
-- Checking whether C compiler supports OSX deployment target flag - yes
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Checking whether CXX compiler has -isysroot
-- Checking whether CXX compiler has -isysroot - yes
-- Checking whether CXX compiler supports OSX deployment target flag
-- Checking whether CXX compiler supports OSX deployment target flag - yes
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/luca/Software/ros/common/yaml_cpp/build
cd build && make && make install
Scanning dependencies of target yaml-cpp
[  3%] Building CXX object CMakeFiles/yaml-cpp.dir/src/aliascontent.cpp.o
[  6%] Building CXX object CMakeFiles/yaml-cpp.dir/src/conversion.cpp.o
[ 10%] Building CXX object CMakeFiles/yaml-cpp.dir/src/emitter.cpp.o
[ 13%] Building CXX object CMakeFiles/yaml-cpp.dir/src/emitterstate.cpp.o
[ 17%] Building CXX object CMakeFiles/yaml-cpp.dir/src/emitterutils.cpp.o
[ 20%] Building CXX object CMakeFiles/yaml-cpp.dir/src/exp.cpp.o
[ 24%] Building CXX object CMakeFiles/yaml-cpp.dir/src/iterator.cpp.o
[ 27%] Building CXX object CMakeFiles/yaml-cpp.dir/src/map.cpp.o
[ 31%] Building CXX object CMakeFiles/yaml-cpp.dir/src/node.cpp.o
[ 34%] Building CXX object CMakeFiles/yaml-cpp.dir/src/null.cpp.o
[ 37%] Building CXX object CMakeFiles/yaml-cpp.dir/src/ostream.cpp.o
[ 41%] Building CXX object CMakeFiles/yaml-cpp.dir/src ...
(more)
edit retag flag offensive close merge delete

Comments

I would suggest to add "OSX" and "Lion" to the question title as it seems like these are problem specific for that OS. Maybe this ros-users mailing list thread helps you further? http://ros-users.122217.n3.nabble.com/progress-on-ROS-on-OS-X-td3210013.html
AHornung gravatar imageAHornung ( 2011-08-13 08:15:22 -0600 )edit
@ftoote Hi, thanks but i didn't find a solution. Now I add the same problem when I run rosmake in the yaml_cpp folder. Instead, when I run rosmake in the rviz folder it reports a different error about Ogre: `BUILD FAILED: Plugin_CgProgramManager.so not created. Is nvidia-cg-toolkit installed?`
LucaGhera gravatar imageLucaGhera ( 2011-08-15 20:55:30 -0600 )edit
@ftoote Where can I find some instructions for installing nvidia-cg-toolkit? I downloaded and installed it but no progress!
LucaGhera gravatar imageLucaGhera ( 2011-08-15 20:57:54 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2011-09-04 12:36:05 -0600

William gravatar image

I am guessing you figured this out already, but for others.

Change your common_rosdeps/rosdep.yaml file so that yaml-cpp isn't satisfied by macports or homebrew instead of built from source.

Homebrew patch:

diff -r 6d4935c374bf rosdep.yaml
--- a/rosdep.yaml   Wed Jul 27 18:19:09 2011 -0700
+++ b/rosdep.yaml   Thu Aug 25 17:56:56 2011 -0500
@@ -38,6 +45,10 @@
       uri: 'https://kforge.ros.org/rosrelease/viewvc/sourcedeps/yaml-cpp/yaml-cpp-0.2.5.rdmanifest'
       md5sum: f7fb81fd4a2fbd5022daa7686e816359
   osx:
+    lion:
+      homebrew:
+        packages: [ yaml-cpp ]
+        depends: [ yaml ]
     source:
       uri: 'https://kforge.ros.org/rosrelease/viewvc/sourcedeps/yaml-cpp/yaml-cpp-cmake-0.2.5.rdmanifest'
       md5sum: 863fb3b7e5b5f1e22ff1365de6e66b34

A macports patch might look something like this:

diff -r 6d4935c374bf rosdep.yaml
--- a/rosdep.yaml   Wed Jul 27 18:19:09 2011 -0700
+++ b/rosdep.yaml   Thu Aug 25 17:56:56 2011 -0500
@@ -38,6 +45,10 @@
       uri: 'https://kforge.ros.org/rosrelease/viewvc/sourcedeps/yaml-cpp/yaml-cpp-0.2.5.rdmanifest'
       md5sum: f7fb81fd4a2fbd5022daa7686e816359
   osx:
+    lion:
+      macports:
+        packages: [ yaml-cpp ]
+        depends: [ yaml ]
     source:
       uri: 'https://kforge.ros.org/rosrelease/viewvc/sourcedeps/yaml-cpp/yaml-cpp-cmake-0.2.5.rdmanifest'
       md5sum: 863fb3b7e5b5f1e22ff1365de6e66b34

But might need some adjustment.

edit flag offensive delete link more

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: 2011-08-13 04:34:54 -0600

Seen: 506 times

Last updated: Sep 04 '11