Page 1 of 1

Compile VLC 2.2.0 on Windows MSYS

Posted: 28 Oct 2013 11:36
by Khain
Hello,
I have a trouble when compiling VLC 2.2.0 on Windows (With Msys ... i follow the tutorial https://wiki.videolan.org/Win32CompileMSYSNew)
When I compile using the command "make package- win32 -base"
after a while I get the following error :

Code: Select all

. . /.. / / include / vlc_fixups.h : . . 187:38 : error : expected ') ' before ' struct ' . . /.. / / include / vlc_fixups.h : . . 187:38 : error : expected ') ' before ' struct ' . . /.. / / include / vlc_fixups.h : . . 187:38 : error : expected initializer before ' struct ' . . /.. / / include / vlc_fixups.h : . . 187:38 : error : expected unqualified -id before ' struct ' localtime_r structure tm * (const time_t * , struct tm *) ; . . /.. / / include / vlc_fixups.h : . . 191:41 : error : expected ') ' before ' struct ' . . /.. / / include / vlc_fixups.h : . . 191:41 : error : expected ') ' before ' struct ' . . /.. / / include / vlc_fixups.h : . . 187:38 : error : expected unqualified -id before ' struct ' make [ 7] : *** [ commands/libskins2_plugin_la-cmd_dvd.lo ] Error 1 .
I try to solve my problrem with this page https://wiki.videolan.org/Win32CompileM ... leShooting
but nothing works ...

Have you any idea?

Thanks.

Re: Compile VLC 2.2.0 on Windows MSYS

Posted: 05 Nov 2013 20:59
by Jean-Baptiste Kempf
What mingw are you using?

Re: Compile VLC 2.2.0 on Windows MSYS

Posted: 06 Nov 2013 05:04
by wytsylar
I have the same trouble when i compile VLC 2.0.8
../../../include/vlc_fixups.h:168:38: error: expected unqualified-id before 'str
uct'
struct tm *gmtime_r (const time_t *, struct tm *);
^
../../../include/vlc_fixups.h:168:38: error: expected ')' before 'struct'
../../../include/vlc_fixups.h:168:38: error: expected ')' before 'struct'
../../../include/vlc_fixups.h:168:38: error: expected initializer before 'struct
'
../../../include/vlc_fixups.h:172:41: error: expected unqualified-id before 'str
uct'
struct tm *localtime_r (const time_t *, struct tm *);
^
../../../include/vlc_fixups.h:172:41: error: expected ')' before 'struct'
../../../include/vlc_fixups.h:172:41: error: expected ')' before 'struct'
../../../include/vlc_fixups.h:172:41: error: expected initializer before 'struct
'
make[6]: *** [libskins2_plugin_la-async_queue.lo] Error 1
make[6]: Leaving directory `/home/Administrator/vlc-2.0.8/modules/gui/skins2'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/Administrator/vlc-2.0.8/modules/gui/skins2'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/Administrator/vlc-2.0.8/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/Administrator/vlc-2.0.8/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/Administrator/vlc-2.0.8/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/Administrator/vlc-2.0.8'
make: *** [all] Error 2

addition---mingw version is 4.8.1

Re: Compile VLC 2.2.0 on Windows MSYS

Posted: 08 Nov 2013 09:47
by Khain
Hello,

I install TDM-GCC 4.8.1-tdm-2 (With MingwRunime 3.20-2 / mingw32-make 3.82.90 ... )

Re: Compile VLC 2.2.0 on Windows MSYS

Posted: 03 Feb 2014 04:24
by erkable
Was there any resolution to this problem? I am seeing the same thing.

Re: Compile VLC 2.2.0 on Windows MSYS

Posted: 10 Jan 2017 07:54
by mkmanoj009
hello
i have compiled vlc-2.2.4 32bit using mingw32(i686-5.4.0-release-win32-sjlj-rt_v5-rev0) and msys32 successfully for windows.
when i run vlc.exe on another windows system it could not. but using TDM-GCC this issue is also resolved (thanks Khain for this solution).

please help for :

** my question is to how get ride of TDM-gcc dependency.
** is there any other method which include TDM-gcc libraries during compilation phase, so that during run time on other system that will run properly.

Thanks in advance please help me.

Re: Compile VLC 2.2.0 on Windows MSYS

Posted: 20 Jan 2017 00:27
by Jean-Baptiste Kempf
What happens on the other computer?