VLC-MSYS-Windows-Compilation-System-Problem

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
jiunn.liu
New Cone
New Cone
Posts: 6
Joined: 23 Nov 2012 07:13

VLC-MSYS-Windows-Compilation-System-Problem

Postby jiunn.liu » 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.

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: VLC-MSYS-Windows-Compilation-System-Problem

Postby Jean-Baptiste Kempf » 04 Dec 2012 15:32

Where did you see on the wiki the steps for 5 ?
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.

jiunn.liu
New Cone
New Cone
Posts: 6
Joined: 23 Nov 2012 07:13

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby jiunn.liu » 11 Dec 2012 06:35

If I do not use the Step 5, the autoconf will have compilation failure during Step 7.

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: VLC-MSYS-Windows-Compilation-System-Problem

Postby Jean-Baptiste Kempf » 11 Dec 2012 16:25

Then, you are doing it wrong. Step 7 is made to build autotools...
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.

jiunn.liu
New Cone
New Cone
Posts: 6
Joined: 23 Nov 2012 07:13

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby jiunn.liu » 12 Dec 2012 07:10

If no Step 5, the autoconf needs the GNU M4 1.4.16 or newer. However, I can not find the native M4 for MSYS.
My M4 is 1.4.14. It is up-to-date in MSYS.

$ m4 --v
m4 (GNU M4) 1.4.14
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Rene' Seindal.


=== Autoconfig Log ===
....
make[3]: Leaving directory `/d/GitRepository/vlc/extras/tools/pkgconfig'
Making all in check
make[3]: Entering directory `/d/GitRepository/vlc/extras/tools/pkgconfig/check'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/d/GitRepository/vlc/extras/tools/pkgconfig/check'
make[2]: Leaving directory `/d/GitRepository/vlc/extras/tools/pkgconfig'
make[1]: Leaving directory `/d/GitRepository/vlc/extras/tools/pkgconfig'
make[1]: Entering directory `/d/GitRepository/vlc/extras/tools/pkgconfig'
Making install in .
make[2]: Entering directory `/d/GitRepository/vlc/extras/tools/pkgconfig'
make[3]: Entering directory `/d/GitRepository/vlc/extras/tools/pkgconfig'
test -z "/d/GitRepository/vlc/extras/tools/build/bin" || /mingw/bin/mkdir -p "/d/GitRepository/vlc/extras/tools/build/bin"
/bin/sh ./libtool --mode=install /mingw/bin/install -c pkg-config.exe '/d/GitRepository/vlc/extras/tools/build/bin'
libtool: install: /mingw/bin/install -c pkg-config.exe /d/GitRepository/vlc/extras/tools/build/bin/pkg-config.exe
test -z "/d/GitRepository/vlc/extras/tools/build/share/doc/pkg-config" || /mingw/bin/mkdir -p "/d/GitRepository/vlc/extras/tools/build/share/doc/pkg-config"
/mingw/bin/install -c -m 644 pkg-config-guide.html '/d/GitRepository/vlc/extras/tools/build/share/doc/pkg-config'
test -z "/d/GitRepository/vlc/extras/tools/build/share/aclocal" || /mingw/bin/mkdir -p "/d/GitRepository/vlc/extras/tools/build/share/aclocal"
/mingw/bin/install -c -m 644 pkg.m4 '/d/GitRepository/vlc/extras/tools/build/share/aclocal'
test -z "/d/GitRepository/vlc/extras/tools/build/share/man/man1" || /mingw/bin/mkdir -p "/d/GitRepository/vlc/extras/tools/build/share/man/man1"
/mingw/bin/install -c -m 644 pkg-config.1 '/d/GitRepository/vlc/extras/tools/build/share/man/man1'
make[3]: Leaving directory `/d/GitRepository/vlc/extras/tools/pkgconfig'
make[2]: Leaving directory `/d/GitRepository/vlc/extras/tools/pkgconfig'
Making install in check
make[2]: Entering directory `/d/GitRepository/vlc/extras/tools/pkgconfig/check'
make[3]: Entering directory `/d/GitRepository/vlc/extras/tools/pkgconfig/check'
make[3]: Nothing to be done for `install-exec-am'.
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/d/GitRepository/vlc/extras/tools/pkgconfig/check'
make[2]: Leaving directory `/d/GitRepository/vlc/extras/tools/pkgconfig/check'
make[1]: Leaving directory `/d/GitRepository/vlc/extras/tools/pkgconfig'
touch .pkg-config
(cd autoconf; ./configure --prefix=/d/GitRepository/vlc/extras/tools/build && make && make install)
checking for a BSD-compatible install... /mingw/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /mingw/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking build system type... i686-pc-mingw32
checking host system type... i686-pc-mingw32
configure: autobuild project... GNU Autoconf
configure: autobuild revision... 2.69
configure: autobuild hostname... jiunnliu-nb
configure: autobuild timestamp... 20121212T054817Z
checking whether /bin/sh -n is known to work... yes
checking for characters that cannot appear in file names... \\"<>*?|
checking whether directories can have trailing spaces... no
checking for expr... /mingw/bin/expr
checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH.
GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended.
GNU M4 1.4.15 uses a buggy replacement strstr on some systems.
Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.
make: *** [.autoconf] Error 1

