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 776399 - configure fails to detect QPA during cross compilation
configure fails to detect QPA during cross compilation
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins-bad
git master
Other Linux
: Normal normal
: 1.11.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2016-12-22 16:53 UTC by Stepan Salenikovich
Modified: 2016-12-23 10:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (1.08 KB, patch)
2016-12-22 16:53 UTC, Stepan Salenikovich
committed Details | Review

Description Stepan Salenikovich 2016-12-22 16:53:24 UTC
Created attachment 342393 [details] [review]
patch

When using yocto to cross compile gst-plugins-bad, this check fails:

QPA_INCLUDE_PATH=`$PKG_CONFIG --variable=includedir Qt5Core`/QtGui/${QT_VERSION}/QtGui
AS_IF([test -f "$QPA_INCLUDE_PATH/qpa/qplatformnativeinterface.h"], [...

This is because QPA_INCLUDE_PATH is "/usr/include/qt5/QtGui/5.7.0/QtGui", but it needs to be prefixed by $PKG_CONFIG_SYSROOT_DIR so that qplatformnativeinterface.h is detected during the cross compile.

This is the solution for the opencv check earlier:

dnl the OpenCV prefix is used at runtime for some object properties, and also
  dnl used here to detect which directory is the correct one. For the second
  dnl case, make sure the right sysroot is used, ensuring correct behavior
  dnl during cross compilation.
if test -d "$PKG_CONFIG_SYSROOT_DIR/$OPENCV_PREFIX/share/opencv/"; then

I've attached the patch which uses the same approach
Comment 1 Sebastian Dröge (slomo) 2016-12-23 10:13:57 UTC
commit db7f8ec3b9556a2bbb23a37a759b669e7c53eac6
Author: Stepan Salenikovich <stepan.salenikovich@savoirfairelinux.com>
Date:   Thu Dec 22 11:48:05 2016 -0500

    configure: improve QPA check for cross compilation
    
    Prefix the $QPA_INCLUDE_PATH with $PKG_CONFIG_SYSROOT_DIR just
    like when checking for opencv dir.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=776399