Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#37339 closed defect (fixed)

opencv @2.4.3 +opencl fails to build on Snow Leopard

Reported by: cooljeanius (Eric Gallager) Owned by: stromnov (Andrey Stromnov)
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch, snowleopard, leopard, tiger Cc: josephhowse@…, ryandesign (Ryan Carsten Schmidt)
Port: opencv

Description

Of the variants, the opencl one seems to be the one at fault; removing it caused it to compile correctly. My currently installed OpenCV is:

sh-3.2# port -d installed opencv
The following ports are currently installed:
  opencv @2.4.3_1+debug+eigen+openni+python27+universal (active) platform='darwin 10' archs='i386 x86_64'

Relevant parts of the attached log:

:info:build [ 44%] Building CXX object modules/ocl/CMakeFiles/opencv_ocl.dir/src/error.cpp.o
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl && /usr/bin/g++-4.2   -Dopencv_ocl_EXPORTS -DHAVE_CVCONFIG_H -DHAVE_ALLOCA -DHAVE_ALLOCA_H -DHAVE_LIBPTHREAD -DHAVE_UNISTD_H -DCVAPI_EXPORTS -pipe -O2 -arch x86_64 -arch i386    -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -pthread -fomit-frame-pointer -msse -msse2 -msse3 -arch x86_64 -arch i386 -isysroot / -mmacosx-version-min=10.6 -fPIC -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/video/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/objdetect/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/features2d/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/highgui/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/flann/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/imgproc/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/core/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include -I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3 -I/opt/local/include -I/opt/local/include/eigen3    -o CMakeFiles/opencv_ocl.dir/src/error.cpp.o -c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:44:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/precomp.hpp:49:5: warning: "_MSC_VER" is not defined
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/precomp.hpp:70,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:44:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/ocl.hpp:1741:5: warning: "_MSC_VER" is not defined
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/ocl.hpp:1746:5: warning: "_MSC_VER" is not defined
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/ocl.hpp:1745,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/precomp.hpp:70,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:44:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp: In constructor ‘cv::ocl::oclMat::oclMat(const cv::ocl::oclMat&, const cv::Range&, const cv::Range&)’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:144: warning: declaration of ‘colRange’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:144: warning: declaration of ‘rowRange’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp: In member function ‘void cv::ocl::oclMat::assignTo(cv::ocl::oclMat&, int) const’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:299: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp: In member function ‘cv::ocl::oclMat cv::ocl::oclMat::operator()(cv::Range, cv::Range) const’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:373: warning: declaration of ‘colRange’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:373: warning: declaration of ‘rowRange’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp: In function ‘const char* cv::ocl::getOpenCLErrorString(int)’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:88: error: ‘CL_MISALIGNED_SUB_BUFFER_OFFSET’ was not declared in this scope
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:90: error: ‘CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST’ was not declared in this scope
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:44:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/precomp.hpp:49:5: warning: "_MSC_VER" is not defined
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/precomp.hpp:70,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:44:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/ocl.hpp:1741:5: warning: "_MSC_VER" is not defined
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/ocl.hpp:1746:5: warning: "_MSC_VER" is not defined
:info:build In file included from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/ocl.hpp:1745,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/precomp.hpp:70,
:info:build                  from /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:44:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp: In constructor ‘cv::ocl::oclMat::oclMat(const cv::ocl::oclMat&, const cv::Range&, const cv::Range&)’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:144: warning: declaration of ‘colRange’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:144: warning: declaration of ‘rowRange’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp: In member function ‘void cv::ocl::oclMat::assignTo(cv::ocl::oclMat&, int) const’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:299: warning: declaration of ‘type’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp: In member function ‘cv::ocl::oclMat cv::ocl::oclMat::operator()(cv::Range, cv::Range) const’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:373: warning: declaration of ‘colRange’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/include/opencv2/ocl/matrix_operations.hpp:373: warning: declaration of ‘rowRange’ shadows a member of 'this' [-Wshadow]
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp: In function ‘const char* cv::ocl::getOpenCLErrorString(int)’:
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:88: error: ‘CL_MISALIGNED_SUB_BUFFER_OFFSET’ was not declared in this scope
:info:build /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/ocl/src/error.cpp:90: error: ‘CL_EXEC_STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST’ was not declared in this scope
:info:build lipo: can't open input file: /var/tmp//cccMUIZz.out (No such file or directory)
:info:build make[2]: *** [modules/ocl/CMakeFiles/opencv_ocl.dir/src/error.cpp.o] Error 1
:info:build make[2]: Leaving directory `/opt/local/var/macports/build.build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3'
:info:build make[1]: *** [modules/ocl/CMakeFiles/opencv_ocl.dir/all] Error 2
:info:build make[1]: *** Waiting for unfinished jobs....
:info:build Linking CXX shared library ../../lib/libopencv_calib3d.dylib
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/calib3d && /opt/local/bin/cmake -E cmake_link_script CMakeFiles/opencv_calib3d.dir/link.txt --verbose=1
:info:build /usr/bin/g++-4.2  -pipe -O2 -arch x86_64 -arch i386    -W -Wall -Werror=return-type -Werror=address -Werror=sequence-point -Wformat -Werror=format-security -Wmissing-prototypes -Wundef -Winit-self -Wpointer-arith -Wshadow -Wsign-promo -fdiagnostics-show-option -pthread -fomit-frame-pointer -msse -msse2 -msse3 -arch x86_64 -arch i386 -isysroot / -mmacosx-version-min=10.6 -dynamiclib -Wl,-headerpad_max_install_names  -L/opt/local/lib -arch x86_64 -arch i386 -compatibility_version 2.4.0 -current_version 2.4.3 -o ../../lib/libopencv_calib3d.2.4.3.dylib -install_name /opt/local/lib/libopencv_calib3d.2.4.dylib CMakeFiles/opencv_calib3d.dir/src/calibinit.cpp.o CMakeFiles/opencv_calib3d.dir/src/calibration.cpp.o CMakeFiles/opencv_calib3d.dir/src/checkchessboard.cpp.o CMakeFiles/opencv_calib3d.dir/src/circlesgrid.cpp.o CMakeFiles/opencv_calib3d.dir/src/epnp.cpp.o CMakeFiles/opencv_calib3d.dir/src/fundam.cpp.o CMakeFiles/opencv_calib3d.dir/src/modelest.cpp.o CMakeFiles/opencv_calib3d.dir/src/p3p.cpp.o CMakeFiles/opencv_calib3d.dir/src/polynom_solver.cpp.o CMakeFiles/opencv_calib3d.dir/src/posit.cpp.o CMakeFiles/opencv_calib3d.dir/src/precomp.cpp.o CMakeFiles/opencv_calib3d.dir/src/quadsubpix.cpp.o CMakeFiles/opencv_calib3d.dir/src/solvepnp.cpp.o CMakeFiles/opencv_calib3d.dir/src/stereobm.cpp.o CMakeFiles/opencv_calib3d.dir/src/stereosgbm.cpp.o CMakeFiles/opencv_calib3d.dir/src/triangulate.cpp.o ../../lib/libopencv_core.2.4.3.dylib ../../lib/libopencv_imgproc.2.4.3.dylib ../../lib/libopencv_flann.2.4.3.dylib ../../lib/libopencv_highgui.2.4.3.dylib ../../lib/libopencv_features2d.2.4.3.dylib -Wl,-headerpad_max_install_names ../../lib/libopencv_flann.2.4.3.dylib ../../lib/libopencv_highgui.2.4.3.dylib ../../lib/libopencv_imgproc.2.4.3.dylib ../../lib/libopencv_core.2.4.3.dylib /usr/lib/libz.dylib -Wl,-headerpad_max_install_names 
:info:build cd /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/modules/calib3d && /opt/local/bin/cmake -E cmake_symlink_library ../../lib/libopencv_calib3d.2.4.3.dylib ../../lib/libopencv_calib3d.2.4.dylib ../../lib/libopencv_calib3d.dylib
:info:build make[2]: Leaving directory `/opt/local/var/macports/build.build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3'
:info:build /opt/local/bin/cmake -E cmake_progress_report /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3/CMakeFiles  1 2 3
:info:build [ 44%] Built target opencv_calib3d
:info:build make[1]: Leaving directory `/opt/local/var/macports/build.build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3'
:info:build make: *** [all] Error 2
:info:build make: Leaving directory `/opt/local/var/macports/build.build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_graphics_opencv/opencv/work/OpenCV-2.4.3" && /usr/bin/make -j2 -w all 
:info:build Exit code: 2
:error:build org.macports.build for port opencv returned: command execution failed
:debug:build Error code: CHILDSTATUS 54560 2
:debug:build Backtrace: command execution failed
    while executing
