[vlc-devel] Compiling for Windows on Ubuntu

Ray Tiley raytiley at gmail.com
Sun May 4 03:33:08 CEST 2014


On Sat, May 3, 2014 at 5:20 PM, Roiy Shpaner <roiy at cs.umanitoba.ca> wrote:
> 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

Thanks for making that clear. I was wondering why it suddenly broke
even though it used to compile on this VM. Are there any other
enviornment variables I need to set? Configure is working properly now
but I get these errors when doing the actual build.

make[4]: Entering directory `/home/raytiley/vlc_sources/vlc/win32/modules'
  CC       audio_output/mmdevice.lo
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:47:1:
warning: parameter names (without types) in function declaration
[enabled by default]
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:49:48:
error: expected ‘)’ before ‘PCRITICAL_SECTION’
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:50:1:
warning: parameter names (without types) in function declaration
[enabled by default]
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:
In function ‘DllMain’:
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:68:13:
error: ‘SleepConditionVariableCS’ undeclared (first use in this
function)
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:68:13:
note: each undeclared identifier is reported only once for each
function it appears in
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:
At top level:
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:126:5:
error: unknown type name ‘CONDITION_VARIABLE’
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:127:5:
error: unknown type name ‘CONDITION_VARIABLE’
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:
In function ‘DeviceSelect’:
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:800:9:
error: implicit declaration of function ‘SleepConditionVariableCS’
[-Werror=implicit-function-declaration]
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:
In function ‘MMSession’:
../../extras/package/win32/../../../modules/audio_output/mmdevice.c:931:13:
error: implicit declaration of function
‘IAudioSessionControl2_SetDuckingPreference’
[-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors
make[4]: *** [audio_output/mmdevice.lo] Error 1
make[4]: Leaving directory `/home/raytiley/vlc_sources/vlc/win32/modules'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/raytiley/vlc_sources/vlc/win32/modules'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/raytiley/vlc_sources/vlc/win32/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/raytiley/vlc_sources/vlc/win32'
make: *** [all] Error 2


Thanks

-ray

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