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 eg
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
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.