How to do gst-plugin cross-compilation for Windows (dll)?
Tim Müller
tim at centricular.com
Fri Apr 29 14:22:56 UTC 2016
On Fri, 2016-04-29 at 06:33 -0700, AurelienV wrote:
Hi,
> My bad! I did some mistakes with autogen.sh and configure tools. This
> works
> better:
>
> ./autogen.sh --build=x86_64-linux-gnu --host=i686-w64-mingw32
> --target=i686-w64-mingw32 --enable-shared --disable-static
> ./configure --build=x86_64-linux-gnu --host=i686-w64-mingw32
> --target=i686-w64-mingw32 --enable-shared --disable-static (I'm not
> sure if
> it's needed to repeat these parameters ?)
>
> I also did some modifications in gst-template/gst-plugin/configure.ac
> >
> > Changing LT_INIT to LT_INIT([win32-dll])
> > Adding "-shared -no-undefined" at the end of GST_PLUGIN_LDFLAGS
> But, I have new linker mistakes ...
>
> *** Warning: linker path does not have real file for library
> -lgstcontroller-1.0.
> *** I have the capability to make that library automatically link in
> when
> *** you link to this library. But I can only do this if you have a
> *** shared version of the library, which you do not appear to have
> *** because I did check the linker path looking for a file starting
> *** with libgstcontroller-1.0 but no candidates were found. (...for
> file
> magic test)
>
> [...] *And the same for gstaudio-1.0, gstbase-1.0, gstreamer-1.0,
> gobject-2.0 and glib-2.0*
>
> *** Warning: libtool could not satisfy all declared inter-library
> *** dependencies of module libgstplugin. Therefore, libtool will
> create
> *** a static module, that should work as long as the dlopening
> *** application is linked with the -dlopen flag.
>
> So, I only have .a and .la libraries.
Are you using our cerbero tool for cross-compilation? If not, you
should use it!
$ git clone https://anongit.freedesktop.org/git/gstreamer/cerbero.git
$ cd cerbero
$ ./cerbero-uninstalled bootstrap
$ ./cerbero-uninstalled -c config/cross-win32.cbc bootstrap
$ ./cerbero-uninstalled -c config/cross-win32.cbc build gstreamer-1.0
gst-plugins-base-1.0 gst-plugins-good-1.0 gst-plugins-ugly-1.0 gst-
plugins-bad-1.0 gst-libav-1.0
or similar.
Cheers
-Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list