Ask Your Question
0

Mac launch issue

asked 2016-07-16 06:42:18 -0600

I was installed opencv via brew and I was make DisplayImage demo then i tried to run demo: bin/DisplayImage 011.jpg

dyld: Library not loaded: /usr/local/opt/webp/lib/libwebp.6.dylib
  Referenced from: /usr/local/opt/opencv3/lib/libopencv_imgcodecs.3.1.dylib
   Reason: image not found
[1]    17647 trace trap  bin/DisplayImage 011.jpg

I tried to install the webp, but it ships without libwebp.6.dylib


OS X Capitan

edit retag flag offensive close merge delete

Comments

Did you find a resolution to this problem? I am having the same issue!

ravin gravatar imageravin ( 2016-08-02 13:17:27 -0600 )edit

2 answers

Sort by ยป oldest newest most voted
1

answered 2016-08-02 18:36:06 -0600

ravin gravatar image

updated 2016-08-02 18:40:09 -0600

I found the solution by using the steps here:

https://developers.google.com/speed/w...

Steps:

  1. Download libwebp-0.5.1.tar.gz from https://storage.googleapis.com/downlo...
  2. Unzip or untar
  3. cd libwebp-0.5.1
  4. ./configure
  5. make
  6. sudo make install
edit flag offensive delete link more
0

answered 2016-10-13 07:31:24 -0600

wik gravatar image

Upgrading webp with homebrew solved issue in my case:

brew upgrade webp

p.s.

before upgrade I had 0.4.4 with libwebp.5.dylib in /usr/local/Cellar/webp/0.4.4/lib

after upgrade it is now 0.5.1 with libwebp.6.dylib in /usr/local/Cellar/webp/0.5.1/lib

>>> import cv2
>>> cv2.__version__
'3.1.0'
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2016-07-16 06:36:14 -0600

Seen: 1,712 times

Last updated: Aug 02 '16