[vlc-devel] Compiling for Windows on Ubuntu

Roiy Shpaner roiy at cs.umanitoba.ca
Sun May 4 00:20:00 CEST 2014


Hi Ray,

There is no need for a patch.
As Rémi said, you don't have a properly configured pkg-config. VLC used to set a variable called PKG_CONFIG_LIBDIR for you on configure, but it no longer does so.
This causes the pkg-config to miss your libraries. The way to solve this is to set the PKG_CONFIG_LIBDIR with the correct contrib directory (should be vlcdir/contrib/i686-w64-mingw32(or whatever you used)/lib/pkgconfig).
Do that and run configure again (no need to disable anything).

Roiy

> -----Original Message-----
> From: vlc-devel [mailto:vlc-devel-bounces at videolan.org] On Behalf Of Ray
> Tiley
> Sent: May-03-14 11:21 AM
> To: Mailing list for VLC media player developers
> Subject: Re: [vlc-devel] Compiling for Windows on Ubuntu
> 
> On Sat, May 3, 2014 at 9:56 AM, Rémi Denis-Courmont <remi at remlab.net>
> wrote:
> >
> > Le samedi 3 mai 2014, 16:47:51 Francois Cartegnie a écrit :
> > > Le 03/05/2014 16:23, Rémi Denis-Courmont a écrit :
> > > > Le samedi 3 mai 2014, 09:01:27 Ray Tiley a écrit :
> > > >> checking for VDPAU... yes
> > > >> configure: error: VDPAU requires Xlib (X11).
> > > >
> > > > VDPAU does not exist on Windows. So this can only mean one thing:
> > > > pkg-config is not configured consistently in your build
> > > > environment. I'd guess it's using the native packages.
> > >
> > > My own build environment setup scripts are also now experiencing
> > > that problem (building/enabling modules against host config instead of
> target).
> > > Except debian updates, nothing can have changed as the start system
> > > is the same frozen vm.
> >
> > You need to either install a cross-pkg-config, or set the environment
> > variables correctly; see ./configure --help. On Debian, installing
> > mingw-w64-tools should fix this in the simplest fashion.
> >
> > By (mis)design, the AC_CHECK_TOOL macro will pick native tools when it
> > cannot find cross-compilation ones... It should arguably fail instead,
> > but VLC cannot change autoconf.
> >
> 
> So I got a bit further by adding --disable-vdpau to
> `extras/package/win32/configure.sh` OPTIONS. That let me succesfully
> configure. Now when I run make it exits because it can't find ldbus-1 or -lrt.
> 
> i686-w64-mingw32-windres --include-dir
> ../../extras/package/win32/../../../share --include-dir
> ../../extras/package/win32/../../../extras/package/win32 -i libvlc_win32_rc.rc
> -o libvlc_win32_rc.o
>   CCLD     libvlccore.la
> /usr/bin/i686-w64-mingw32-ld: cannot find -ldbus-1
> /usr/bin/i686-w64-mingw32-ld: cannot find -lrt
> collect2: ld returned 1 exit status
> make[3]: *** [libvlccore.la] Error 1
> make[3]: Leaving directory `/home/raytiley/vlc_sources/vlc/win32/src'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/raytiley/vlc_sources/vlc/win32/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/raytiley/vlc_sources/vlc/win32'
> make: *** [all] Error 2
> raytiley at ubuntu:~/vlc_sources/vlc/win32$
> 
> 
> A) Should --disable-vdpau be included in the default win32 options?
> Should I submit a patch?
> 
> B) What are these missing files, and now can I ether add them to my system,
> or disable whatever compoenent needs them.
> 
> Thanks for the help. I really appreciate it.
> 
> -ray
> 
> > --
> > Rémi Denis-Courmont
> > http://www.remlab.net/
> >
> > _______________________________________________
> > vlc-devel mailing list
> > To unsubscribe or modify your subscription options:
> > https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel




More information about the vlc-devel mailing list