简体   繁体   中英

Homebrew OS X OpenCV - looking for dylib when running on another Mac

I have a cross platform (Windows + Mac) application, built with QT and C++ libraries, which uses OpenCV. I had previously used an OpenCV version downloaded and compiled on the Mac, but decided to try to use the homebrew version to simplify installation on dev machines.

I did brew install opencv --with-contrib and brew link opencv , and managed to get the program to link and run with the libraries from /usr/local/lib.

Problem is, when I install it on another Mac, the program crashes when I try to run it, saying: Library not loaded: /usr/local/Cellar/ilmbase/2.2.1/lib/libIex-2_2.23.dylib .

I'm not sure what to do. I'm not a Mac expert, and certainly no Homebrew expert. Should I go back to compiling OpenCV myself, or can this be solved?

Thanks.

I faced same issue, but I solved it. homebrew installed latest opencv and dependencies. openexr and ilmbase also installed latest version. but opencv.jar refered specific version of library.(ex libIex-2_2.23.dylib) So, you'd install ilmbase version 2.2.X. and than solve library issue.

https://github.com/Homebrew/homebrew-core/blob/master/Formula/ilmbase.rb

This link is ilmbase install Formula. You can ckeckout v.2.2 Formula commit. And than uninstall & re-install ilmbase v.2.2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM