OpenCV 2.1 doesn't compile on OSX snow leopard 64 bit (Bug #261)


Added by Gijs Molenaar almost 15 years ago. Updated almost 15 years ago.


Status:Done Start date:
Priority:High Due date:
Assignee:- % Done:

0%

Category:build/install
Target version:-
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

I needed to patch the source to get OpenCV 2.1.0 compiling on OSX snow leopard. See patch.

There was a problem that highgui was linking to quicktime (32 bit) and QuartzCore. Also, the python module file extension is wrong. The cmakefile assumes that when you use osx the extension for python modules is .SO, but this isn't always the case, for example when you use a gentoo osx prefix.

Linking CXX shared library ../../lib/libhighgui.dylib
cd /Users/gijs/Work/opencv/OpenCV-2.1.0/build/src/highgui && /Gentoo/usr/bin/cmake -E cmake_link_script CMakeFiles/highgui.dir/link.txt --verbose=1
/Gentoo/usr/bin/c++ -Wall -pthread -O3 -DNDEBUG -fomit-frame-pointer -O3 -ffast-math -msse -msse2 -msse3 -mssse3 -DNDEBUG -dynamiclib -headerpad_max_install_names -compatibility_version 2.1.0 -current_version 2.1.0
-o ../../lib/libhighgui.2.1.0.dylib
-install_name /Users/gijs/Work/opencv/OpenCV-2.1.0/build/lib/libhighgui.2.1.dylib
CMakeFiles/highgui.dir/cvcap.o CMakeFiles/highgui.dir/cvcap_images.o CMakeFiles/highgui.dir/image.o CMakeFiles/highgui.dir/loadsave.o CMakeFiles/highgui.dir/precomp.o CMakeFiles/highgui.dir/utils.o CMakeFiles/highgui.dir/window.o CMakeFiles/highgui.dir/window_cocoa.o CMakeFiles/highgui.dir/cvcap_qt.o CMakeFiles/highgui.dir/bitstrm.o CMakeFiles/highgui.dir/grfmt_base.o CMakeFiles/highgui.dir/grfmt_bmp.o CMakeFiles/highgui.dir/grfmt_exr.o CMakeFiles/highgui.dir/grfmt_imageio.o CMakeFiles/highgui.dir/grfmt_jpeg.o CMakeFiles/highgui.dir/grfmt_jpeg2000.o CMakeFiles/highgui.dir/grfmt_png.o CMakeFiles/highgui.dir/grfmt_pxm.o CMakeFiles/highgui.dir/grfmt_sunras.o CMakeFiles/highgui.dir/grfmt_tiff.o
-L/Users/gijs/Work/opencv/OpenCV-2.1.0/build/3rdparty/lib ../../lib/libcxcore.2.1.0.dylib ../../lib/libcv.2.1.0.dylib ../../3rdparty/lib/liblibjasper.a ../../3rdparty/lib/liblibjpeg.a ../../3rdparty/lib/liblibpng.a ../../3rdparty/lib/libzlib.a ../../3rdparty/lib/liblibtiff.a -lbz2 -framework Cocoa -framework QuickTime -framework CoreFoundation -framework QuartzCore -framework QTKit ../../lib/libcxcore.2.1.0.dylib ../../3rdparty/lib/libzlib.a ../../3rdparty/lib/libopencv_lapack.a ../../3rdparty/lib/libflann.a
collect2: ld terminated with signal 6 [Abort trap]
got unhandled exception: missing required architecture x86_64 in file
terminate called after throwing an instance of 'char const*'
maker2: * [lib/libhighgui.2.1.0.dylib] Error 1
maker2: Leaving directory /Users/gijs/Work/opencv/OpenCV-2.1.0/build'
maker1: *** [src/highgui/CMakeFiles/highgui.dir/all] Error 2
maker1: *** Waiting for unfinished jobs....
maker2: Leaving directory
/Users/gijs/Work/opencv/OpenCV-2.1.0/build'
/Gentoo/usr/bin/cmake -E cmake_progress_report /Users/gijs/Work/opencv/OpenCV-2.1.0/build/CMakeFiles 96
[ 69%] Built target pch_Generate_cxcoretest
maker1: Leaving directory @/Users/gijs/Work/opencv/OpenCV-2.1.0/build'
make: *
[all] Error 2


opencv-2.1.0-osx.patch - patch to get opencv 2.1.0 compiling on OSX (1.4 kB) Gijs Molenaar, 2010-04-06 11:03 pm


Associated revisions

Revision b7881111
Added by Andrey Kamaev about 12 years ago

Merge pull request #261 from apavlenko:samples_remove_empty_menu

Revision 3437bda7
Added by Alexander Alekhin over 9 years ago

Merge pull request #261 from SpecLad:chessboard-png

History

Updated by anonymous - almost 15 years ago

thanks! your patch has been applied in r2998

  • Status changed from Open to Done
  • (deleted custom field) set to fixed

Also available in: Atom PDF