[vlc-devel] Compiling for Windows on Ubuntu

Ray Tiley raytiley at gmail.com
Sat May 3 18:21:14 CEST 2014

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.


> --
> 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

More information about the vlc-devel mailing list