A similar problem have been partially addressed here dyld: Library not loaded: lib/libopencv_core.3.0.dylib Reason: image not found that lead to a solution there that do not work for me.
I use Qt 5, with openCV 3 with Mac OS X 10.10.5. When I use macdeployqt, this process does not have the proper paths for the openCV .dylib files. It complains with:
ERROR: no file at "/lib/libopencv_core.3.0.dylib"
ERROR: no file at "/lib/libopencv_highgui.3.0.dylib"
ERROR: no file at "/lib/libopencv_imgproc.3.0.dylib"
which relates to wrong file paths, given as relative but interpreted as absolute, according to:
$ otool -L myApp.app/Contents/MacOS/myApp
myApp.app/Contents/MacOS/myApp:
(...)
lib/libopencv_core.3.0.dylib (compatibility version 3.0.0, current version 3.0.0)
lib/libopencv_highgui.3.0.dylib (compatibility version 3.0.0, current version 3.0.0)
lib/libopencv_imgproc.3.0.dylib (compatibility version 3.0.0, current version 3.0.0)
(...)
And of course, the app crash when it runs in a different computer, complaining about the missing libraries above.
How can I fix this given that the solution mentioned above did not work? Or how can I "better" apply the solution above in this case? (I may not have adapted them properly).
I tried 3 different installation of opencv 3: CMake, homebrew, and macports. The problem remained identical.