After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 753651 - opencv: Fedora doesn't find haar cascade files
opencv: Fedora doesn't find haar cascade files
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
unspecified
Other Linux
: Normal normal
: 1.5.90
Assigned To: Luis de Bethencourt
GStreamer Maintainers
: 753849 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2015-08-15 13:39 UTC by Luis de Bethencourt
Modified: 2015-08-20 14:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Check which path to use in configure.ac (2.41 KB, patch)
2015-08-17 16:50 UTC, Luis de Bethencourt
committed Details | Review
Use test -d instead of AC_CHECK_fiLE (1.12 KB, patch)
2015-08-20 11:51 UTC, Luis de Bethencourt
rejected Details | Review
updated opencv data path check patch (1.78 KB, patch)
2015-08-20 12:21 UTC, Carlos Rafael Giani
committed Details | Review

Description Luis de Bethencourt 2015-08-15 13:39:46 UTC
In Fedora the haar cascade files are in /usr/share/OpenCV/, meanwhile debian/arch/probably-others have them in /usr/share/opencv.

Fix the HAAR_CASCADES_DIR definition to point to the right location in all distributions/platforms.
Comment 1 Luis de Bethencourt 2015-08-15 13:44:12 UTC
Looks like it is hardcoded since 2012:
http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=d4509a2fda5bff72201e393f774ebfed8f0137cd

We need to fix the build system to set this definition based on the pkg-config information.
Comment 2 Luis de Bethencourt 2015-08-17 16:50:46 UTC
Created attachment 309400 [details] [review]
Check which path to use in configure.ac
Comment 3 Nicolas Dufresne (ndufresne) 2015-08-17 16:55:34 UTC
Review of attachment 309400 [details] [review]:

That's neat and clean, thanks !
Comment 4 Nicolas Dufresne (ndufresne) 2015-08-17 16:55:52 UTC
(I also tested it of course ;-P)
Comment 5 Luis de Bethencourt 2015-08-17 17:07:14 UTC
Review of attachment 309400 [details] [review]:

commit 07ee52db5dbddf35ab22199a1960e9f5cc8aae73
Author: Luis de Bethencourt <luis@debethencourt.com>
Date:   Mon Aug 17 17:38:15 2015 +0100

    opencv: support alternative path convention

    Some distributions store OpenCV files in /usr/share/opencv and some others
    (and default when building from source) install them in
    /usr/share/OpenCV. Support both to find cascade files.

    https://bugzilla.gnome.org/show_bug.cgi?id=753651
Comment 6 Luis de Bethencourt 2015-08-17 17:07:45 UTC
Thanks for reviewing and testing Nicolas :)
Comment 7 Luis de Bethencourt 2015-08-20 11:51:39 UTC
Created attachment 309706 [details] [review]
Use test -d instead of AC_CHECK_fiLE

AC_CHECK_FILE breaks cross compilation. This is bad.
Comment 8 Carlos Rafael Giani 2015-08-20 12:21:37 UTC
Created attachment 309711 [details] [review]
updated opencv data path check patch

The test -d replacement works. Also fixing the OpenCV path check by using PKG_CONFIG_SYSROOT_DIR.
Comment 9 Luis de Bethencourt 2015-08-20 13:11:52 UTC
Review of attachment 309706 [details] [review]:

Carlos' patch is better.
Comment 10 Luis de Bethencourt 2015-08-20 13:15:18 UTC
Review of attachment 309711 [details] [review]:

Works well.
Comment 11 Luis de Bethencourt 2015-08-20 13:20:17 UTC
Review of attachment 309711 [details] [review]:

Carlos,

We don't use Signed-off tags in GStreamer, and we usually add the URL of the bug related to the commit if there was one.

Thanks! :)

commit 0cc2156572755626a170ad99345647faf4d43a84
Author: Carlos Rafael Giani <dv@pseudoterminal.org>
Date:   Thu Aug 20 14:09:37 2015 +0200

    opencv: Fix OpenCV data path check to work with cross compilation

    https://bugzilla.gnome.org/show_bug.cgi?id=753651
Comment 12 Carlos Rafael Giani 2015-08-20 13:22:23 UTC
Right, I forgot about that, sorry. I am just so used to the signed-off stuff by now, it almost happens automatically :)
Comment 13 Carlos Rafael Giani 2015-08-20 13:23:36 UTC
*** Bug 753849 has been marked as a duplicate of this bug. ***