Cross-compilation errors

*nix specific usage questions
Roiy
New Cone
New Cone
Posts: 4
Joined: 29 Mar 2014 00:01

Cross-compilation errors

Postby Roiy » 29 Mar 2014 00:37

Hey, I'm compiling for windows 64 bit, on Ubuntu 13.10 64 bit.

I'm getting the exact same errors as found in this closed defect: https://trac.videolan.org/vlc/ticket/11054

Code: Select all

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]
The bug was closed, saying the toolchain is too old, but I can't find the package to update, apt-get says everything is at the newest version:

Code: Select all

ii binutils-mingw-w64-i686 2.23.52.20130620-1ubuntu1+3build1 i386 Cross-binutils for Win32 (x86) using MinGW-w64 ii binutils-mingw-w64-x86-64 2.23.52.20130620-1ubuntu1+3build1 i386 Cross-binutils for Win64 (x64) using MinGW-w64 ii g++-mingw-w64 4.6.3-13ubuntu1+8 all GNU C++ compiler for MinGW-w64 ii g++-mingw-w64-i686 4.6.3-13ubuntu1+8 i386 GNU C++ compiler for MinGW-w64 targeting Win32 ii g++-mingw-w64-x86-64 4.6.3-13ubuntu1+8 i386 GNU C++ compiler for MinGW-w64 targeting Win64 ii gcc-mingw-w64 4.6.3-13ubuntu1+8 all GNU C compiler for MinGW-w64 ii gcc-mingw-w64-base 4.6.3-13ubuntu1+8 i386 GNU Compiler Collection for MinGW-w64 (base package) ii gcc-mingw-w64-i686 4.6.3-13ubuntu1+8 i386 GNU C compiler for MinGW-w64 targeting Win32 ii gcc-mingw-w64-x86-64 4.6.3-13ubuntu1+8 i386 GNU C compiler for MinGW-w64 targeting Win64 ii gcc-mingw32 4.6.3-13ubuntu1+8 all GNU Compiler Collection for MinGW32 (transition package) ii gfortran-mingw-w64 4.6.3-13ubuntu1+8 all GNU Fortran compiler for MinGW-w64 ii gfortran-mingw-w64-i686 4.6.3-13ubuntu1+8 i386 GNU Fortran compiler for MinGW-w64 targeting Win32 ii gfortran-mingw-w64-x86-64 4.6.3-13ubuntu1+8 i386 GNU Fortran compiler for MinGW-w64 targeting Win64 ii gnat-mingw-w64 4.6.3-13ubuntu1+8 all GNU Ada compiler for MinGW-w64 ii gnat-mingw-w64-i686 4.6.3-13ubuntu1+8 i386 GNU Ada compiler for MinGW-w64 targeting Win32 ii gnat-mingw-w64-x86-64 4.6.3-13ubuntu1+8 i386 GNU Ada compiler for MinGW-w64 targeting Win64 ii mingw-w64 3.0~svn5915-1 all Development environment targetting 32- and 64-bit Windows ii mingw-w64-dev 3.0~svn5915-1 all Development files for MinGW-w64 (transitional package) ii mingw-w64-i686-dev 3.0~svn5915-1 all Development files for MinGW-w64 targeting Win32 ii mingw-w64-tools 3.0~svn5915-1 i386 Development tools for 32- and 64-bit Windows ii mingw-w64-x86-64-dev 3.0~svn5915-1 all Development files for MinGW-w64 targeting Win64
Is there any package i am not looking for?
https://wiki.videolan.org/Win32Compile/ only mentions "gcc-mingw-w64-i686 g++-mingw-w64-i686 mingw-w64-tools"

Thanks,
Roiy

Rémi Denis-Courmont
Developer
Developer
Posts: 15265
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Cross-compilation errors

Postby Rémi Denis-Courmont » 29 Mar 2014 07:59

You may need to update your distrbution. And this has nothing to do with Linux VLC.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded


Return to “VLC media player for Linux and friends Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests