Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 70506 - [science overlay] sci-libs/opencv-1.0.0 (New ebuild)
Summary: [science overlay] sci-libs/opencv-1.0.0 (New ebuild)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Josh Glover (RETIRED)
URL:
Whiteboard:
Keywords: InOverlay
: 121923 159826 200545 227975 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-08 14:11 UTC by G. Clark Haynes
Modified: 2008-06-25 18:41 UTC (History)
17 users (show)

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


Attachments
OpenCV-0.9.6 ebuild (opencv-0.9.6.ebuild,612 bytes, text/plain)
2004-11-08 14:12 UTC, G. Clark Haynes
Details
opencv-0.9.6-r1.ebuild (opencv-0.9.6.ebuild,776 bytes, text/plain)
2005-01-14 16:32 UTC, Roman Stanchak
Details
opencv-cvs-0.01.ebuild (opencv-cvs-0.01.ebuild,777 bytes, text/plain)
2005-01-15 17:29 UTC, Roman Stanchak
Details
Dated CVS ebuild for OpenCV (opencv-cvs-20050908.ebuild,803 bytes, text/plain)
2005-09-07 11:05 UTC, Roman Stanchak
Details
Dated CVS ebuild for OpenCV (Fixed) (opencv-cvs-20050908.ebuild,799 bytes, text/plain)
2005-09-08 12:26 UTC, Roman Stanchak
Details
This is an ebuild for the opencv 0.9.7 (opencv-0.9.7.ebuild,576 bytes, text/plain)
2006-02-07 22:02 UTC, Sylvain Lamontagne
Details
Dated CVS ebuild with support for python wrapper (opencv-cvs-20060329.ebuild,946 bytes, application/octet-stream)
2006-03-29 13:57 UTC, Luc Stepniewski
Details
updated the URL to the CVS repository (opencv-cvs-20060329.ebuild,1018 bytes, text/plain)
2006-06-03 07:07 UTC, sebastian
Details
opencv-0.9.9.ebuild (opencv-0.9.9.ebuild,1.18 KB, application/octet-stream)
2006-09-22 12:57 UTC, Michael Richmond
Details
Ebuild for 2006-11-11 CVS snapshot (opencv-20061111.ebuild,1.89 KB, text/plain)
2006-11-13 04:46 UTC, Bolek Tekielski
Details
Patch for cvs ebuild to enable USE flags (enable-use-flags-20061111.patch,4.08 KB, patch)
2006-11-13 04:48 UTC, Bolek Tekielski
Details | Diff
Ebuild for 1.0.0 version (opencv-1.0.0.ebuild,1.56 KB, text/plain)
2006-12-09 11:40 UTC, Bolek Tekielski
Details
patch to enable USE flags, and to fix for some default C(XX)FLAGS (enable-use-flags-1.0.0.patch,4.99 KB, patch)
2006-12-09 11:41 UTC, Bolek Tekielski
Details | Diff
ebuild for the latest OpenCv CVS snapshot (opencv-cvs.ebuild,1.84 KB, text/plain)
2007-03-06 15:45 UTC, sebastian
Details
revised patch file for ebuild posted 2007/03/06 (enable-use-flags-20061111.patch,4.18 KB, patch)
2007-04-29 17:46 UTC, Joel Kammet
Details | Diff
build.log from failed attempt to emerge opencv-cvs.ebuild (build.log,88.29 KB, text/plain)
2007-04-29 18:03 UTC, Joel Kammet
Details
Proposed patch to fix compile errors related to cvcap_ffmpeg.cpp (cvcap_ffmpeg-1.0.0.patch,459 bytes, patch)
2007-05-08 19:27 UTC, Neil Alldrin
Details | Diff
Made a minor change to the previous patch. (cvcap_ffmpeg-1.0.0.patch,531 bytes, patch)
2007-05-08 19:45 UTC, Neil Alldrin
Details | Diff
Revised version of Bolek's 1.0.0 ebuild to include the cvcap_ffmpeg patch. (opencv-1.0.0.ebuild,1.61 KB, text/plain)
2007-05-08 19:48 UTC, Neil Alldrin
Details
opencv-1.0.0.ebuild with fixes suggested by Sébastien (opencv-1.0.0.ebuild,1.83 KB, text/plain)
2007-06-06 10:43 UTC, whereami
Details
opencv-1.0.0.ebuild with fixes suggested by Sébastien - v2 (opencv-1.0.0.ebuild,1.92 KB, text/plain)
2007-06-06 12:26 UTC, whereami
Details
Patch for opencv-1.0.0 to remove ffmpeg related compile errors. (cvcap_ffmpeg.cpp.patch,1.98 KB, patch)
2007-09-06 20:58 UTC, Genus
Details | Diff
snapshot of dev-libs/opencv overlay on my system (opencv-gentoo-portage-080603.tgz,5.60 KB, application/octet-stream)
2008-06-02 23:19 UTC, Nagy Zoltan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description G. Clark Haynes 2004-11-08 14:11:45 UTC
OpenCV can be built with libraw1394 and libdc1394, but the latest version still uses a slightly older libraw1394 (0.8.0) han the current one in portage (0.9.0), so I've disabled that.  But everything else seems to be working well.  I've locally assigned it to media-libs.  All other details in ebuild.