"system -nice 0 $fullcmdstring"
    ("eval" body line 1)
    invoked from within
"eval system $notty $nice \$fullcmdstring"
    invoked from within
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: targets not executed for opencv: org.macports.activate org.macports.build org.macports.destroot org.macports.install

Attachments (4)

opencv+debug+eigen+opencl+openni+python27+universal_main.log (616.7 KB) - added by cooljeanius (Eric Gallager) 12 years ago.
Full main.log
OpenCV-Portfile.diff (498 bytes) - added by cooljeanius (Eric Gallager) 12 years ago.
patch that could be applied to OpenCV's portfile
OpenCV-Portfile.2.diff (612 bytes) - added by cooljeanius (Eric Gallager) 12 years ago.
New diff to apply
OpenCV-Portfile.diff.diff (1.2 KB) - added by cooljeanius (Eric Gallager) 12 years ago.
Diff between the two diffs

Download all attachments as: .zip

Change History (14)

Changed 12 years ago by cooljeanius (Eric Gallager)

Full main.log

comment:1 Changed 12 years ago by jmroot (Joshua Root)

Cc: stromnov@… removed
Owner: changed from macports-tickets@… to stromnov@…

comment:2 Changed 12 years ago by ChristianFrisson (Christian Frisson)

I can confirm that OpenCV 2.4.3 won't build with OpenCL under Snow Leopard 10.6.8, even not universal (just x86_64). But it does under Mountain Lion 10.8.2 (with OpenCL, only x86.64).

