Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

OpenCV Python on Snow Leopard Install Headache

Hi all! I have been trying for 2 weeks to install OpenCV 2.4 via Terminal in Mac Snow Leopard and I am in desperate need of suggestions. I have been using Homebrew to install but it is not building.

1st Step - via Terminal, I tried to install but I received these error messages:

XcodeWarrior $ brew install opencv ==> Downloading http://sourceforge.net/projects/opencvli Already downloaded: /Library/Caches/Homebrew/opencv-2.4.2.tar.bz2 ==> cmake -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/openc ==> make ld: symbol(s) not found collect2: ld returned 1 exit status make[2]: * [lib/cv2.so] Error 1 make[1]: [modules/python/CMakeFiles/opencv_python.dir/all] Error 2 make: ** [all] Error 2

Error: opencv did not build

2nd Step - I tried brew doctor in Terminal but received warnings:

Warning: "config" scripts exist outside your system or Homebrew directories. ./configure scripts often look for *-config scripts to determine if software packages are installed, and what additional flags to use when compiling and linking.

Having additional scripts in your path can confuse software installed via Homebrew if the config script overrides a system or Homebrew provided script of the same name. We found the following "config" scripts:

/Library/Frameworks/Python.framework/Versions/2.7/bin/python-config
/Library/Frameworks/Python.framework/Versions/2.7/bin/python2.7-config
/Library/Frameworks/Python.framework/Versions/2.6/bin/python-config
/Library/Frameworks/Python.framework/Versions/2.6/bin/python2.6-config
/Library/Frameworks/Python.framework/Versions/3.2/bin/python3-config
/Library/Frameworks/Python.framework/Versions/3.2/bin/python3.2-config
/Library/Frameworks/Python.framework/Versions/3.2/bin/python3.2m-config
/Library/Frameworks/Python.framework/Versions/Current/bin/python-config
/Library/Frameworks/Python.framework/Versions/Current/bin/python2.5-config
/usr/local/lib/wxPython/bin/wx-config

At this point I'm completely stumped. Can Anyone tell me what I'm not doing, or what I'm doing wrong? Thank you!