Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289258 - media-libs/opencv-2.0.0 version bump
Summary: media-libs/opencv-2.0.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL: http://sourceforge.net/projects/openc...
Whiteboard:
Keywords:
: 289301 (view as bug list)
Depends on:
Blocks: 272325 277403 282033 283832
  Show dependency tree
 
Reported: 2009-10-15 22:51 UTC by Simeon Maryasin
Modified: 2009-11-15 19:19 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Unfinished. (opencv-2.0.0.ebuild,1.45 KB, text/plain)
2009-10-15 23:51 UTC, Samuli Suominen (RETIRED)
Details
Alternate ebuild (opencv-2.0.0.ebuild,2.07 KB, text/plain)
2009-10-16 12:29 UTC, Aaron Mavrinac (ezod)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Simeon Maryasin 2009-10-15 22:51:06 UTC
There is 2.0.0 version of OpenCV out. But Portage tree still contains only 1.0.0, which doesn't compile without some additional patches.

Reproducible: Always

Steps to Reproduce:
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2009-10-15 23:51:08 UTC
Created attachment 207262 [details]
Unfinished.

It's unfinished. I will finish this later on, tomorrow perhaps. The cmake is now preferred build-system (by upstream) so we should use it too.
Comment 2 Simeon Maryasin 2009-10-16 01:06:52 UTC
I think USE flag for jasper must be called 'jpeg2k', not 'jasper'. At least it is for opencv-1.0.0.
Comment 3 Simeon Maryasin 2009-10-16 01:18:24 UTC
Also, please add 'examples' use flag or such:
...
$(cmake-utils_use_build examples EXAMPLES)
Comment 4 Christophe Paccolat 2009-10-16 07:37:15 UTC
You can have a look here, somebody already made an ebuild for OpenCV-2.0. 
http://www.mavrinac.com/index.cgi?page=gentoo. It is building correctly (included with ieee1394 useflag enbabled). A few things are still missing though (MMX/SSEx and other use flags, stripping optimizations flags when building the debug version...)
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2009-10-16 11:28:46 UTC
*** Bug 289301 has been marked as a duplicate of this bug. ***
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-10-16 11:33:36 UTC
Semen and C., yes I know, I didn't have time yesterday... and I agree.
Comment 7 Aaron Mavrinac (ezod) 2009-10-16 12:29:59 UTC
Created attachment 207305 [details]
Alternate ebuild

I updated my ebuild to include some better USE flag usage from S. Suominen's ebuild - should be the best of both worlds now. Builds and works on my amd64 system.

Note the -j1; I had problems previously (things building out of order) without it. Also, I did not include anything for a debug version (incl. stripping optimizations, per C. Paccolat), perhaps this should be considered?

Sorry for the dupe at #289301, I typoed my search.
Comment 8 Samuli Suominen (RETIRED) gentoo-dev 2009-10-16 15:01:19 UTC
Thanks Aaron again.

It's in portage.
Comment 9 Zsolti 2009-10-16 15:02:33 UTC
Compilation fails for me with:
make -j5 -j1 
Scanning dependencies of target opencv_lapack
[  0%] Building C object 3rdparty/lapack/CMakeFiles/opencv_lapack.dir/dstein.o
cc1: error: unrecognized command line option "-fopenmp"
make[2]: *** [3rdparty/lapack/CMakeFiles/opencv_lapack.dir/dstein.o] Error 1
make[1]: *** [3rdparty/lapack/CMakeFiles/opencv_lapack.dir/all] Error 2
make: *** [all] Error 2
 * ERROR: media-libs/opencv-2.0.0 failed:
 *   Make failed!
 * 
 * Call stack:
 *     ebuild.sh, line   49:  Called src_compile
 *   environment, line 3006:  Called cmake-utils_src_compile
 *   environment, line  803:  Called cmake-utils_src_make
 *   environment, line  884:  Called die
 * The specific snippet of code:
 *           emake "$@" || die "Make failed!";
 * 
 * If you need support, post the output of 'emerge --info =media-libs/opencv-2.0.0',
 * the complete build log and the output of 'emerge -pqv =media-libs/opencv-2.0.0'.
 * This ebuild is from an overlay: '/usr/local/portage-overlays/my/'
 * The complete build log is located at '/var/tmp/portage/media-libs/opencv-2.0.0/temp/build.log'.

I'm still running on gcc-4.1.2. This lacks openmp.
Comment 10 Jiri Tyr 2009-11-15 19:19:30 UTC
I had exactly the same problem. I have fixed it with USE="-openmp".

(In reply to comment #9)
> Compilation fails for me with:
> make -j5 -j1 
> Scanning dependencies of target opencv_lapack
> [  0%] Building C object 3rdparty/lapack/CMakeFiles/opencv_lapack.dir/dstein.o
> cc1: error: unrecognized command line option "-fopenmp"
> make[2]: *** [3rdparty/lapack/CMakeFiles/opencv_lapack.dir/dstein.o] Error 1
> make[1]: *** [3rdparty/lapack/CMakeFiles/opencv_lapack.dir/all] Error 2
> make: *** [all] Error 2
>  * ERROR: media-libs/opencv-2.0.0 failed:
>  *   Make failed!
>  * 
>  * Call stack:
>  *     ebuild.sh, line   49:  Called src_compile
>  *   environment, line 3006:  Called cmake-utils_src_compile
>  *   environment, line  803:  Called cmake-utils_src_make
>  *   environment, line  884:  Called die
>  * The specific snippet of code:
>  *           emake "$@" || die "Make failed!";
>  * 
>  * If you need support, post the output of 'emerge --info
> =media-libs/opencv-2.0.0',
>  * the complete build log and the output of 'emerge -pqv
> =media-libs/opencv-2.0.0'.
>  * This ebuild is from an overlay: '/usr/local/portage-overlays/my/'
>  * The complete build log is located at
> '/var/tmp/portage/media-libs/opencv-2.0.0/temp/build.log'.
> 
> I'm still running on gcc-4.1.2. This lacks openmp.
>