GNOME Bugzilla – Bug 776399
configure fails to detect QPA during cross compilation
Last modified: 2016-12-23 10:14:19 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
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