[Bug 776399] New: configure fails to detect QPA during cross compilation
GStreamer (GNOME Bugzilla)
bugzilla at gnome.org
Thu Dec 22 16:53:24 UTC 2016
https://bugzilla.gnome.org/show_bug.cgi?id=776399
Bug ID: 776399
Summary: configure fails to detect QPA during cross compilation
Classification: Platform
Product: GStreamer
Version: git master
OS: Linux
Status: NEW
Severity: normal
Priority: Normal
Component: gst-plugins-bad
Assignee: gstreamer-bugs at lists.freedesktop.org
Reporter: stepan.salenikovich at gmail.com
QA Contact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
Created attachment 342393
--> https://bugzilla.gnome.org/attachment.cgi?id=342393&action=edit
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
--
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
More information about the gstreamer-bugs
mailing list