Re: [ros-users] Request for Clue: OSX-specific linker flags,…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: User discussions
Subject: Re: [ros-users] Request for Clue: OSX-specific linker flags, dependency resolution
On Fri, Jan 14, 2011 at 11:30 AM, Nicholas Butko <> wrote:
> I am running cturtle, not unstable.


Here's a patch for camera_drivers version 1.2. (It's not committed in
that SVN branch, you'll need to apply it by hand wherever that stack
is checked out.)

Index: camera1394/src/nodes/CMakeLists.txt
===================================================================
--- camera1394/src/nodes/CMakeLists.txt    (revision 35252)
+++ camera1394/src/nodes/CMakeLists.txt    (working copy)
@@ -1,2 +1,10 @@
-rosbuild_add_executable(camera1394_node camera1394.cpp
dev_camera1394.cpp features.cpp)
-target_link_libraries(camera1394_node dc1394)
+# Mac OSX requires extra linker parameters
+if(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+  set(DC1394 dc1394 "-framework CoreServices")
+else(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+  set(DC1394 dc1394)
+endif(CMAKE_SYSTEM_NAME MATCHES "Darwin")
+
+rosbuild_add_executable(camera1394_node
+  camera1394.cpp dev_camera1394.cpp features.cpp)
+target_link_libraries(camera1394_node ${DC1394})
Index: rosdep.yaml
===================================================================
--- rosdep.yaml    (revision 35252)
+++ rosdep.yaml    (working copy)
@@ -12,6 +12,7 @@
   ubuntu: libdc1394-22-dev
   arch: libdc1394
   fedora: libdc1394-devel
+  macports: libdc1394


gforth:
ubuntu: gforth
--
 joq