<div>We have our own package for a cut down opencv on embedded systems and one of the guys on our team who has snow leapard put in a quick fix for the libraries - I'm not up to speed on the details or correctness of it, but its probably the same issue you're having.<br>
</div><div><br></div><div>You can export the package via:</div><div><br></div><div>svn export <a href="http://embedded-control-library.googlecode.com/svn/trunk/ecl_vision/opencv_embedded">http://embedded-control-library.googlecode.com/svn/trunk/ecl_vision/opencv_embedded</a> ./opencv</div>
<div><br></div><div>and modify the code for yourself as you wish. The script you're after is the 'change_install_names_for_mac' and its called from within the cmake instructions automatically if it detects a mac platform. It also picks up on various ros variables (toolchain, flags etc) and uses them to build opencv. He's been using this package on and off for about a month now without any problems.</div>
<div><br></div><div>Regards,</div><div>Daniel.</div><div><br></div><div>On 6 July 2010 02:35, Brian Gerkey <span dir="ltr"><<a href="mailto:gerkey@willowgarage.com">gerkey@willowgarage.com</a>></span> wrote:<br></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Sounds like the build of OpenCV is missing a post-link step on the<br>
shared libraries, which is required to support non-system installs on<br>
OSX. Try this:<br>
<br>
$ otool -L `rospack find opencv2`/opencv/lib/libopencv_core.2.1.dylib<br>
<br>
You'll probably see something like this:<br>
<br>
/Users/gerkey/code/ros-c/stacks/vision_opencv/opencv2/opencv/lib/libopencv_core.2.1.dylib:<br>
        libopencv_core.2.1.dylib (compatibility version 2.1.0, current<br>
version 2.1.1)<br>
        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0,<br>
current version 7.4.0)<br>
        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,<br>
current version 1.0.0)<br>
        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,<br>
current version 111.1.4)<br>
<br>
That second line indicates that the library doesn't know its full<br>
name.  I believe that there's an invocation of install_name_tool that<br>
will fix the problem, but I don't know the details off-hand.  Once we<br>
figure out the solution, it should be patched upstream into OpenCV.<br>
<font color="#888888"><br>
        brian.<br>
</font><div><div class="h5"><br>
On Mon, Jul 5, 2010 at 8:23 AM, Dan Lazewatsky <<a href="mailto:dlaz@cse.wustl.edu">dlaz@cse.wustl.edu</a>> wrote:<br>
> I just installed cturtle on my laptop, and now it looks like anything<br>
> using opencv from C++ won't run. For example, when I try to run<br>
> image_view (after building successfully), I get:<br>
><br>
> $ rosrun image_view image_view<br>
> dyld: Library not loaded: libopencv_core.2.1.dylib<br>
>   Referenced from: /Users/lazewatskyd/ros/stacks/image_pipeline/<br>
> image_view/bin/image_view<br>
>   Reason: image not found<br>
> /Users/lazewatskyd/ros/ros/bin/rosrun: line 35: 35719 Trace/BPT<br>
> trap          $exepath "$@"<br>
><br>
> -Dan<br>
> _______________________________________________<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>
><br>
_______________________________________________<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><br><br clear="all"><br>-- <br>Phone : +82-10-5400-3296 (010-5400-3296)<br>Home: <a href="http://snorriheim.dnsdojo.com/">http://snorriheim.dnsdojo.com/</a><br>Yujin Robot: <a href="http://www.yujinrobot.com/">http://www.yujinrobot.com/</a><br>
Embedded Control Libraries: <a href="http://snorriheim.dnsdojo.com/redmine/wiki/ecl">http://snorriheim.dnsdojo.com/redmine/wiki/ecl</a><br>