[gst-devel] compile include path change?
dtaylor at startrac.com
Wed Jun 24 02:47:13 CEST 2009
> -----Original Message-----
> From: Tim-Philipp Müller [mailto:t.i.m at zen.co.uk]
> Sent: Tuesday, June 23, 2009 1:22 AM
> To: gstreamer-devel at lists.sourceforge.net
> Subject: Re: [gst-devel] compile include path change?
> On Mon, 2009-06-22 at 20:17 -0700, Dan Taylor wrote:
> > I am trying to use the newest version of gstreamer to build in a
> > working directory. There is no problem with gstreamer-0.10.23.
> > However, when I try to build gst-plugins-base-0.10.3,
> 0.10.23 surely? :)
Yes, thank you. I'm just waiting for ffmpeg to baseline an embedded build.
> > using the headers (and pkgconfig) from the just-built version of
> > gstreamer, I cannot get the include path correct. There is no
> > specific configure option that I can find, and I've tried the assert
> > the correct path on the command line with GST_CFLAGS and
> > GST_OPTION_CFLAGS, but that didn't help.
> You will probably have to set PKG_CONFIG_PATH (to the pkgconfig dir
> where the .pc files are) and LD_LIBRARY_PATH (the the dir where the .so
Putting the PKG_CONFIG_PATH assignment before the configure helps configure find the pkgconfig files, but the data in the .pc files is still wrong, in that it has /usr as the prefix, rather than /work/usr. I finally brute-forced it by adding a sed pass to fix the .pc files.
The current, apparently working, command lines are:
PKG_CONFIG_PATH=/work/usr/lib/pkgconfig ./configure --prefix=/usr
make prefix=/work/usr install
for F in /work/usr/lib/pkgconfig/*pc; \
do sed -I -e 's/prefix=\/usr/s#/usr#/work/usr#' $F; done
These leave the programs and libraries expecting to load and run from /usr, as they will in the embedded system, but store them in /work/usr so they can be collected for the embedded system's disk image.
I do get some warnings from libtool, but the end result works.
Any idea how to get the values I need into the .pc files WITHOUT the sed?
> You might be interested in:
Didn't know it existed, but it doesn't show any way to fix the .pc files, either.
> Are you an open source citizen? Join us for the Open Source Bridge
> Portland, OR, June 17-19. Two days of sessions, one day of unconference:
> Need another reason to go? 24-hour hacker lounge. Register today!
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
More information about the gstreamer-devel