jiunn.liu
New Cone
New Cone
Posts: 6
Joined: 23 Nov 2012 07:13

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby jiunn.liu » 12 Dec 2012 07:49

I got the m4-1.4.16 from http://en.sourceforge.jp/projects/sfnet ... .tar.lzma/

However, when I executed "m4 --v", the message showed that "The procedure entry point fseeko could not be located in the dynamic link library msys-1.0.dll". It seems that this binary can not be executed.

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: VLC-MSYS-Windows-Compilation-System-Problem

Postby Jean-Baptiste Kempf » 12 Dec 2012 21:11

If you had followed the wiki step, you would have used the msys.7z file that already has the right m4.exe
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.

jiunn.liu
New Cone
New Cone
Posts: 6
Joined: 23 Nov 2012 07:13

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby jiunn.liu » 13 Dec 2012 03:59

I have followed the wiki step and used the msys.7z. Unzip to "C:\MinGW\msys". However, the attached m4 is 1.4.14.

$ m4 --v
m4 (GNU M4) 1.4.14
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by Rene' Seindal.

It can not be used to compile "autoconf" in the wiki step of "Get configuration tools". Therefore, I tried to use m4 1.4.16 as the last post.

Floyd
New Cone
New Cone
Posts: 1
Joined: 29 Dec 2012 18:28

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby Floyd » 29 Dec 2012 23:56

Hi,
I landed on this page because I was experiencing similar problem, however I think I fixed it.
The problem I experienced was caused by having cygwin/bin in the PATH environment variable, because of which cygwin interfered f.i. in "Get configuration tools".
My solution:
- Delete C:\MinGW and start over
- when running C:\MinGW\msys\msys.bat, check that Path does not contain cygwin. If Path contains cygwin, remove it/override/export PATH without cygwin
Follow instructions on http://wiki.videolan.org/Win32CompileMSYS
- fix for error extracting autoconf-$(AUTOCONF_VERSION).tar.bz
change tar.bz into tar.gz: $HOME/vlc/extras/tools/tools.mak:

Code: Select all

autoconf-$(AUTOCONF_VERSION).tar.gz
(3x)
- fix for configure: error: no acceptable m4 could be found in $PATH:
change 2.69 into 2.62: $HOME/vlc/extras/tools/packages.mak :

Code: Select all

AUTOCONF_VERSION=2.62
Hope this helps solving your issue.

sony
Blank Cone
Blank Cone
Posts: 23
Joined: 06 Mar 2006 16:39
Contact:

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby sony » 19 Feb 2013 17:07

Dear Floyd,
I got the same problem. I modified as specified in your solution. Actually the compilation can continue up the the last step: make package-win-common. It gets stuck at the npapi compilation (which needs the higher version of autoconf). If I skip the module npapi, my resulting vlc does not have qt4 GUI.
Any helps please
Thank you in advance

sony
Blank Cone
Blank Cone
Posts: 23
Joined: 06 Mar 2006 16:39
Contact:

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby sony » 25 Feb 2013 10:54

Dear all,
The problem of autoconf seems to be solved for me.
As recommended by Floyd (modifying the version of autoconf to 2.62 in the packages.mak file), I could compile the VLC source but not the npapi (in the step "make package-win-common), which needs a later version of autoconf.
From the bootstrap file I can see that the required autoconf version is 2.67, so setting AUTOCONF_VERSION to 2.67 in stead of 2.69 in packages.mak works perfactly for me

saricnet
Blank Cone
Blank Cone
Posts: 39
Joined: 18 Jan 2009 18:10

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby saricnet » 12 Mar 2013 18:28

Hi,
I landed on this page because I was experiencing similar problem, however I think I fixed it.
The problem I experienced was caused by having cygwin/bin in the PATH environment variable, because of which cygwin interfered f.i. in "Get configuration tools".
My solution:
- Delete C:\MinGW and start over
- when running C:\MinGW\msys\msys.bat, check that Path does not contain cygwin. If Path contains cygwin, remove it/override/export PATH without cygwin
Follow instructions on http://wiki.videolan.org/Win32CompileMSYS
- fix for error extracting autoconf-$(AUTOCONF_VERSION).tar.bz
change tar.bz into tar.gz: $HOME/vlc/extras/tools/tools.mak:

Code: Select all

autoconf-$(AUTOCONF_VERSION).tar.gz
(3x)
- fix for configure: error: no acceptable m4 could be found in $PATH:
change 2.69 into 2.62: $HOME/vlc/extras/tools/packages.mak :

Code: Select all

AUTOCONF_VERSION=2.62
Hope this helps solving your issue.
When trying to run compile used these steps I get:

$ ./bootstrap
autoconf not found
automake not found
libtool not found
pkg-config not found
cmake not found
yasm not found
ragel not found

How can this be solved?

sony
Blank Cone
Blank Cone
Posts: 23
Joined: 06 Mar 2006 16:39
Contact:

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby sony » 12 Mar 2013 22:49

When trying to run compile used these steps I get:

$ ./bootstrap
autoconf not found
automake not found
libtool not found
pkg-config not found
cmake not found
yasm not found
ragel not found

How can this be solved?
"Not found" while running bootstrap is not a problem. Just go ahead as in the doc, the missing tools will be downloaded and installed

Efi
New Cone
New Cone
Posts: 2
Joined: 14 Mar 2013 08:59

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby Efi » 14 Mar 2013 09:07

Please double-check that when installing "tdm-gcc-4.7.1-2" (step 1) you CHANGED the default install path of from "C:\MinGW32" to :C:\MinGW"

This is one of the main cause of the "GNU M4 1.4.16" error. :D

saricnet
Blank Cone
Blank Cone
Posts: 39
Joined: 18 Jan 2009 18:10

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby saricnet » 14 Mar 2013 13:07

Thank you for your answers, now I get:
make[4]: *** [libflac_plugin.la] Error 1
make[4]: Leaving directory `/home/hackers/vlc/win32/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/hackers/vlc/win32/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/hackers/vlc/win32/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/hackers/vlc/win32'
make: *** [all] Error 2

How can this be solved?

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: VLC-MSYS-Windows-Compilation-System-Problem

Postby Jean-Baptiste Kempf » 14 Mar 2013 15:21

--disable-flac
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.

saricnet
Blank Cone
Blank Cone
Posts: 39
Joined: 18 Jan 2009 18:10

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby saricnet » 14 Mar 2013 15:27

--disable-flac
How can I do this ?, sorry I'm a beginner.

Efi
New Cone
New Cone
Posts: 2
Joined: 14 Mar 2013 08:59

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby Efi » 14 Mar 2013 23:00

sh ../extras/package/win32/configure.sh --host=i586-pc-mingw32msvc --disable-nls --disable-flac

saricnet
Blank Cone
Blank Cone
Posts: 39
Joined: 18 Jan 2009 18:10

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby saricnet » 15 Mar 2013 20:03

Thanks you for your answer, now I get:
autoreconf: /home/hackers/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [stamp-npapi-autogen] Error 1
Where is a problem now ?

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: VLC-MSYS-Windows-Compilation-System-Problem

Postby Jean-Baptiste Kempf » 15 Mar 2013 21:29

Look above :)
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.

saricnet
Blank Cone
Blank Cone
Posts: 39
Joined: 18 Jan 2009 18:10

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby saricnet » 16 Mar 2013 00:30

I added as you write:
sh ../extras/package/win32/configure.sh --host=i586-pc-mingw32msvc --disable-nls --disable-flac
but after that I get:
autoreconf: /home/hackers/vlc/extras/tools/build/bin/autoconf failed with exit status: 1
make: *** [stamp-npapi-autogen] Error 1
Please help :(

saricnet
Blank Cone
Blank Cone
Posts: 39
Joined: 18 Jan 2009 18:10

Re: VLC-MSYS-Windows-Compilation-System-Problem

Postby saricnet » 17 Mar 2013 20:59

Any help ?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 33 guests