[Bug 663600] New: [subparse] - not get cross compiled
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Mon Nov 7 23:32:42 PST 2011
https://bugzilla.gnome.org/show_bug.cgi?id=663600
GStreamer | gst-plugins-base | 0.10.x
Summary: [subparse] - not get cross compiled
Classification: Platform
Product: GStreamer
Version: 0.10.x
OS/Version: Windows
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: gst-plugins-base
AssignedTo: gstreamer-bugs at lists.freedesktop.org
ReportedBy: bcxa.sz at gmail.com
QAContact: gstreamer-bugs at lists.freedesktop.org
GNOME version: ---
The current command line to configure the gst-plugins-base-0.10.32 has the
parameter --prefix=/usr. It is correct if from the target point of view.
But when configure gst-plugins-base-0.10.32,
in gst-plugins-base-0.10.32/configure
==========================================================================
GST_CONFIGPATH=`$PKG_CONFIG --variable=includedir
gstreamer-0.10`"/gst/gstconfig.h"
It will try to find the includedir with pk-config
[root at fedora14 gst-plugins-base-0.10.32]# cat
/opt/STM/STLinux-2.4/devkit/sh4/target/usr/lib/pkgconfig/gstreamer-0.10.pc
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include/gstreamer-0.10
toolsdir=${exec_prefix}/bin
pluginsdir=${libdir}/gstreamer-0.10
datarootdir=${prefix}/share
datadir=${datarootdir}
girdir=${datadir}/gir-1.0
typelibdir=${libdir}/girepository-1.0
Name: GStreamer
Description: Streaming media framework
Requires: glib-2.0, gobject-2.0, gmodule-no-export-2.0, gthread-2.0, libxml-2.0
Version: 0.10.34
Libs: -L${libdir} -lgstreamer-0.10
Cflags: -I${includedir}
==============================================================================
But unfortunately, it will try to find the header file at
/usr/include/gstreamer-0.10/gst/gstconfig.h. And it should find this header
file at:
===============================================================================
[root at fedora14 gst-plugins-base-0.10.32]# ls
/opt/STM/STLinux-2.4/devkit/sh4/target/usr/include/gstreamer-0.10/gst/gstconfig.h
/opt/STM/STLinux-2.4/devkit/sh4/target/usr/include/gstreamer-0.10/gst/gstconfig.h
===============================================================================
So I think this one should be gstreamer cross compile issue. And gstreamer
should consider the environment variable which indicates the target file system
location: (in my example)
export PKG_CONFIG_SYSROOT_DIR=/opt/STM/STLinux-2.4/devkit/sh4/target/
And the configure.ac should be changed as below: (patch attaced also)
==================================================================
GST_CONFIGPATH=`$PKG_CONFIG --variable=includedir
gstreamer-0.10`"/gst/gstconfig.h"
+GST_CONFIGPATH=$PKG_CONFIG_SYSROOT_DIR$GST_CONFIGPATH
--
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- 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