Brian, I had a question about this. <div><br></div><div>In CMake, I typically call "find_library" before calling "target_link_library". I was wondering if there's a reason that you don't. </div>
<div><br></div><div>On the ROS OSX install site, it asks the user to add these environment variables to .profile: </div><div><br></div><div><div>export CPATH=/opt/local/include</div><div>export LIBRARY_PATH=/opt/local/lib</div>
<div><br></div><div>They are very important to add for ROS, but they sometimes seem to interfere with the installation of other packages. For example, I was getting some strange interference between installing OpenCV from SVN, and the macports version of libjpeg. More importantly, they do not seem helpful for my non-ros CMake projects. </div>
<div><br></div><div>I am wondering now if the reason ROS requires special environment variables is that "find_library" is not being called.</div><div><br></div><div>Do you have any thoughts on this? </div><div><br>
</div><div>--Nick </div><div><br></div><div><br></div><br><div class="gmail_quote">On Thu, Jan 13, 2011 at 3:40 PM, Brian Gerkey <span dir="ltr"><<a href="mailto:gerkey@willowgarage.com">gerkey@willowgarage.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div class="im">On Thu, Jan 13, 2011 at 1:07 PM, Jack O'Quin <<a href="mailto:jack.oquin@gmail.com">jack.oquin@gmail.com</a>> wrote:<br>

> I could really use some help to fix defect #4659 in camera1394:<br>
><br>
>  <a href="https://code.ros.org/trac/ros-pkg/ticket/4659" target="_blank">https://code.ros.org/trac/ros-pkg/ticket/4659</a><br>
><br>
> Briefly, it seems we need to set OS-specific link flags to resolve the<br>
> driver's reference to libdc1394.<br>
<br>
</div>I haven't tried it, but if I understand the problem, then something<br>
like this should do it:<br>
<br>
if(CMAKE_SYSTEM_NAME MATCHES "Darwin")<br>
  target_link_libraries(camera1394_node dc1394 "-framework CoreServices")<br>
else(CMAKE_SYSTEM_NAME MATCHES "Darwin")<br>
  target_link_libraries(camera1394_node dc1394)<br>
endif(CMAKE_SYSTEM_NAME MATCHES "Darwin")<br>
<font color="#888888"><br>
        brian.<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br></div>