Undefined reference to 'cvLoadImage' when running the hello World example
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
harpia (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Oneiric |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi,
when running the HelloWorld sample in Oneiric, it fails with the following errors:
...
/tmp/cc6g8gjv.o: In function `main':
harpiaBETMP0132
harpiaBETMP0132
harpiaBETMP0132
harpiaBETMP0132
harpiaBETMP0132
harpiaBETMP0132
harpiaBETMP0132
/tmp/cc6g8gjv.o: In function `__static_
harpiaBETMP0132
harpiaBETMP0132
collect2: ld devolvió el estado de salida 1
[Impact]
No project can be compiled with Harpia, no even the examples, as they all fails with the previous link errors
[Development Fix]
The same patch as the one proposed for Oneiric has been uploaded to Precise as ubuntu2 version.
[Stable Fix]
Retrofit the patch that change the order of the parameters in the compilation line, to put the libraries at the end of the command line, after the object to generate.
[Test Case]
1) Install and run harpia
2) go to help, examples, and choose Hello World
3) click on the Run [F9] button
4) When the button is available again, doble click on the Image box, in the graph
5) With the broken version, you see the errors mentionned previously. With the fixed one, you see the image (a girl with a hat)
[Regression Potential]
Harpia is not usable at all in the actual status.
description: | updated |
description: | updated |
tags: |
added: verification-done removed: verification-needed |
This bug was fixed in the package harpia - 1.1-0ubuntu2
---------------
harpia (1.1-0ubuntu2) precise; urgency=low
* as-needed.patch: move libraries at the end of the compilation command line
to be able to compile the examples (LP: #903393). This fixes a compilation
error because of undefined references to cv functions
-- Fabrice Coutadeur <email address hidden> Tue, 13 Dec 2011 06:57:25 +0100