Reproducible: Always
Steps to Reproduce:
Comment 1 G. Clark Haynes 2004-11-08 14:12:50 UTC
Created attachment 43551 [details]
OpenCV-0.9.6 ebuild
Comment 2 Roman Stanchak 2005-01-14 16:30:14 UTC
The opencv build fails if a newer version of libdc1394 is installed (I have it installed for another app).  The configure script fails to check for this, and therefore fails.  Here is a build that downloads a newer configure.in from the opencv cvs.  It is ugly -- if anyone can fix it, please do.
Comment 3 Roman Stanchak 2005-01-14 16:32:46 UTC
Created attachment 48523 [details]
opencv-0.9.6-r1.ebuild
Comment 4 Roman Stanchak 2005-01-15 17:29:02 UTC
Created attachment 48598 [details]
opencv-cvs-0.01.ebuild

This ebuild downloads and installs the current opencv cvs tree.  The releases
have some irritating bugs that are fixed in the cvs, so this may be useful to
some.  It may be useful to specify a particular revision to checkout, which I
may add in the near future.  Just a note, this ebuild has to go in a
'opencv-cvs' directory in portage, not 'opencv', as the previous ebuilds do.
Comment 5 alblurrow 2005-02-14 12:28:31 UTC
I won't compile with linux26-headers, it needs linux-headers even if you are using a 2.6 kernel.
Comment 6 Roman Stanchak 2005-09-07 11:05:27 UTC
Created attachment 67843 [details]
Dated CVS ebuild for OpenCV

This ebuild will download the cvs version based on the trailing date.  If
20050908 doesn't work for you, just change it to an older or more recent date.
Comment 7 Roman Stanchak 2005-09-08 12:26:25 UTC
Created attachment 67954 [details]
Dated CVS ebuild for OpenCV (Fixed)

Sorry -- there was a bug in the ECVS_CO_OPTS flags.
Comment 8 Benedict Brown 2006-02-06 08:05:41 UTC
I just used Roman's CVS ebuild to put OpenCV on a fresh Gentoo install.  I had to rename it opencv-cvs-20050916.ebuild to get a version that would compile against recent versions of ffmpeg.  Of course, there are lots of changes in cvs since then, but that date at least gives something that compiles and installs.

Thanks to Roman and everyone else for putting an ebuild together.

Benedict
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2006-02-07 01:32:14 UTC
*** Bug 121923 has been marked as a duplicate of this bug. ***
Comment 10 Sylvain Lamontagne 2006-02-07 22:02:30 UTC
Created attachment 79193 [details]
This is an ebuild for the opencv 0.9.7

I made this ebuild to install the opencv-0.9.7 on my gentoo and it works.
But I try a lot of things before, with ffmpeg, libdc1394, v4l in use flag... So it's working for me but it may not for you try it and comment please.
Comment 11 Sylvain Lamontagne 2006-02-07 22:07:03 UTC
I suggest an addition to portage with and hard masked status. Is it possible ?
Comment 12 Chris Fairles 2006-02-18 06:42:52 UTC
I can check out the code manually using cvs, but using the ebuild this ALWAYS occurs.

 * Fetching CVS module opencv into /usr/portage/distfiles/cvs-src ...
 * Running  cvs -q -f -z3 -d ":pserver:anonymous:@cvs.sourceforge.net:/cvsroot/opencvlibrary" login
