FS#32342 - [opencv] undefined symbols

Attached to Project: Arch Linux
Opened by schlmm (schlmm) - Wednesday, 31 October 2012, 22:18 GMT
Last edited by Ray Rashif (schivmeister) - Friday, 09 November 2012, 19:59 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Ray Rashif (schivmeister)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
somehow the opencv library is not exporting its symbols right.
i dont know why this is happening. didnt find something useful to solve these problems.
maybe it is something about the headers of opencv?

using latest opencv from the repo (2.4.2-5)

Steps to reproduce:
melt <yourfilehere> -filter frei0r.facebl0r
or:
melt <yourfilehere> -filter frei0r.facedetect
both output: melt: symbol lookup error: /usr/lib/frei0r-1/facedetect.so: undefined symbol: cvSetNumThreads

or:
gst-launch-0.10 videotestsrc ! ffmpegcolorspace ! frei0r-filter-opencvfacedetect ! ffmpegcolorspace ! autovideosink


also while compiling newest (git version) of gst-plugins-bad, where opencv <= 2.4.2 is enabled, im getting:
make check-TESTS
make[3]: Entering directory `/home/schlmm/stuff/abs/gst-plugins-bad/src/gst-plugins-bad/tests/check'

(gst-plugin-scanner:27000): GStreamer-WARNING **: Failed to load plugin '../../ext/opencv/.libs/libgstopencv.so': ../../ext/opencv/.libs/libgstopencv.so: undefined symbol: cvReleaseImageHeader
This task depends upon

Closed by  Ray Rashif (schivmeister)
Friday, 09 November 2012, 19:59 GMT
Reason for closing:  Fixed
Additional comments about closing:  opencv 2.4.3-2, frei0r-plugins 1.3-6
Comment by Ray Rashif (schivmeister) - Saturday, 03 November 2012, 06:36 GMT
  • Field changed: Status (Unconfirmed → Assigned)
  • Field changed: Severity (Low → Medium)
Able to reproduce on i686, very likely a frei0r issue. Will take a look, thanks for reporting.
Comment by schlmm (schlmm) - Monday, 05 November 2012, 13:58 GMT
https://bugs.archlinux.org/task/32342 fixes this, after recompiling frei0r-plugins.
also gst-plugins-bad (1.0.2 with opencv >= 2.4.3 enabled in configure.ac) compiles just fine and the opencv elements are all available and working.
Thx!
Comment by Ray Rashif (schivmeister) - Monday, 05 November 2012, 14:55 GMT
That's great, did you mean to refer to another task? (you linked to this task itself)
Comment by schlmm (schlmm) - Monday, 05 November 2012, 15:16 GMT
oh sure. i meant this one: https://bugs.archlinux.org/task/32430 :-)
still getting an error while using the gst-launch cmd. didnt recompiled gst-plugins-bad-0.10 yet, but also happens in new compiled gst-plugins-bad (1.0.2)
Comment by Ray Rashif (schivmeister) - Monday, 05 November 2012, 16:38 GMT
Ahh, I was hoping that was it. It's either the pkg-config file or the new release itself (they might've fixed something). There's still a path issue (notice the error loading classifiers) which we need to fix though.
Comment by schlmm (schlmm) - Monday, 05 November 2012, 18:40 GMT
jap. if the cascade files are in /usr/share/opencv its good
dont know if its enough to add
mv OpenCV opencv
after:
cd "$pkgdir/usr/share"
in the PKGBUILD
Comment by Ray Rashif (schivmeister) - Monday, 05 November 2012, 19:15 GMT
Yeah that would work as a workaround, until the following gets some consensus:

http://code.opencv.org/issues/2512

I will push a patch converting them all to lowercase.

Anyway, I believe the gst issue is something different. Will have to look at that later, and I'll keep this open as long as that's not fixed.
Comment by Ray Rashif (schivmeister) - Friday, 09 November 2012, 19:58 GMT
Fixed the paths and rebuilt frei0r-plugins, so I guess we'll close it here. If the gstreamer issue turns out to be a show stopper do file a separate bug report. Thanks for your support!

Loading...