Page 1 of 1

Compilation issues on Windows / msys

Posted: 16 Jan 2014 18:04
by ZeeByeZon
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 ?

Re: Compilation issues on Windows / msys

Posted: 17 Jan 2014 11:01
by ZeeByeZon
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'...

Re: Compilation issues on Windows / msys

Posted: 17 Jan 2014 14:46
by ZeeByeZon
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 ??

Re: Compilation issues on Windows / msys

Posted: 17 Jan 2014 18:50
by Jean-Baptiste Kempf
You need to look at config.log why it fails.