Logging in to :pserver:anonymous@cvs.sourceforge.net:2401/cvsroot/opencvlibrary
cvs [login aborted]: unrecognized auth response from cvs.sourceforge.net: M -!- Client or Server timeout occurred!

!!! ERROR: media-gfx/opencv-20060217 failed.
Call stack:
  ebuild.sh, line 1894:   Called dyn_unpack
  ebuild.sh, line 694:   Called src_unpack
  ebuild.sh, line 1609:   Called cvs_src_unpack
  cvs.eclass, line 503:   Called cvs_fetch

!!! cvs login command failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

In the above case i removed the -D {PV} -dP and changed to just -P but same error occurs
Comment 13 Chris Fairles 2006-02-18 06:47:15 UTC
this also sometimes occurs
 * Fetching CVS module opencv into /usr/portage/distfiles/cvs-src ...
 * Running  cvs -q -f -z3 -d ":pserver:anonymous:@cvs.sourceforge.net:/cvsroot/opencvlibrary" login
Logging in to :pserver:anonymous@cvs.sourceforge.net:2401/cvsroot/opencvlibrary
cvs [login aborted]: end of file from server (consult above messages if any)
Comment 14 Luc Stepniewski 2006-03-29 13:57:57 UTC
Created attachment 83396 [details]
Dated CVS ebuild with support for python wrapper