There's a clean reason: OpenCL support is provided by Apple on OSX, and Snow Leopard supports OpenCL 1.0: http://en.wikipedia.org/wiki/OpenCL#OpenCL_1.0

While OpenCV 2.4.3 requires OpenCL 1.1: http://docs.opencv.org/modules/ocl/doc/introduction.html

Since it is brought by installing XCode and that Snow Leopard is limited to version 3.2.6... I fear it might be a dead end... unless you update to OSX 10.8 for instance.

Depending on your GPU, you might want to try CUDA support in OpenCV. OpenCV 2.4.3 compiles against CUDA on my MBP 5,1 with nvidia 9400/9600GT GPUs, CUDA 4.2, OSX 10.6.8, x86_64. But again, for more recent CUDA drivers 5, Snow Leopard is obsolete...

comment:3 Changed 12 years ago by cooljeanius (Eric Gallager)

Can variants be made OS-Version dependent? I know entire ports can, but what about variants?

Changed 12 years ago by cooljeanius (Eric Gallager)

Attachment: OpenCV-Portfile.diff added

patch that could be applied to OpenCV's portfile

comment:4 Changed 12 years ago by cooljeanius (Eric Gallager)

Would something like the attached patch work? If so, could someone add the keyword "haspatch" please?

comment:5 Changed 12 years ago by larryv (Lawrence Velázquez)

Keywords: haspatch added
Version: 2.1.2

comment:6 in reply to:  4 Changed 12 years ago by cooljeanius (Eric Gallager)

Replying to egall@…:

Would something like the attached patch work? If so, could someone add the keyword "haspatch" please?

Could someone still running Snow Leopard test for me? The school computers here all run Lion, so I'd have to wait until I get back home to my Snow Leopard machine to test to see if this patch successfully prevents users of Snow Leopard and lower from using the OpenCV variant...

comment:7 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: snowleopard leopard tiger added
Port: opencv added; OpenCV removed
Summary: OpenCV @2.4.3 +debug+eigen+opencl+openni+python27+universal fails to buildopencv @2.4.3 +opencl fails to build on Snow Leopard

Yes that should work, except

  • it's called OS X now (not Mac OS X), and
  • you should never call "return -code error" unless you're inside a phase; the pre-configure phase is probably a good one to use here.

Changed 12 years ago by cooljeanius (Eric Gallager)

Attachment: OpenCV-Portfile.2.diff added

New diff to apply

Changed 12 years ago by cooljeanius (Eric Gallager)

Attachment: OpenCV-Portfile.diff.diff added

Diff between the two diffs

comment:8 Changed 12 years ago by cooljeanius (Eric Gallager)

OK, attached a new diff with your changes, could you apply it and commit it please?

comment:9 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: fixed
Status: newclosed

comment:10 Changed 12 years ago by cooljeanius (Eric Gallager)

Thanks!

Note: See TracTickets for help on using tickets.