cross-compiling and `orc.m4`

David Schleef ds at entropywave.com
Fri Mar 18 17:53:19 PDT 2011


On Fri, Mar 11, 2011 at 01:38:28AM +0100, Paul Menzel wrote:
> Dear orcc folks,
> 
> 
> using OpenEmbedded [1] trying to cross-compile GStreamer plug-ins (or
> PulseAudio from git master), which includes `orc.m4`, `Makefile` has to be
> adapted as noted in `gst-plugins.inc` [2].
> 
>         # orc.m4 calls pkg-config ----variable=orcc orc-0.4 to get the path to orcc,
>         # resulting in /usr/bin/orcc. Force it to use the staged orcc.
>         do_configure_append() {
>         	for i in $(find ${S} -name "Makefile") ; do
>         		sed -i -e s:${bindir}/orcc:${STAGING_BINDIR_NATIVE}/orcc:g $i
>         	done
>         }

Use 'ORCC=/usr/bin/orcc ./configure' to override ORCC.

This is the correct way of doing things, because the tools involved
(pkg-config and autoconf) don't understand the concept of building
a native tool when cross-compiling.

Alternately, a build system could modify the orc-0.4.pc file when
cross-building orc, so that the orcc variable is set to the tool in
the staging directory.



David




More information about the gstreamer-devel mailing list