[Bug 480772] Re: OpenCV 2 incompatibilities

Clovis Peruchi Scotti roboscotti at gmail.com
Tue May 25 11:32:38 BST 2010


Hi Fabrice, thanks for the fast reply.
As you notest, I forgot to change some things.

I'm uploading a newer .debdiff (which won't bump standards-version and
adds the dependencies).

About example 04, it will only work if you have a installed webcam on /dev/video0 and it indeed needs the other dependencies.
Note that in the missing the camera case, the error is a runtime error, not a compile time one...

I just built the package and tested here and (NOW) everything seems
better.

** Patch added: "(new) Minimal debdiff to SRU harpia package in lucid. Addresses issues from Fabrice's post."
   http://launchpadlibrarian.net/49069871/harpia_1.0-0ubuntu1.1.debdiff

** Changed in: harpia (Ubuntu Lucid)
       Status: Incomplete => Fix Released

-- 
OpenCV 2 incompatibilities
https://bugs.launchpad.net/bugs/480772
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is a direct subscriber.

Status in Harpia Project: Fix Released
Status in “harpia” package in Ubuntu: Fix Released
Status in “harpia” source package in Lucid: Fix Released

Bug description:
In Lucid Lynx, Ubuntu uses Opencv2.

OpenCV 2 changes the prototype of some functions (using for example default parameters):

/* save image to file */
CVAPI(int) cvSaveImage( const char* filename, const CvArr* image,
                        const int* params CV_DEFAULT(0) );

Since this third parameter is not accounted for in Harpia, the user will get errors when compiling/running any programs (even the samples).

TEST CASE: Open Harpia, go to "Help>Examples>01-Hello-World.hrp", press F9 (run). This will exit with a error message/red light
(the compile error msg can be viewed clicking twice on the "Show Image" block). This way the application is totally unusable.
Expected behavior would be to have a green light on the status message and seeing the image (lenna.png) when clicking twice on
the "Show Image" block.
"Help>Examples>04-Face-Detection-And-Cropping.hrp" should also work in machines with supported & configured webcam, this is also a test case for the added dependencies.






More information about the Ubuntu-sponsors mailing list