I updated the previous cvs ebuild to allow the possibility of compiling the python wrapper support.
Comment 15 Priit Laes (IRC: plaes) 2006-05-02 03:19:55 UTC
This package seems not to be gcc-4 safe :(

...
cvcap.cpp: In function 'void icvCloseAVI_FFMPEG(CvCaptureAVI_FFMPEG*)':
cvcap.cpp:1202: error: cannot convert 'AVCodecContext**' to 'AVCodecContext*' for argument '1' to 'int avcodec_close(AVCodecContext*)'
cvcap.cpp:1213: warning: dereferencing type-punned pointer will break strict-aliasing rules
cvcap.cpp: In function 'int icvOpenAVI_FFMPEG(CvCaptureAVI_FFMPEG*, const char*)':
cvcap.cpp:1242: error: cannot convert 'AVCodecContext**' to 'AVCodecContext*' in initialization
cvcap.cpp: In function 'int icvGrabFrameAVI_FFMPEG(CvCaptureAVI_FFMPEG*)':
cvcap.cpp:1296: error: cannot convert 'AVCodecContext**' to 'AVCodecContext*' for argument '1' to 'int avcodec_decode_video(AVCodecContext*, AVFrame*, int*, uint8_t*, int)'
cvcap.cpp: In function 'const IplImage* icvRetrieveFrameAVI_FFMPEG(CvCaptureAVI_FFMPEG*)':
cvcap.cpp:1315: error: request for member 'pix_fmt' in 'capture->CvCaptureAVI_FFMPEG::video_st->AVStream::codec', which is of non-class type 'AVCodecContext*'
cvcap.cpp:1316: error: request for member 'width' in 'capture->CvCaptureAVI_FFMPEG::video_st->AVStream::codec', which is of non-class type 'AVCodecContext*'
cvcap.cpp:1316: error: request for member 'height' in 'capture->CvCaptureAVI_FFMPEG::video_st->AVStream::codec', which is of non-class type 'AVCodecContext*'
cvcap.cpp: In function 'double icvGetPropertyAVI_FFMPEG(CvCaptureAVI_FFMPEG*, int)':
cvcap.cpp:1353: error: request for member 'frame_rate' in 'capture->CvCaptureAVI_FFMPEG::video_st->AVStream::codec', which is of non-class type 'AVCodecContext*'
cvcap.cpp:1354: error: request for member 'frame_rate_base' in 'capture->CvCaptureAVI_FFMPEG::video_st->AVStream::codec', which is of non-class type 'AVCodecContext*'
cvcap.cpp:1357: error: request for member 'codec_tag' in 'capture->CvCaptureAVI_FFMPEG::video_st->AVStream::codec', which is of non-class type 'AVCodecContext*'cvcap.cpp: In function 'CvCapture* cvCaptureFromFile(const char*)':
cvcap.cpp:1438: warning: dereferencing type-punned pointer will break strict-aliasing rules
cvcap.cpp: In function 'CvVideoWriter* cvCreateVideoWriter(const char*, int, double, CvSize, int)':
cvcap.cpp:1604: error: 'struct AVCodecContext' has no member named 'frame_rate'
cvcap.cpp:1605: error: 'struct AVCodecContext' has no member named 'frame_rate_base'
cvcap.cpp:1614: warning: dereferencing type-punned pointer will break strict-aliasing rules
cvcap.cpp:1618: warning: dereferencing type-punned pointer will break strict-aliasing rules
cvcap.cpp:1630: warning: dereferencing type-punned pointer will break strict-aliasing rules
cvcap.cpp:1634: warning: dereferencing type-punned pointer will break strict-aliasing rules
cvcap.cpp:1648: warning: dereferencing type-punned pointer will break strict-aliasing rules
cvcap.cpp:1652: warning: dereferencing type-punned pointer will break strict-aliasing rules
cvcap.cpp: In function 'void cvReleaseVideoWriter(CvVideoWriter**)':
cvcap.cpp:1708: warning: dereferencing type-punned pointer will break strict-aliasing rules
make[3]: *** [cvcap.lo] Error 1
make[3]: Leaving directory `/var/tmp/portage/opencv-0.9.7/work/opencv-0.9.7/otherlibs/highgui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/opencv-0.9.7/work/opencv-0.9.7/otherlibs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/opencv-0.9.7/work/opencv-0.9.7'
make: *** [all] Error 2

!!! ERROR: media-libs/opencv-0.9.7 failed.
Comment 16 sebastian 2006-06-03 07:07:33 UTC
Created attachment 88262 [details]
updated the URL to the CVS repository
Comment 17 Priit Laes (IRC: plaes) 2006-09-08 22:30:13 UTC
They have made a 1.0rc1 which looks very promising.
Comment 18 Michael Richmond 2006-09-22 12:57:33 UTC
Created attachment 97795 [details]
opencv-0.9.9.ebuild

Ebuild for opencv-0.9.9 (release candidate 1.0rc1. This ebuild compiles the 0.9.9 release without any problems on amd64 using gcc 4.1.1 -- it looks like this release of the opencv codebase does not have the gcc problems exhibited by earlier releases. Please include opencv in the standard portage tree.
Comment 19 Michael Richmond 2006-09-22 17:32:06 UTC
Noticed that this bug report doesn't contain a description of opencv for the manifest file. Please find an appropriate description below:

OpenCV is a library aimt at real time computer vision applications. Some example application areas include Human-Computer Interaction (HCI); Object Identification, Segmentation and Recognition; Face Recognition; Gesture Recognition; Motion Tracking; Ego Motion, Motion Understanding; Structure From Motion (SFM); and Mobile Robotics. The library is intended for use, incorporation, and modification by researchers, commercial software developers, government and camera vendors as reflected in the license. (http://www.intel.com/technology/computing/opencv/license.htm)
Comment 20 Michael Richmond 2006-09-22 17:42:53 UTC
I would suggest that opencv be placed in the media-libs category in portage. 
Comment 21 Bolek Tekielski 2006-11-13 04:46:10 UTC
Created attachment 101824 [details]
Ebuild for 2006-11-11 CVS snapshot

New ebuild for cvs snapshot version of OpenCV.
Comment 22 Bolek Tekielski 2006-11-13 04:48:09 UTC
Created attachment 101825 [details, diff]
Patch for cvs ebuild to enable USE flags
Comment 23 Eric Thibodeau 2006-11-17 15:33:36 UTC
Poke-Bump Version 1.0 is out according to the sourceforge web site.
Comment 24 Bolek Tekielski 2006-12-09 11:40:31 UTC
Created attachment 103705 [details]
Ebuild for 1.0.0 version

Ebuild for 1.0.0 version of intel's OpenCV library.
Comment 25 Bolek Tekielski 2006-12-09 11:41:52 UTC
Created attachment 103706 [details, diff]
patch to enable USE flags, and to fix for some default C(XX)FLAGS

patch to enable USE flags, and to fix for some default C(XX)FLAGS that are enabled by default OpenCV's configure.
Comment 26 Jakub Moc (RETIRED) gentoo-dev 2007-01-03 04:15:13 UTC
*** Bug 159826 has been marked as a duplicate of this bug. ***
Comment 27 sebastian 2007-03-06 15:45:17 UTC
Created attachment 112287 [details]
ebuild for the latest OpenCv CVS snapshot

this checks out the most recent version of OpenCv from CVS;
i had problems under linux with GTK in the 1.0.0 version (see http://tech.groups.yahoo.com/group/OpenCV/message/44276);
those problems have been fixed in CVS, but have not been released officially yet;
Comment 28 sebastian 2007-03-07 10:00:24 UTC
Comment on attachment 112287 [details]
ebuild for the latest OpenCv CVS snapshot

one thing i forgot: use this together with the USE flag patch 'Patch for cvs ebuild to enable USE flags' provided by Bolek Tekielski  (http://bugs.gentoo.org/attachment.cgi?id=101825)...
Comment 29 Joel Kammet 2007-04-29 17:46:18 UTC
Created attachment 117653 [details, diff]
revised patch file for ebuild posted 2007/03/06

I attempted to emerge the ebuild posted by sebastian on 2007/03/06.  It failed at applying the 20061111 patch due to minor changes in the configure.in file in the latest cvs snapshot.

The patch works; however the ebuild fails later during compilation of cvsmooth.cpp.  I will attach the build log next...
Comment 30 Joel Kammet 2007-04-29 18:03:25 UTC
Created attachment 117655 [details]
build.log from failed attempt to emerge opencv-cvs.ebuild

I attempted to emerge the latest (as of 2007/04/28) cvs snapshot using sebastian's opencv-cvs.ebuild (which I saved as /usr/local/portage/opencv-1.0.01.ebuild).
To avoid a conflict between quicktime and xine, I ran the emerge as:
USE="-xine" emerge opencv.
I had to modify the 20061111 patch in order to conform to minor changes in the wording of the config.in file.  
The ebuild died again, requesting libtoolize --copy --force so I uncommented line 52 of the ebuild.  That succeeded, but the ebuild died again during compilation of cvsmooth.cpp.  I gave up...
Comment 31 Neil Alldrin 2007-05-08 19:27:48 UTC
Created attachment 118619 [details, diff]
Proposed patch to fix compile errors related to cvcap_ffmpeg.cpp

I was encountering some compile errors with the opencv-1.0.0 ebuild and found a solution on the opencv discussion board, which I made into a patch.
Comment 32 Neil Alldrin 2007-05-08 19:45:54 UTC
Created attachment 118622 [details, diff]
Made a minor change to the previous patch.
Comment 33 Neil Alldrin 2007-05-08 19:48:36 UTC
Created attachment 118623 [details]
Revised version of Bolek's 1.0.0 ebuild to include the cvcap_ffmpeg patch.
Comment 34 whereami 2007-05-23 04:25:11 UTC
sci@g.o: can we put the ebuild in the science overlay, or maybe on Sunrise? 
Comment 35 Sébastien Fabbro (RETIRED) gentoo-dev 2007-05-23 08:30:09 UTC
(In reply to comment #34)
> sci@g.o: can we put the ebuild in the science overlay, or maybe on Sunrise? 

Hi,

I would be glad to do it, and probably in main tree soon. Thanks all for the contributions! Please mark the unused attachments as obsolete. If I assume Neil's last ebuild for 1.0.0 is the correct one, a quick look at it tells me it still needs some work. I have not tested it, but here is a brief list of possible changes:

- HOMEPAGE: one is enough
- syntax in DEPENDS: gtk2 whereas gtk in use flags, spaces
- USE flags: twice ffmpeg, make sure all these use flags are really useful and you don't miss any. According to the install docs, there are at least some language bindings and image libraries.
- patches in src_unpack instead of src_compile
- *flags: are you sure all this filtering is necessary?
- autoconf stuff: put in in src_patch, also use eautoreconf and friends, from autotools eclass
- make sure testing works, e.g. by enabling FEATURES=test while emerging, otherwise, create a src_test (almost mandatory for scientific packages)
- honour the docs/examples with a doc and/or examples flag if any, and do not dodoc COPYING, which will end up in the licenses directory anyway.
- LICENSES: are you sure the intel license is bsd?

Sébastien

Comment 36 whereami 2007-06-06 10:43:49 UTC
Created attachment 121328 [details]
opencv-1.0.0.ebuild with fixes suggested by Sébastien

Obsoletes all other ebuilds (except probably the CVS snapshots).

Depends on patches:
enable-use-flags-1.0.0.patch   http://bugs.gentoo.org/attachment.cgi?id=103706
cvcap_ffmpeg-1.0.0.patch       http://bugs.gentoo.org/attachment.cgi?id=118622
Comment 37 whereami 2007-06-06 12:26:47 UTC
Created attachment 121331 [details]
opencv-1.0.0.ebuild with fixes suggested by Sébastien - v2

Improved a few things.
Comment 38 whereami 2007-06-06 12:29:58 UTC
(In reply to comment #35)
> - HOMEPAGE: one is enough
One was also out of date. Updated to the moved Intel website.
> - syntax in DEPENDS: gtk2 whereas gtk in use flags, spaces
Done. Not sure what you mean by "spaces" though.
> - USE flags: twice ffmpeg, make sure all these use flags are really useful and
> you don't miss any. According to the install docs, there are at least some
> language bindings and image libraries.
Fixed. Added use flags "jpeg jpeg2k zlib png tiff openexr" for images, and "python" for python language binding.
> - patches in src_unpack instead of src_compile
Done.
> - *flags: are you sure all this filtering is necessary?
No idea. I left these in there.
> - autoconf stuff: put in in src_patch, also use eautoreconf and friends, from
> autotools eclass
src_patch? Does that exist? do you mean src_unpack?
eautoreconf is now used.
> - make sure testing works, e.g. by enabling FEATURES=test while emerging,
> otherwise, create a src_test (almost mandatory for scientific packages)
FEATURES=test appears to work.
> - honour the docs/examples with a doc and/or examples flag if any, and do not
> dodoc COPYING, which will end up in the licenses directory anyway.
removed the dodoc COPYING. Not sure how to do the docs/examples use flags.
> - LICENSES: are you sure the intel license is bsd?
Yes. Although there is a notice in configure.in that says something like it becomes GPL when Xine is linked in.
Comment 39 Genus 2007-09-06 20:58:04 UTC
Created attachment 130219 [details, diff]
Patch for opencv-1.0.0 to remove ffmpeg related compile errors.

I've added a patch for the cvcap_ffmpeg.cpp file from opencv-1.0.0 which removes all ffmpeg related compile errors by changing img_convert to sws_scale calls and adding the previous patches. This enables opencv-1.0.0 to compile cleanly on my machine.
Comment 40 Jakub Moc (RETIRED) gentoo-dev 2007-11-27 22:17:58 UTC
*** Bug 200545 has been marked as a duplicate of this bug. ***
Comment 41 Account removed 2008-06-02 13:59:12 UTC
hi!

thanks a lot for your work on the ebuilds!
but could you please cleanup all the attachments 
or tell which fix belongs to which ebuild at least? :)
(i have the sources of a very nice game which requires htis lib, and i'd like
to refer to this bugreport as dependency when uploading the game ebuild)

Comment 42 Nagy Zoltan 2008-06-02 23:16:40 UTC
hi,

when i've installed last time opencv i've downloaded these ebuilds and i modified/recreated a patch - with a tgz, you should be able to install opencv
Comment 43 Nagy Zoltan 2008-06-02 23:19:08 UTC
Created attachment 155303 [details]
snapshot of dev-libs/opencv overlay on my system

contents:
dev-libs/opencv/
dev-libs/opencv/files/
dev-libs/opencv/files/digest-opencv-1.0.0
dev-libs/opencv/files/digest-opencv-9999
dev-libs/opencv/files/enable-use-flags-20061111.patch
dev-libs/opencv/files/enable-use-flags-20061111.patch.orig
dev-libs/opencv/files/enable-use-flags-1.0.0.patch
dev-libs/opencv/files/cvcap_ffmpeg-1.0.0.patch
dev-libs/opencv/files/cvcap_ffmpeg.cpp.patch
dev-libs/opencv/files/cvcap_ffmpeg-img_convert.patch
dev-libs/opencv/Manifest
dev-libs/opencv/opencv-9999.ebuild
dev-libs/opencv/opencv-1.0.0.ebuild
Comment 44 Account removed 2008-06-03 13:39:51 UTC
Thank you very much for your friendly help, Nagy!
This saves me some time :)

Comment 45 Account removed 2008-06-03 15:18:25 UTC
It builds fine, but sth seems to be wrong with ffmpeg:

undefined symbol: sws_getContext        (/usr/lib/libhighgui.so)
undefined symbol: sws_scale     (/usr/lib/libhighgui.so)

this also occurs when building with USE="-ffmpeg"
i have media-video/ffmpeg-0.4.9_p20070616-r2 installed here
Comment 46 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-09 00:46:21 UTC
This ebuild has been added to the science overlay.
Comment 47 Account removed 2008-06-09 13:45:41 UTC
good to know, but this build also gives me a
undefined symbol: sws_getContext        (/usr/lib/libhighgui.so
undefined symbol: sws_scale     (/usr/lib/libhighgui.so)
on ldd -r :(
Comment 48 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-09 14:09:49 UTC
(In reply to comment #47)
> good to know, but this build also gives me a
> undefined symbol: sws_getContext        (/usr/lib/libhighgui.so
> undefined symbol: sws_scale     (/usr/lib/libhighgui.so)
> on ldd -r :(
> 

Is that from the package I added to the science overlay? I can't reproduce here.
Comment 49 Account removed 2008-06-09 14:32:47 UTC
> Is that from the package I added to the science overlay? I can't reproduce
> here.

Yes it is. I'm on ~x86, not on ~amd64 but i doubt that this is the problem.

All useflags but debug and examples are set to yes

here's my emerge --info in case it might help:

emerge --info
Portage 2.1.5.4 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.8_p20080602-r0, 2.6.25-gentoo-r4 i686)
=================================================================
System uname: 2.6.25-gentoo-r4 i686 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+
Timestamp of tree: Mon, 09 Jun 2008 13:36:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.4.4-r13, 2.5.2-r4
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.5
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.25-r4
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/4.0/env /usr/kde/4.0/share/config /usr/kde/4.0/shutdown /usr/share/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LC_ALL="de_DE.UTF-8"
LDFLAGS=""
LINGUAS="de"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/sunrise /usr/portage/local/layman/desktop-effects /usr/portage/local/layman/enlightenment /usr/portage/local/layman/science /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac aalib accessibility acl aften aiglx akamaru alsa amr amrnb apache2 arts audacious audiofile avahi avi be berkdb bidi blender-game bluetooth br brnet buttons bzip2 cairo caps cddacddb cdinstall cdio cdr cg chipcard cjk cli clucene contrib cpudetection cracklib crypt cups curl cxx d daap dbus dc1394 de_tvtoday dedicated deprecated devil directfb dri dtaus dts dv dvb dvd dvdr dvdread emerald enblend enca encode exif fam fax fbcon fbcondecor ffmpeg filepicker firefox flac fontconfig fortran fpx ftp gcj gconf gdbm geldkarte ggi gif gii gimp glitz gmp gnokii gnome gnutls gpac gphoto2 gpm graphviz gs gsm gstreamer gtk gtk2 h323 hal hbci hou htmlhandbook httpd iconv icu id3 id3tag ieee1394 image imagemagick imlib ipod ipv6 isdnlog jack java javascript jbig jikes joystick jpeg jpeg2k kde kdeenablefinal kerberos kqemu krb4 ladspa lame layout-osx-like lcms ldap libcaca libffilibgcrypt libnotify libsamplerate lirc live lua lzma lzo mad madwifi matroska mbrola mdnsresponder-compat midi mikmod mjpeg mmx mmxext mng mod modplug mono mozilla-firefox mp2 mp3 mp4live mpeg mpeg2 mudflap musepack musicbrainz mysql mythtv nas ncurses neXt njb nls nptl nptlonly nsplugin nvidia objc ofx ogg openal openexr opengl openmp optimisememory oss pam pcre pdf perl php player plugins png pnm portaudio posix povray pppd pulseaudio pvr python qt3 qt3support qt4 quicktime radio rar rdesktopreadline real reflection rle rt73usb rtc rtsp samba samplerate scanner sdl sdl-image seamonkey session shared shout sid sift silc skins slang sndfile sou sound source sox speex spl srt sse sse2 sse3 ssl ssse3 startup-notification stream svg svga t38 taglib tcl tcltk tcpd tga themes theora threadsafe thunderbird tiff timidity tk transcode truetype twolame unicode upnp usb v4l v4l2 vala vcd vcdx vidcap videos vidix vlm vnc vorbis wavpack win32codecs wma wmf wxwindows x264 x86 xanim xcb xcompositexext xine xml xorg xosd xpm xv xvid xvmc yv12 zlib zvbi" ALSA_CARDS="via82xx cmipci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" LIRC_DEVICES="hauppauge hauppauge_dvb" USERLAND="GNU" VIDEO_CARDS="nv nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 50 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-12 15:37:02 UTC
(In reply to comment #49)
> > Is that from the package I added to the science overlay? I can't reproduce
> > here.
> 
> Yes it is. I'm on ~x86, not on ~amd64 but i doubt that this is the problem.

Well, as it turns out, it is the problem. pchrist confirmed. Now I have to figure out why this is happening only on one architecture....
Comment 51 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-12 20:30:06 UTC
(In reply to comment #50)
> (In reply to comment #49)
> > > Is that from the package I added to the science overlay? I can't reproduce
> > > here.
> > 
> > Yes it is. I'm on ~x86, not on ~amd64 but i doubt that this is the problem.
> 
> Well, as it turns out, it is the problem. pchrist confirmed. Now I have to
> figure out why this is happening only on one architecture....
> 

I'm pleased to report the issues are fix in r1139 :)

The fix was to add -lswscale to FFMPEGLIBS. Thanks much to pchrist for being my x86 arch monkey :)

I still have no idea why it linked correctly on my amd64 box...
Comment 52 Account removed 2008-06-13 14:58:31 UTC
> 
> I'm pleased to report the issues are fix in r1139 :)


Thanks a lot for fixing this!
I can confirm it builds fine now for ~x86
time's up to work on the ebuild for the game i mentioned above :)
Comment 53 Account removed 2008-06-13 22:18:26 UTC
> I can confirm it builds fine now for ~x86
> time's up to work on the ebuild for the game i mentioned above :)

If someone wants to try:

http://bugs.gentoo.org/show_bug.cgi?id=226447 

Comment 54 Josh Glover (RETIRED) gentoo-dev 2008-06-18 23:25:58 UTC
*** Bug 227975 has been marked as a duplicate of this bug. ***
Comment 55 Josh Glover (RETIRED) gentoo-dev 2008-06-18 23:28:44 UTC
I added an ebuild for OpenCV to the tree as media-libs/opencv without noticing this bug. Sorry. I will take the lead on getting all the patches in this bug applied to my email.

sci@ guys, do you want me to assign this bug to myself?

Also, for an example app that uses OpenCV, check out dev-python/PyQrcodec, which can encode and decode QR codes, which are used to quickly open URIs on Japanese mobile phones.
Comment 56 Sébastien Fabbro (RETIRED) gentoo-dev 2008-06-19 11:13:39 UTC
Hi Josh,

Indeed, Thomas work on the overlay is pretty much complete and avoid automagic.
It will be nice if you could merge it with the one in the portage tree.
Re-assigning.

Thanks.
Comment 57 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-19 11:27:56 UTC
Hi,

 After fixing opencv up I'd like to continue to help out with this package. Could I be a secondary maintainer? It doesn't matter if it's through the science herd or not, but I'd like to keep my eye on this package.. :)

Also Josh, I'll be sending my fixes upstream this week.
Comment 58 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-25 18:41:55 UTC
Fixed in CVS, opencv is in gentoo-x86!! :)