[ros-users] cturtle opencv on osx 10.5

Daniel Stonier d.stonier at gmail.com
Tue Jul 6 07:49:46 UTC 2010


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.

You can export the package via:

svn export
http://embedded-control-library.googlecode.com/svn/trunk/ecl_vision/opencv_embedded./opencv

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.

Regards,
Daniel.

On 6 July 2010 02:35, Brian Gerkey <gerkey at willowgarage.com> wrote:

> Sounds like the build of OpenCV is missing a post-link step on the
> shared libraries, which is required to support non-system installs on
> OSX. Try this:
>
> $ otool -L `rospack find opencv2`/opencv/lib/libopencv_core.2.1.dylib
>
> You'll probably see something like this:
>
>
> /Users/gerkey/code/ros-c/stacks/vision_opencv/opencv2/opencv/lib/libopencv_core.2.1.dylib:
>        libopencv_core.2.1.dylib (compatibility version 2.1.0, current
> version 2.1.1)
>        /usr/lib/libstdc++.6.dylib (compatibility version 7.0.0,
> current version 7.4.0)
>        /usr/lib/libgcc_s.1.dylib (compatibility version 1.0.0,
> current version 1.0.0)
>        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0,
> current version 111.1.4)
>
> That second line indicates that the library doesn't know its full
> name.  I believe that there's an invocation of install_name_tool that
> will fix the problem, but I don't know the details off-hand.  Once we
> figure out the solution, it should be patched upstream into OpenCV.
>
>        brian.
>
> On Mon, Jul 5, 2010 at 8:23 AM, Dan Lazewatsky <dlaz at cse.wustl.edu> wrote:
> > I just installed cturtle on my laptop, and now it looks like anything
> > using opencv from C++ won't run. For example, when I try to run
> > image_view (after building successfully), I get:
> >
> > $ rosrun image_view image_view
> > dyld: Library not loaded: libopencv_core.2.1.dylib
> >   Referenced from: /Users/lazewatskyd/ros/stacks/image_pipeline/
> > image_view/bin/image_view
> >   Reason: image not found
> > /Users/lazewatskyd/ros/ros/bin/rosrun: line 35: 35719 Trace/BPT
> > trap          $exepath "$@"
> >
> > -Dan
> > _______________________________________________
> > ros-users mailing list
> > ros-users at code.ros.org
> > https://code.ros.org/mailman/listinfo/ros-users
> >
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>



-- 
Phone : +82-10-5400-3296 (010-5400-3296)
Home: http://snorriheim.dnsdojo.com/
Yujin Robot: http://www.yujinrobot.com/
Embedded Control Libraries: http://snorriheim.dnsdojo.com/redmine/wiki/ecl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20100706/95ad69a7/attachment-0003.html>


More information about the ros-users mailing list