Build failure on Mac OS X (Bug #1519)
Description
Problem initially faced building OpenCV trunk with make & gcc on Mac OS X for x86. OpenCV build fails if OpenCV 2.1 from mac-ports is installed on the system. (I'm not sure if it was mac-ports. Victor, please correct me, if it was another repository.)
Compiler chooses OpenCV headers from install location instead of current source tree. And build fails because headers are not compatible.
Associated revisions
Merge pull request #1519 from ilya-lavrenov:ocl_minMax
History
Updated by Kazuki Matsuda about 13 years ago
It's just same in my problem under Visual Studio 2010 environment. I have a patch. I don't know it is fundamental solution or not. But the patch works well in my lab.
Updated by Kazuki Matsuda about 13 years ago
Ops. The patch is wrong. Please ignore my previous reply. Sorry.
Updated by shalinig - about 13 years ago
Confirming that the problem occurs when openCV 2.1 is installed on the Mac system via Macports.
Updated by Vadim Pisarevsky about 13 years ago
let's lower priority of the bug. macports can cause a lot of problems indeed. Since opencv in macports is not necessary to build SVN version of opencv, one can just remove or temporarily rename the corresponding include directory (/opt/include/opencv or whatever) while building opencv:
sudo mv /opt/include/opencv /opt/include/old_opencv && cd <opencv_build_dir> && cmake <opencv_source_dir> && make && make install && sudo mv /opt/include/old_opencv /opt/include/opencv.
- Status changed from Open to Done
- (deleted custom field) set to wontfix
Updated by shalinig - about 13 years ago
Please update the online documentation for building opencv svn for Mac with clear instructions for dealing with this case when there is openCV 2.1 installed via Macports at /opt/local/.