Page 1 of 1

VLC compile error about bootstrap

Posted: 11 Jan 2012 03:14
by zhangchuanxyz
Hi:
I clone the VLC source code from "git://git.videolan.org/vlc.git", and I try to compile it. I use MinGW and Msys, and try to follow the instructions at "http://wiki.videolan.org/Win32CompileMSYSNew" to compile it. But when I ran "PATH=/usr/win32/bin:$PATH ./bootstrap", there was a error, error in the following.

Code: Select all

$ PATH=/usr/win32/bin:$PATH ./bootstrap 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 ...................................................................... + echo + cp -f INSTALL INSTALL.git + autoreconf --install --force --verbose -I m4 autoreconf: Entering directory `.' autoreconf: running: true --force autoreconf: running: aclocal --force -I m4 m4/autoopts.m4:22: warning: underquoted definition of AG_PATH_AUTOOPTS m4/autoopts.m4:22: run info '(automake)Extending aclocal' m4/autoopts.m4:22: or see http://sources.redhat.com/automake/automake.html#Ext ending-aclocal ' is already registered with AC_CONFIG_FILES. /usr/src/autoconf/autoconf-2.63/lib/autoconf/status.m4:305: AC_CONFIG_FILES is e xpanded from... /usr/share/aclocal-1.11/cond-if.m4:39: AM_COND_IF is expanded from... configure.ac:4245: the top level autom4te: /bin/m4 failed with exit status: 1 C:\msys\1.0\bin\aclocal: autom4te failed with exit status: 1 autoreconf: aclocal failed with exit status: 1
I know that "http://wiki.videolan.org/Win32CompileMSYSNew" is base on 1.1.X, and I find that the VLC 1.1.11 source code has many differences with the the VLC source code from "git://git.videolan.org/vlc.git". The VLC 1.1.11 source code is 127M, but the VLC source code from "git://git.videolan.org/vlc.git" is 103M! The VLC 1.1.11 source code has many makefile.in files, but the VLC source code from "git://git.videolan.org/vlc.git" doesn't have any makefile.in files. I have successfully compiled 1.1.11. I wonder whether the instructions at "http://wiki.videolan.org/Win32CompileMSYSNew" is correct for the VLC source code from "git://git.videolan.org/vlc.git". If it is not correct for the VLC source code from "git://git.videolan.org/vlc.git", how to set up the build environment? What should I do to compile it?
Who can help me?
Thanks.

Re: VLC compile error about bootstrap

Posted: 11 Jan 2012 09:36
by Ares19851110
I have the same problem. I also don't know how to solve them. Hope someone can help us. Thank you very much!!!

Re: VLC compile error about bootstrap

Posted: 11 Jan 2012 09:43
by Jean-Baptiste Kempf
Update your tools and your contribs.

Re: VLC compile error about bootstrap

Posted: 11 Jan 2012 09:54
by zhangchuanxyz
Update your tools and your contribs.
I configure the build environment as the instructions at "http://wiki.videolan.org/Win32CompileMSYSNew", and successfully compile 1.1.11. Right?

Re: VLC compile error about bootstrap

Posted: 11 Jan 2012 15:45
by VLC_help
You should be able to compile master with guide of Win32CompileMSYSNew

Re: VLC compile error about bootstrap

Posted: 12 Jan 2012 01:49
by zhangchuanxyz
You should be able to compile master with guide of Win32CompileMSYSNew
Yes, I do it with guide of "Win32CompileMSYSNew", and I have succeeded to compile 1.1.11, but it doesn't work for the VLC source code from "git://git.videolan.org/vlc.git".

Re: VLC compile error about bootstrap

Posted: 12 Jan 2012 02:53
by bluejin39
I did not meet you this situation, but I still want to look at, I hope I can solve the problem :twisted: :twisted: :twisted:

Re: VLC compile error about bootstrap

Posted: 12 Jan 2012 03:05
by zhangchuanxyz
I did not meet you this situation, but I still want to look at, I hope I can solve the problem :twisted: :twisted: :twisted:
Oh, thank you very much. I want to know that If you have seen the source code from "git://git.videolan.org/vlc.git"? That is very different from 1.1.11. I am a chinese, so my english is not very well, I say probably is not very clear, please understand.
Thanks.

Re: VLC compile error about bootstrap

Posted: 12 Jan 2012 05:21
by nkoriyama
You can try cross compilation with Linux(Ubuntu) or something. On Windows, you should do it in a virtual machine.
I think cross compilation is much easier than native compilation with MSYS.

Re: VLC compile error about bootstrap

Posted: 12 Jan 2012 06:27
by zhangchuanxyz
You can try cross compilation with Linux(Ubuntu) or something. On Windows, you should do it in a virtual machine.
I think cross compilation is much easier than native compilation with MSYS.
Thank you. I will try it.

Re: VLC compile error about bootstrap

Posted: 12 Jan 2012 06:28
by keltie
Hi zhangchuanxyz,

Out of interest, if you change the line endings on the files that bootstrap reads can you get further along the process?

I have experienced the same error before and suspect that the git download process for msys (installation possibilities and step by step guidelines?) may have some quirks.

Re: VLC compile error about bootstrap

Posted: 12 Jan 2012 07:37
by zhangchuanxyz
Hi zhangchuanxyz,

Out of interest, if you change the line endings on the files that bootstrap reads can you get further along the process?

I have experienced the same error before and suspect that the git download process for msys (installation possibilities and step by step guidelines?) may have some quirks.
Hi keltie,
I saw "configure.ac:4245: the top level", so I compared the "congigure.ac" with 1.1.11, I found it is different from 1.1.11. I replaced the "confugure.ac", of course it can get further along the process, but there was other error, Because the source code's difference is too great.
You've also encountered the same problem with me? How did you solve it?

Thank you.

Re: VLC compile error about bootstrap

Posted: 13 Jan 2012 05:12
by keltie
Hi,

I don't have an answer as I still fail to build VLC on msys using git with the latest tools/contribs and following verbatim the web instructions.

I observed that changing the 'configure.ac' file's line endings from /CR/LF to /LF only (Unix) then it would bootstrap fine. Issues will arise later for me in the configure step regardless of the 'configure' file's line endings. One possible conclusion to draw from this is that there are differences between how git is used with msys and the packaged released source.

I would be interested to know if you can successfully bootstrap at least by changing the line endings on your configure.ac file. Please let me know.

What is not explicit is how git is used to download the repository under msys. The msys build tools install instructions for vlc provide a compile environment without the git command. Git is available separately for msys with no clear method for integrating with our install instructions (please permit me to be a dummy here until one of the integration methods is successful and documented by the many happy people compiling vlc on msys out there).

Re: VLC compile error about bootstrap

Posted: 13 Jan 2012 20:09
by VLC_help
AFAIK git doesn't do anything to the files (it would make patching quite difficult if it would change something). It is the MSYS or Cygwin that must be configured for proper line ending.

Re: VLC compile error about bootstrap

Posted: 28 Feb 2012 10:49
by shenlong
Hey guys,

This problem is related to viewtopic.php?f=14&t=75023

just do a

Code: Select all

dos2unix configure.ac
and it'll fix the problem. Admin, maybe you could give me some contribution rights to cygwin/mingw32 wiki page to update the troublshooting issues!!!

Also, if you perform a dos2unix configure.ac, git actually detected changes, though performing a DIFF will show no changes. Some encoding issues or bug with aclocal not able to translate the endings properly.

Re: VLC compile error about bootstrap

Posted: 28 Feb 2012 20:06
by VLC_help
I can add it to Wiki, if you give something I can copy+paste directly.

Re: VLC compile error about bootstrap

Posted: 10 Oct 2013 13:49
by Ludrax
You can try cross compilation with Linux(Ubuntu) or something. On Windows, you should do it in a virtual machine.
I think cross compilation is much easier than native compilation with MSYS.
how to use it on VM shared folder(symlinks support) :?: