Created attachment 403828 [details] opencv-3.0.0_rc1.ebuild Current latest unstable version of OpenCV is 3.0.0-rc1. But in tree we have only 2.4.10. So I'm a litle update latest ebuild for 3.0 version. This builds and work fine for me with this USE set and without any old patches: (eigen jpeg opengl openmp png python qt5 threads ipp)
And I add qt5 USE-flag.
Created attachment 403840 [details] opencv-3.0.0_rc1-r1.ebuild A little updated
*** Bug 551326 has been marked as a duplicate of this bug. ***
Created attachment 404676 [details] opencv-3.0.0.ebuild OpenCV v3.0.0 now supports python3. (but i don't know how to install it for multiple versions) Removed -DENABLE_*=OFF, as they added -mno-* to compiler flags. (see: cmake/OpenCVCompilerOptions.cmake) --- opencv-3.0.0_rc1-r1.ebuild 2015-06-05 22:18:58.360100477 +0300 +++ opencv-3.0.0.ebuild 2015-06-06 14:50:56.484131890 +0300 @@ -3,17 +3,16 @@ # $Header: /var/cvsroot/gentoo-x86/media-libs/opencv/opencv-2.4.10.ebuild,v 1.3 2015/05/05 08:28:32 jer Exp $ EAPI=5 -PYTHON_COMPAT=( python2_7 ) +PYTHON_COMPAT=( python{2_7,3_2,3_3,3_4} ) inherit base toolchain-funcs cmake-utils python-single-r1 java-pkg-opt-2 java-ant-2 -MY_P=${P/_/-} -MY_PV=${PV/_/-} - DESCRIPTION="A collection of algorithms and sample code for various computer vision problems" -HOMEPAGE="http://opencv.willowgarage.com" +HOMEPAGE="http://opencv.org" -SRC_URI="mirror://sourceforge/opencvlibrary/opencv-unix/${MY_PV}/${MY_P}.zip" +SRC_URI=" + mirror://sourceforge/opencvlibrary/opencv-unix/${PV}/${P}.zip + https://github.com/Itseez/${PN}/archive/${PV}.zip -> ${P}.zip" LICENSE="BSD" SLOT="0/3.0" @@ -83,8 +82,6 @@ java? ( >=virtual/jdk-1.6 ) " -S=${WORKDIR}/${MY_P} - pkg_setup() { use python && python-single-r1_pkg_setup java-pkg-opt-2_pkg_setup @@ -158,14 +155,6 @@ $(cmake-utils_use testprograms INSTALL_TESTS) # build options $(cmake-utils_use_enable pch PRECOMPILED_HEADERS) - -DENABLE_OMIT_FRAME_POINTER=OFF # - -DENABLE_FAST_MATH=OFF # - -DENABLE_SSE=OFF # these options do nothing but - -DENABLE_SSE2=OFF # add params to CFLAGS - -DENABLE_SSE3=OFF - -DENABLE_SSSE3=OFF - -DENABLE_SSE41=OFF - -DENABLE_SSE42=OFF -DOPENCV_EXTRA_FLAGS_RELEASE="" # black magic )
In 3.0 release notes: a subset of Intel IPP (IPPCV) is given to us and our users free of charge, free of licensing fees, for commercial and non-commerical use. It’s used by default in x86 and x64 builds on Windows, Linux and Mac. Because standart IPP lib is available only for trial or buy we have masked ipp USE-flag. But OpenCV can download this lib by just using -DWITH_IPP=ON So, may we should remove sci-libs/ipp from dependencies and unmask (and enable by default) this USE-flag?
Confirming: works fine on amd64, with these use flags: eigen ffmpeg jpeg opengl openmp png python qt4 threads tiff -cuda -doc -examples -gstreamer -gtk -ieee1394 -ipp -java -jpeg2k -libav -opencl -openexr -pch -qt5 -testprograms -v4l -vtk -xine ELIBC="-FreeBSD" PYTHON_SINGLE_TARGET="python2_7 -python3_3 -python3_4" PYTHON_TARGETS="python2_7 python3_3 -python3_4"
Finally works also for me. Thanks for contributing. Can you please test it? Thanks. Amy
(In reply to Amy Winston from comment #7) media-libs/opencv-3.0.0 on amd64, built with the following use flags: ABI_X86="64" USE="eigen ffmpeg gstreamer jpeg jpeg2k openexr opengl openmp png python qt4 testprograms threads tiff v4l -cuda -doc -examples -gtk -ieee1394 (-ipp) -java -libav -opencl -pch -qt5 -vtk -xine" PYTHON_SINGLE_TARGET="python3_4 -python2_7 -python3_3" PYTHON_TARGETS="python2_7 python3_4 -python3_3" Test results: opencv_test_core [==========] 2901 tests from 118 test cases ran. (161998 ms total) [ PASSED ] 2901 tests. YOU HAVE 439 DISABLED TESTS opencv_test_calib3d [==========] 58 tests from 37 test cases ran. (118812 ms total) [ PASSED ] 58 tests. YOU HAVE 2 DISABLED TESTS opencv_test_features2d [==========] 44 tests from 44 test cases ran. (135450 ms total) [ PASSED ] 44 tests. YOU HAVE 1 DISABLED TEST opencv_test_flann [==========] 1 test from 1 test case ran. (1 ms total) [ PASSED ] 1 test. opencv_test_highgui [==========] 1 test from 1 test case ran. (673 ms total) [ PASSED ] 1 test. opencv_test_ml [==========] 24 tests from 11 test cases ran. (65569 ms total) [ PASSED ] 24 tests. YOU HAVE 3 DISABLED TESTS opencv_test_objdetect [==========] 5 tests from 4 test cases ran. (20986 ms total) [ PASSED ] 5 tests. opencv_test_photo [==========] 27 tests from 27 test cases ran. (45905 ms total) [ PASSED ] 27 tests. opencv_test_shape [==========] 3 tests from 3 test cases ran. (993243 ms total) [ PASSED ] 3 tests. opencv_test_stitching [==========] 1 test from 1 test case ran. (83 ms total) [ PASSED ] 1 test. opencv_test_superres [==========] 1 test from 1 test case ran. (5488 ms total) [ PASSED ] 1 test. opencv_test_video [==========] 16 tests from 15 test cases ran. (10456 ms total) [ PASSED ] 16 tests. opencv_test_videoio [==========] 15 tests from 4 test cases ran. (213561 ms total) [ PASSED ] 14 tests. [ FAILED ] 1 test, listed below: [ FAILED ] Videoio_Video.ffmpeg_writebig 1 FAILED TEST YOU HAVE 1 DISABLED TEST The failed test output: [ RUN ] Videoio_Video.ffmpeg_writebig OpenCV: FFMPEG: tag 0x34363248/'H264' is not supported with codec id 28 and format 'mp4 / MP4 (MPEG-4 Part 14)' OpenCV: FFMPEG: fallback to use tag 0x00000021/'!???' [libx264 @ 0x736140] Specified pixel format yuv420p is invalid or not supported Could not open codec 'libx264': Unspecified error (opencv_test_videoio:13266): GStreamer-CRITICAL **: gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed /var/tmp/portage/tmpfs/portage/media-libs/opencv-3.0.0/work/opencv-3.0.0/modules/ts/src/ts.cpp:515: Failure Failed failure reason: Invalid function output test case #-1 seed: ffffffffffffffff ----------------------------------- LOG: OpenCV Error: Unspecified error (GStreamer: cannot link elements ) in CvVideoWriter_GStreamer::open, file /var/tmp/portage/tmpfs/portage/media-libs/opencv-3.0.0/work/opencv-3.0.0/modules/videoio/src/cap_gstreamer.cpp, line 1396 ----------------------------------- [ FAILED ] Videoio_Video.ffmpeg_writebig (28088 ms) Don't know if this is an opencv fault, but 99.97% of the stuff works.