开发者

Instal openCV on mac os x 10.6.7 with Xcode

开发者 https://www.devze.com 2023-03-31 00:15 出处:网络
I am trying to install OpenCV on my Mac (OS X v10.6.3) with this guide : http://www.randomsequence.com/articles/opencv-snow-leopard/

I am trying to install OpenCV on my Mac (OS X v10.6.3) with this guide : http://www.randomsequence.com/articles/opencv-snow-leopard/

The build failed. This'is the error:

ld: library not found for -lavcodec

collect2: ld returned 1 exit status

Command /Developer/开发者_运维技巧usr/bin/g++-4.2 failed with exit code 1

Where can I found and install this library?


If you followed the article you have macports installed.

If so use it to install openCV e.g.

sudo port install opencv

the current macports installs openCV 2.2.0

If you have not used macports for some time you should update it first to get the latest versions see guide

sudo port selfupdate
sudo port upgrade outdated
0

精彩评论

暂无评论...
验证码 换一张
取 消