[ros-users] cturtle opencv on osx 10.5

Brian Gerkey gerkey at willowgarage.com
Mon Jul 5 17:35:07 UTC 2010


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
>



More information about the ros-users mailing list