Compilation issues on Windows / msys

This forum is about all development around libVLC.
ZeeByeZon
New Cone
New Cone
Posts: 6
Joined: 09 Jan 2014 18:03

Compilation issues on Windows / msys

Postby ZeeByeZon » 16 Jan 2014 18:04

Hi
I need to buils VLC natively on windows 7 (professional edition, 64bits). I follow the instructions strictly.

At the 'precompiled 3rd party libraries' step, on 'make prebuilt', a few error logs are listed, like

Code: Select all

Cannot create symlink to `libpng16.la': No such file or directory
. Same for "caca.pc" (?!). It ends with

Code: Select all

tar: i686-w64-mingw32/lib/libdts.a: Cannot create symlink to `/home/funman/vlc-git/contrib/i686-w64-mingw32/lib/libdca.a': No such file or directory tar: Exiting with failure status due to previous errors
OK, nothing I can do about it anyway...

Later, when building vlc, I have the follwing error on './bootstrap':

Code: Select all

+ autoreconf --install --force --verbose -I m4 ./bootstrap: line 78: autoreconf: command not found
Not sure I can continue from here...
Anyway let's try:

Code: Select all

sh ../extras/package/win32/configure.sh --host=i686-w64-mingw32 --disable-nls
And there I got:

Code: Select all

sh: ../extras/package/win32/../../../configure: No such file or directory
Can anyone help me please ?

ZeeByeZon
New Cone
New Cone
Posts: 6
Joined: 09 Jan 2014 18:03

Re: Compilation issues on Windows / msys

Postby ZeeByeZon » 17 Jan 2014 11:01

It seems like something called 'autoreconf' is missing in the msys package.
I do not know these tools. Can anyone help me to understand ?

There is a file named configure.ac in the vlc root directory. My understanding is that autoreconf should use it to generate a file named 'configure'...

ZeeByeZon
New Cone
New Cone
Posts: 6
Joined: 09 Jan 2014 18:03

Re: Compilation issues on Windows / msys

Postby ZeeByeZon » 17 Jan 2014 14:46

OK I fixed this one.
For the record, the problem comes from the version of m4. I downloaded the m4 binary version 1.4.16. The autoconf tool now compiles (it did not before).

Now the configuration os the compilation of vlc itself fails:

Code: Select all

checking for mad.h... yes checking for mad_bit_init in -lmad... no configure: error: Cannot find libmad library...
It seems like libmad is present in at vlc/contrib/mingw32/lib, so it must be a version issue.
I downloaded the last version of libmad (0.15.1b) and tried to compile it, but it fails:

Code: Select all

gcc -DHAVE_CONFIG_H -I. -I. -I. -DFPM_INTEL -DASO_ZEROCHECK -Wall -march=i486 -g -O -fforce-mem -fforce-addr -fthread-jumps -fcse-follow-jumps -fcse-skip-blocks -fexpensive-optimizations -fregmove -fschedule-insns2 -fstrength-reduce -MT version.lo -MD -MP -MF .deps/version.Tpo -c version.c -DDLL_EXPORT -DPIC -o .libs/version.o cc1.exe: error: unrecognized command line option '-fforce-mem' version.c:1:0: error: CPU you selected does not support x86-64 instruction set
When I remove the fforce-mem from the compilation command line in the Makefile, the last error remains.

I found libmad binaries for download (0.15.1b) and installed this to the vlc folder but the configuration still fails with the same error message.

How do you compile VLC on Windows / mingw / msys ??

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Compilation issues on Windows / msys

Postby Jean-Baptiste Kempf » 17 Jan 2014 18:50

You need to look at config.log why it fails.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 9 guests