VLC-MSYS-Windows-Compilation-System-Problem
Posted: 30 Nov 2012 10:14
The following is my installation process for VLC Win32 Compilation on MSYS.
I refer to the installation guide http://wiki.videolan.org/Win32CompileMSYS.
(1). Use Windows 7.
(2). Install MinGW by TDM/MinGW
- http://sourceforge.net/projects/tdm-gcc ... e/download
(3). Install Msys
- http://people.videolan.org/~jb/msys/msys.7z
(4). Get the source code to "/d/GitRepository/vlc/"
(5). Install and upgrade native tools for MSYS from http://sourceforge.net/projects/mingw/files/
- autoconf-2.68-1-msys-1.0.17-bin.tar.lzma
- automake-1.11.1-1-msys-1.0.13-bin.tar.lzma
- gettext-0.18.1.1-1-msys-1.0.17-bin.tar.lzma
- libtool-2.4-1-msys-1.0.15-bin.tar.lzma
(6).
Update vlc\extras\tools\tools.mak to unzip the .bz2 file.
UNPACK = $(RM) -R $@ \
$(foreach f,$(filter %.tar.gz %.tgz,$^), && tar xvzf $(f)) \
$(foreach f,$(filter %.tar.bz2,$^), && tar xvf $(f)) \
$(foreach f,$(filter %.tar.xz,$^), && tar xvJf $(f)) \
$(foreach f,$(filter %.zip,$^), && unzip $(f))
(7).
$> cd vlc/extras/tools
$> ./bootstrap
$> make
Ok except for ragel (Ref. Ragel compilation can fail with gcc 4.7, ignore it.)
Update .bash_profile set
export PATH=$PATH:/d/GitRepository/vlc/extras/tools/build/bin/
(8).
$> cd vlc/contrib
$> mkdir win32 && cd win32
$> ../bootstrap --build=i586-mingw32msvc
$> make prebuilt
Ok except for "make prebuilt" failures
make prebuilt log:
...
i586-mingw32msvc/include/mpc/datatypes.h
i586-mingw32msvc/include/cucul.h
tar: i586-mingw32msvc/include/cucul.h: Cannot create symlink to `caca.h': No such file or directory
i586-mingw32msvc/include/AMRAudioRTPSource.hh
i586-mingw32msvc/include/MP3AudioFileServerMediaSubsession.hh
i586-mingw32msvc/include/caca_conio.h
...
i586-mingw32msvc/include/SIPClient.hh
i586-mingw32msvc/include/openjpeg.h
tar: i586-mingw32msvc/include/openjpeg.h: Cannot create symlink to `openjpeg-1.5/openjpeg.h': No such file or directory
i586-mingw32msvc/include/ebml/
i586-mingw32msvc/include/ebml/EbmlHead.h
...
i586-mingw32msvc/lib/libcucul.la
tar: i586-mingw32msvc/lib/libcucul.la: Cannot create symlink to `libcaca.la': No such file or directory
i586-mingw32msvc/lib/libtheoradec.a
i586-mingw32msvc/lib/libmad.a
...
i586-mingw32msvc/lib/pkgconfig/SDL_image.pc
i586-mingw32msvc/lib/pkgconfig/cucul.pc
tar: i586-mingw32msvc/lib/pkgconfig/cucul.pc: Cannot create symlink to `caca.pc': No such file or directory
i586-mingw32msvc/lib/pkgconfig/libpng.pc
tar: i586-mingw32msvc/lib/pkgconfig/libpng.pc: Cannot create symlink to `libpng15.pc': No such file or directory
i586-mingw32msvc/lib/pkgconfig/libass.pc
i586-mingw32msvc/lib/pkgconfig/taglib.pc
...
i586-mingw32msvc/lib/libfreetype.a
i586-mingw32msvc/lib/libxml2.a
tar: i586-mingw32msvc/lib/libdts.a: Cannot create symlink to `/home/jb/vlc-2.0/contrib/i586-mingw32msvc/lib/libdca.a': No such file or directory
tar: Exiting with failure status due to previous errors
make: [prebuilt] Error 2 (ignored)
mv i586-mingw32msvc ..
cd ../i586-mingw32msvc && ../../contrib/src/change_prefix.sh
Fixing up bin/autopoint
Fixing up bin/dvdnav-config
$> cd ..
$> ln -sf i586-mingw32msvc mingw32
Update .bash_profile set
export PATH=$PATH:/d/GitRepository/vlc/contrib/mingw32/bin/
$> rm /d/GitRepository/vlc/contrib/mingw32/bin/moc /d/GitRepository/vlc/contrib/mingw32/bin/uic /d/GitRepository/vlc/contrib/mingw32/bin/rcc
(9).
$> cd /d/GitRepository/vlc/
$> ./bootstrap
Failure log as follows:
NOTE: GNU gettext appears to be missing or out-of-date.
Please install or update GNU gettext.
Also check if you have cvs, a dependency of autopoint.
Otherwise, you will not be able to build a source tarball.
==============================================================
generating modules/**/Makefile.am
..................................
+ autoreconf --install --force --verbose -I m4
autoreconf: Entering directory `.'
autoreconf: running: true --force
autoreconf: running: aclocal -I m4 --force -I m4
' is already registered with AC_CONFIG_FILES.
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/status.m4:290: AC_CONFIG_FILES is expanded from...
/usr/share/aclocal-1.11/cond-if.m4:26: AM_COND_IF is expanded from...
configure.ac:4098: the top level
/bin/m4: cannot remove temporary directory /tmp/arLKynPo/m4-Pqcnhk: Directory not empty
autom4te-2.68: /bin/m4 failed with exit status: 1
aclocal: /usr/bin/autom4te-2.68 failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
(10)
Is it the problem for Step (8)? Those files can not be controlled by myself.
Please help me to build up the windows compilation system. It is so hard to get compiled without the correct procedure.
I refer to the installation guide http://wiki.videolan.org/Win32CompileMSYS.
(1). Use Windows 7.
(2). Install MinGW by TDM/MinGW
- http://sourceforge.net/projects/tdm-gcc ... e/download
(3). Install Msys
- http://people.videolan.org/~jb/msys/msys.7z
(4). Get the source code to "/d/GitRepository/vlc/"
(5). Install and upgrade native tools for MSYS from http://sourceforge.net/projects/mingw/files/
- autoconf-2.68-1-msys-1.0.17-bin.tar.lzma
- automake-1.11.1-1-msys-1.0.13-bin.tar.lzma
- gettext-0.18.1.1-1-msys-1.0.17-bin.tar.lzma
- libtool-2.4-1-msys-1.0.15-bin.tar.lzma
(6).
Update vlc\extras\tools\tools.mak to unzip the .bz2 file.
UNPACK = $(RM) -R $@ \
$(foreach f,$(filter %.tar.gz %.tgz,$^), && tar xvzf $(f)) \
$(foreach f,$(filter %.tar.bz2,$^), && tar xvf $(f)) \
$(foreach f,$(filter %.tar.xz,$^), && tar xvJf $(f)) \
$(foreach f,$(filter %.zip,$^), && unzip $(f))
(7).
$> cd vlc/extras/tools
$> ./bootstrap
$> make
Ok except for ragel (Ref. Ragel compilation can fail with gcc 4.7, ignore it.)
Update .bash_profile set
export PATH=$PATH:/d/GitRepository/vlc/extras/tools/build/bin/
(8).
$> cd vlc/contrib
$> mkdir win32 && cd win32
$> ../bootstrap --build=i586-mingw32msvc
$> make prebuilt
Ok except for "make prebuilt" failures
make prebuilt log:
...
i586-mingw32msvc/include/mpc/datatypes.h
i586-mingw32msvc/include/cucul.h
tar: i586-mingw32msvc/include/cucul.h: Cannot create symlink to `caca.h': No such file or directory
i586-mingw32msvc/include/AMRAudioRTPSource.hh
i586-mingw32msvc/include/MP3AudioFileServerMediaSubsession.hh
i586-mingw32msvc/include/caca_conio.h
...
i586-mingw32msvc/include/SIPClient.hh
i586-mingw32msvc/include/openjpeg.h
tar: i586-mingw32msvc/include/openjpeg.h: Cannot create symlink to `openjpeg-1.5/openjpeg.h': No such file or directory
i586-mingw32msvc/include/ebml/
i586-mingw32msvc/include/ebml/EbmlHead.h
...
i586-mingw32msvc/lib/libcucul.la
tar: i586-mingw32msvc/lib/libcucul.la: Cannot create symlink to `libcaca.la': No such file or directory
i586-mingw32msvc/lib/libtheoradec.a
i586-mingw32msvc/lib/libmad.a
...
i586-mingw32msvc/lib/pkgconfig/SDL_image.pc
i586-mingw32msvc/lib/pkgconfig/cucul.pc
tar: i586-mingw32msvc/lib/pkgconfig/cucul.pc: Cannot create symlink to `caca.pc': No such file or directory
i586-mingw32msvc/lib/pkgconfig/libpng.pc
tar: i586-mingw32msvc/lib/pkgconfig/libpng.pc: Cannot create symlink to `libpng15.pc': No such file or directory
i586-mingw32msvc/lib/pkgconfig/libass.pc
i586-mingw32msvc/lib/pkgconfig/taglib.pc
...
i586-mingw32msvc/lib/libfreetype.a
i586-mingw32msvc/lib/libxml2.a
tar: i586-mingw32msvc/lib/libdts.a: Cannot create symlink to `/home/jb/vlc-2.0/contrib/i586-mingw32msvc/lib/libdca.a': No such file or directory
tar: Exiting with failure status due to previous errors
make: [prebuilt] Error 2 (ignored)
mv i586-mingw32msvc ..
cd ../i586-mingw32msvc && ../../contrib/src/change_prefix.sh
Fixing up bin/autopoint
Fixing up bin/dvdnav-config
$> cd ..
$> ln -sf i586-mingw32msvc mingw32
Update .bash_profile set
export PATH=$PATH:/d/GitRepository/vlc/contrib/mingw32/bin/
$> rm /d/GitRepository/vlc/contrib/mingw32/bin/moc /d/GitRepository/vlc/contrib/mingw32/bin/uic /d/GitRepository/vlc/contrib/mingw32/bin/rcc
(9).
$> cd /d/GitRepository/vlc/
$> ./bootstrap
Failure log as follows:
NOTE: GNU gettext appears to be missing or out-of-date.
Please install or update GNU gettext.
Also check if you have cvs, a dependency of autopoint.
Otherwise, you will not be able to build a source tarball.
==============================================================
generating modules/**/Makefile.am
..................................
+ autoreconf --install --force --verbose -I m4
autoreconf: Entering directory `.'
autoreconf: running: true --force
autoreconf: running: aclocal -I m4 --force -I m4
' is already registered with AC_CONFIG_FILES.
/usr/src/autoconf/autoconf-2.68-1/src/autoconf-2.68/lib/autoconf/status.m4:290: AC_CONFIG_FILES is expanded from...
/usr/share/aclocal-1.11/cond-if.m4:26: AM_COND_IF is expanded from...
configure.ac:4098: the top level
/bin/m4: cannot remove temporary directory /tmp/arLKynPo/m4-Pqcnhk: Directory not empty
autom4te-2.68: /bin/m4 failed with exit status: 1
aclocal: /usr/bin/autom4te-2.68 failed with exit status: 1
autoreconf: aclocal failed with exit status: 1
(10)
Is it the problem for Step (8)? Those files can not be controlled by myself.
Please help me to build up the windows compilation system. It is so hard to get compiled without the correct procedure.