Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 313649 - media-libs/opencv-2.1.0 version bump
Summary: media-libs/opencv-2.1.0 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement with 3 votes (vote)
Assignee: Thomas Anderson (tanderson) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-07 09:32 UTC by Jan K
Modified: 2010-07-27 19:30 UTC (History)
2 users (show)

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


Attachments
Opencv 2.1.0 ebuild (opencv-2.1.0.ebuild,2.45 KB, text/plain)
2010-05-19 18:06 UTC, Christophe Paccolat
Details
bundled lapack patch (opencv-2.1.0-lapack.patch,22.74 KB, patch)
2010-05-19 18:08 UTC, Christophe Paccolat
Details | Diff
ported libpng14 patch (opencv-2.1.0-libpng14.patch,505 bytes, patch)
2010-05-19 18:08 UTC, Christophe Paccolat
Details | Diff
ported multilib patch (opencv-2.1.0-multilib.patch,4.54 KB, patch)
2010-05-19 18:09 UTC, Christophe Paccolat
Details | Diff
opencv 2.1.0 ebuild (opencv-2.1.0.ebuild,2.62 KB, text/plain)
2010-06-20 13:51 UTC, Gijs Molenaar
Details
opencv osx prefix patch (opencv-2.1.0-osx.patch,1.40 KB, patch)
2010-06-20 13:54 UTC, Gijs Molenaar
Details | Diff
Merge of ebuilds, this one should be the most complete (opencv-2.1.0.ebuild,2.87 KB, text/plain)
2010-06-20 14:30 UTC, Gijs Molenaar
Details
updated ebuild (opencv-2.1.0.ebuild,2.91 KB, text/plain)
2010-06-20 18:28 UTC, Christophe Paccolat
Details
mmap -> v4l2_mmap patch (opencv-2.1.0-mmap.patch,597 bytes, patch)
2010-07-12 18:46 UTC, Uwe Sauter
Details | Diff
updated ebuild to include mmap patch (opencv-2.1.0.ebuild,2.95 KB, text/plain)
2010-07-12 18:48 UTC, Uwe Sauter
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jan K 2010-04-07 09:32:21 UTC
On 2010-04-06 (e... yesterday?) new version of OpenCV has been released.

Trivial name change and commenting the old patches works for me.

Warning, there are some API changes in the new version!

Reproducible: Always
Comment 1 Christophe Paccolat 2010-05-19 18:06:49 UTC
Created attachment 232125 [details]
Opencv 2.1.0 ebuild

Here's a tentative ebuild for the latest version of opencv. I've also added the patch for the bundled Lapack (see http://bugs.gentoo.org/show_bug.cgi?id=310969). The previous (multilib, libpng14) have also been ported. Further patching might be needed to clean up all CMake warnings (multilib related).
Comment 2 Christophe Paccolat 2010-05-19 18:08:06 UTC
Created attachment 232127 [details, diff]
bundled lapack patch

see : https://bugs.gentoo.org/show_bug.cgi?id=310969
Comment 3 Christophe Paccolat 2010-05-19 18:08:54 UTC
Created attachment 232129 [details, diff]
ported libpng14 patch

Ported from v2.1-r1
Comment 4 Christophe Paccolat 2010-05-19 18:09:28 UTC
Created attachment 232131 [details, diff]
ported multilib patch

Ported from v2.1-r1
Comment 5 Gijs Molenaar 2010-06-20 13:51:43 UTC
Created attachment 236069 [details]
opencv 2.1.0 ebuild

This is my ebuild for OpenCV. It isn't complete, but it should work on a 64 bit prefix. Some cmake flags changed, openmp was removed, tbb support was added, numpy support was added. I think this can be merged with the other ebuild.
Comment 6 Gijs Molenaar 2010-06-20 13:54:47 UTC
Created attachment 236071 [details, diff]
opencv osx prefix patch

OpenCV doesn't compile correctly on OSX, it links to QuickTime and QTkit at the same time when compiling 64 bit should be QTKit only.
Comment 7 Gijs Molenaar 2010-06-20 14:30:26 UTC
Created attachment 236073 [details]
Merge of ebuilds, this one should be the most complete

did an attempt to merge the ebuilds
Comment 8 Christophe Paccolat 2010-06-20 18:28:50 UTC
Created attachment 236091 [details]
updated ebuild

Neat, works for me on x86-64-linux, added missing $(cmake-utils_use_build bundled-lapack LAPACK)...
Also you had the line for activating Numpy in the cmakefile commented, uncommented it. Hope it wasn't on purpose (?) ...
Comment 9 Gijs Molenaar 2010-06-22 19:37:28 UTC
See comment (In reply to comment #8)
> Also you had the line for activating Numpy in the cmakefile commented,
> uncommented it. Hope it wasn't on purpose (?) ...


See comment above that, that flag somehow doens't have any effect. If numpy is installed opencv just assumes you want to install it. Maybe that should be patched, but I'm happy with the current situation. Otherwise it could be reported upstream so this is fixed for 2.2.



Comment 10 Christoph Schaefer 2010-07-06 21:29:01 UTC
Shouldn't all these ebuilds download and install version 2.1.0 of OpenCV?
Those ebuilds here look like they install version 2.0.0-r1?

I tried to rewrite the last ebuild for version 2.1.0, but without the 2 patches.
I'm not sure, if it really works, because some stuff looks broken, but could be my code either.

Comment 11 Gijs Molenaar 2010-07-07 08:05:19 UTC
(In reply to comment #10)
> Shouldn't all these ebuilds download and install version 2.1.0 of OpenCV?
> Those ebuilds here look like they install version 2.0.0-r1?

no they don't?
> 
> I tried to rewrite the last ebuild for version 2.1.0, but without the 2
> patches.

So why did you do it? These ebuild are working, at least on the systems I tested.

> I'm not sure, if it really works, because some stuff looks broken, but could be
> my code either.



Comment 12 Christoph Schaefer 2010-07-07 09:17:00 UTC
(In reply to comment #11)
> (In reply to comment #10)
> > Shouldn't all these ebuilds download and install version 2.1.0 of OpenCV?
> > Those ebuilds here look like they install version 2.0.0-r1?
> 
> no they don't?
Ok, got it, I was looking inside the ebuild-file and missunderstood one line.
> > 
> > I tried to rewrite the last ebuild for version 2.1.0, but without the 2
> > patches.
> 
> So why did you do it? These ebuild are working, at least on the systems I
> tested.
> 
I thought, they weren't working. They are, like you said. Will they be in portage?
> > I'm not sure, if it really works, because some stuff looks broken, but could be
> > my code either.
> 
I think your ebuilds are working, and version 2.1.0 is working better then 2.0.0.
Comment 13 Uwe Sauter 2010-07-12 18:42:48 UTC
There has been a bug when using v4l devices with opencv (https://code.ros.org/trac/opencv/ticket/141). I modified Christophe Paccolat's ebuild and added the patch fixing the mmap issue.
Comment 14 Uwe Sauter 2010-07-12 18:46:12 UTC
Created attachment 238489 [details, diff]
mmap -> v4l2_mmap patch

see https://code.ros.org/trac/opencv/ticket/141
Comment 15 Uwe Sauter 2010-07-12 18:48:03 UTC
Created attachment 238491 [details]
updated ebuild to include mmap patch
Comment 16 Samuli Suominen (RETIRED) gentoo-dev 2010-07-27 19:30:03 UTC
2.1.0 in portage, with mmap patch
lapack is bug 310969 and osx is bug 298121, didn't touch them in this round