Page 1 of 1
Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 18 Aug 2011 20:36
by aipragma
Hi folks,
I got the following error during the bootstrap in MSYS (summarized):
/bin/m4: unrecognized option `--gnu'
Here is the complete terminal view of the bootstrap script:
user@HOST ~/vlc
$ PATH=/usr/win32/bin:$PATH ./bootstrap
++ dirname ./bootstrap
+ cd .
+ ACLOCAL_ARGS='-I m4 '
+ test -d extras/contrib/build/bin
++ uname -s
+ test .MINGW32_NT-6.1 = .Darwin
+ pkg-config --version
+ PKGCONFIG=yes
+ export AUTOPOINT
+ test ''
+ AUTOPOINT=autopoint
+ autopoint --dry-run --force
+ set +x
generating modules/**/Makefile.am
...........................................................................
+ echo
+ echo
+ cp -f INSTALL INSTALL.git
+ autoreconf --install --force --verbose -I m4
autoreconf-2.67: Entering directory `.'
autoreconf-2.67: running: autopoint --force
Copying file ABOUT-NLS
Copying file po/Makevars.template
autoreconf-2.67: running: aclocal -I m4 --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#Ex
ending-aclocal
/bin/m4: unrecognized option `--gnu'
Try `/bin/m4 --help' for more information.
autom4te-2.67: /bin/m4 failed with exit status: 1
aclocal-1.11: /mingw/bin/autom4te-2.67 failed with exit status: 1
autoreconf-2.67: aclocal failed with exit status: 1
user@HOST ~/vlc
$
I followed the following VLC Dev webpage :
http://wiki.videolan.org/Win32CompileMSYSNew
I followed all the steps on that webpage but opted to go with VLC version 1.1.9 source code instead of 1.1.0rc3 .
I reached the Bootstrap portion under the Build VLC section, and encountered the error listed above.
My system is Windows 7 Professional (64bit) running on an Intel i5 CPU with 8GB RAM.
Appreciate any assistance on this error.
Thanks,
Ai Pragma
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 13 Sep 2011 22:38
by bmesander
I found my msys had both gnu and non-gnu m4's installed in a couple places. I found the m4 which accepted the --gnu option and placed it in /bin over the one there which did not accept the option.
I was able to build VLC 1.0.2 on win7 with this approach.
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 14 Sep 2011 22:48
by aipragma
BMESander,
I see what you mean. Your information helped me get past this particular hiccup (./bootstrap script run) in the building process, but now I am wondering if you encountered problems with the /configure-msys.sh script run for vlc, because I did.
Under the "Configure" step for Win32CompileMSYSNew(webpage for MSYS version of building vlc), it says to run the following script "sh extras/package/win32/configure-msys.sh", which I made sure it was for (1.1.x only) versions, which the source for this vlc is 1.1.9. So after initiating "sh extras/package/win32/configure-msys.sh" , I get the following error:
checking libtar.h presence... no
checking for libtar.h... no
checking a52dec/a52.h usability... yes
checking a52dec/a52.h presence... yes
checking for a52dec/a52.h... yes
checking for a52_free in -la52... yes
checking for DCA... yes
checking for FLAC... yes
checking for LIBMPEG2... yes
checking for VORBIS... yes
checking for SPEEX... yes
checking for THEORA... yes
checking for SCHROEDINGER... no
configure: error: Library schroedinger-1.0 >= 1.0.10 needed for schroedinger was
not found
After it stopped when it said it was missing a version of "schroedinger", I then downloaded "schroedinger-1.0.10", and tried to build it, but the ./configure script run for it stopped when it said that it needed a version of "orc", which I then downloaded "orc-0.4.14", and built it, and installed it, via "make install", but the ./configure for "schroedinger" still says it cant find a version of "orc".
Here is the stoppage for the ./configure for schroedinger:
...
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... unknown
checking whether byte ordering is bigendian... no
checking for cos in -lm... yes
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ORC... no
configure: error: orc-0.4 >= 0.4.10 is required
I did notice that in the MSYS/local/lib folder after the "make install" for orc, the orc libs were labelled liborc-0.4.a, liborc-0.4.la, etc, and not liborc-0.4.14.a, liborc-0.4.14.a, etc; I also copied these libs into MSYS/Win32/lib folder since I found an old version of schroedinger in there.
So at this point, again, I am wondering if you encountered these issues, and if not, any thoughts on them?
Thanks again,
Ai Pragma
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 14 Sep 2011 23:23
by bmesander
Hello,
No, I didn't have those problems. Did you download the latest precompiled contribs library tarball from the vlc website? The one linked in the Wiki did not work for me, I had to download a newer one.
I used the newest one found here:
http://people.videolan.org/~jb/Contribs/
Hope this helps.
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 15 Sep 2011 00:45
by aipragma
BMESander,
I downloaded contrib-20110823-win32-bin-gcc-4.4.4-runtime-3.17-only.tar.bz2 which was the most recent version that I could see, and updated ./Win32, and it got me past the problem with configure-msys.sh. It completed successfully.
Then running "PATH=/usr/win32/bin:$PATH make" and after 874 compilation lines I get the following error:
=======================================================================================
make[5]: Entering directory `/home/aipragma/vlc/modules/codec/dmo'
make all-am
make[6]: Entering directory `/home/aipragma/vlc/modules/codec/dmo'
CC libdmo_plugin_la-dmo.lo
dmo.c: In function 'LoadDMO':
dmo.c:786:23: warning: passing argument 3 of 'GetClass' from incompatible pointer type
dmo.c:786:23: note: expected 'void **' but argument is of type 'struct IClassFactoryHack **'
dmo.c:795:43: warning: passing argument 4 of 'cFactory->vt->CreateInstance' from incompatible pointer type
dmo.c:795:43: note: expected 'void **' but argument is of type 'struct IUnknownHack **'
dmo.c:804:41: warning: passing argument 3 of 'cObject->vt->QueryInterface' from incompatible pointer type
dmo.c:804:41: note: expected 'void **' but argument is of type 'struct IMediaObject **'
dmo.c: In function 'EncoderSetVideoType':
dmo.c:1207:44: warning: passing argument 3 of 'p_dmo->vt->QueryInterface' from incompatible pointer type
dmo.c:1207:44: note: expected 'void **' but argument is of type 'struct IWMCodecPrivateData **'
CC libdmo_plugin_la-buffer.lo
CCLD libdmo_plugin.la
Creating library file: .libs/libdmo_plugin.dll.a
make[6]: Leaving directory `/home/aipragma/vlc/modules/codec/dmo'
make[5]: Leaving directory `/home/aipragma/vlc/modules/codec/dmo'
Making all in avcodec
make[5]: Entering directory `/home/aipragma/vlc/modules/codec/avcodec'
make all-am
make[6]: Entering directory `/home/aipragma/vlc/modules/codec/avcodec'
CC libavcodec_plugin_la-avcodec.lo
avcodec.c: In function 'OpenDecoder':
avcodec.c:254:5: warning: 'avcodec_alloc_context' is deprecated (declared at C:/msys/1.0/win32/include/libavcodec/avcodec.h:3576)
avcodec.c:265:32: error: 'FF_MM_MMX' undeclared (first use in this function)
avcodec.c:265:32: note: each undeclared identifier is reported only once for each function it appears in
avcodec.c:269:32: error: 'FF_MM_MMXEXT' undeclared (first use in this function)
avcodec.c:273:32: error: 'FF_MM_3DNOW' undeclared (first use in this function)
avcodec.c:277:32: error: 'FF_MM_SSE' undeclared (first use in this function)
avcodec.c:281:32: error: 'FF_MM_SSE2' undeclared (first use in this function)
avcodec.c: In function 'InitLibavcodec':
avcodec.c:386:9: warning: 'avcodec_init' is deprecated (declared at C:/msys/1.0/win32/include/libavcodec/avcodec.h:3495)
make[6]: *** [libavcodec_plugin_la-avcodec.lo] Error 1
make[6]: Leaving directory `/home/aipragma/vlc/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/aipragma/vlc/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/aipragma/vlc/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/aipragma/vlc/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/aipragma/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/aipragma/vlc'
make: *** [all] Error 2
=======================================================================================
I am looking to see if I can find the "FF_MM_MMX" declaration that it first failed on in avcodec.c.
Any thoughts would be appreciated.
Again thanks for nursing me along in this build process, every suggestion you have made has worked getting past a specific point.
Ai Pragma
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 15 Sep 2011 00:52
by Jean-Baptiste Kempf
Build 1.1.12-git or 1.2.0-git for those contribs.
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 15 Sep 2011 01:04
by aipragma
BMESander,
I think I found the problem, the vlc avcodec.h doesnt have those declarations but the newest one in ./Win32/include does.
Let me explain why I have focused on building 1.1.9. Anything newer than that has a bug(can't load play DVD's on a hard drive) that I was told would not be fixed until 1.2.0, and since the latest stable version is 1.1.11, what am I getting into if I build 1.2.0-git?
Could maybe you might suggest a different contrib that will still resolve the original problem (configure-msys.sh), and not run into this most recent one (FF_MM_MMX declaration)?
Thanks,
Ai Pragma
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 15 Sep 2011 01:12
by aipragma
I see now that my most recent reply before this one, was meant to be addressed to Jean-Baptiste Kempf.
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 15 Sep 2011 01:16
by Jean-Baptiste Kempf
Use VLC 1.2.0 from NB...
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 23 Jul 2012 11:46
by jiapei100
Hi, aipragma:
I've got exactly the same problem as you mentioned here.
Actually, I'm not trying to build VideoLAN. What I'm trying to build is just schroedinger-1.0.11 based on orc-0.4.16
In fact, if I typed
I got
and, I did all the things suggested by
http://www.mail-archive.com/schrodinger ... 00423.html
including
$ export LDFLAGS=-L/usr/local/lib
$ export CFLAGS=-I/usr/local/include
$ export PKG_CONFIG=/usr/local/lib:$PKG_CONFIG
But, still, I get the same error:
checking pkg-config is at least version 0.9.0... ./configure: line 16380: /usr/local/lib: is a directory
no
checking for ORC... configure: error: orc-0.4 >= 0.4.16 is required
So, did u solve the problem already?
Cheers
Pei
BMESander,
I see what you mean. Your information helped me get past this particular hiccup (./bootstrap script run) in the building process, but now I am wondering if you encountered problems with the /configure-msys.sh script run for vlc, because I did.
Under the "Configure" step for Win32CompileMSYSNew(webpage for MSYS version of building vlc), it says to run the following script "sh extras/package/win32/configure-msys.sh", which I made sure it was for (1.1.x only) versions, which the source for this vlc is 1.1.9. So after initiating "sh extras/package/win32/configure-msys.sh" , I get the following error:
checking libtar.h presence... no
checking for libtar.h... no
checking a52dec/a52.h usability... yes
checking a52dec/a52.h presence... yes
checking for a52dec/a52.h... yes
checking for a52_free in -la52... yes
checking for DCA... yes
checking for FLAC... yes
checking for LIBMPEG2... yes
checking for VORBIS... yes
checking for SPEEX... yes
checking for THEORA... yes
checking for SCHROEDINGER... no
configure: error: Library schroedinger-1.0 >= 1.0.10 needed for schroedinger was
not found
After it stopped when it said it was missing a version of "schroedinger", I then downloaded "schroedinger-1.0.10", and tried to build it, but the ./configure script run for it stopped when it said that it needed a version of "orc", which I then downloaded "orc-0.4.14", and built it, and installed it, via "make install", but the ./configure for "schroedinger" still says it cant find a version of "orc".
Here is the stoppage for the ./configure for schroedinger:
...
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking dependency style of gcc... gcc3
checking whether gcc and cc understand -c and -o together... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... unknown
checking for _LARGE_FILES value needed for large files... unknown
checking whether byte ordering is bigendian... no
checking for cos in -lm... yes
checking for pkg-config... /bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ORC... no
configure: error: orc-0.4 >= 0.4.10 is required
I did notice that in the MSYS/local/lib folder after the "make install" for orc, the orc libs were labelled liborc-0.4.a, liborc-0.4.la, etc, and not liborc-0.4.14.a, liborc-0.4.14.a, etc; I also copied these libs into MSYS/Win32/lib folder since I found an old version of schroedinger in there.
So at this point, again, I am wondering if you encountered these issues, and if not, any thoughts on them?
Thanks again,
Ai Pragma
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 26 Jul 2012 04:56
by liyake825
Hi,
Ai Pragma.I am buliding vlc 1.1.0 and i think i got the same problem " error: 'FF_MM_MMX' undeclared (first use in this function)" as follows:
avcodec.c:265:32: error: 'FF_MM_MMX' undeclared (first use in this function)
avcodec.c:265:32: note: each undeclared identifier is reported only once for eac
h function it appears in
avcodec.c:269:32: error: 'FF_MM_MMXEXT' undeclared (first use in this function)
avcodec.c:273:32: error: 'FF_MM_3DNOW' undeclared (first use in this function)
avcodec.c:277:32: error: 'FF_MM_SSE' undeclared (first use in this function)
avcodec.c:281:32: error: 'FF_MM_SSE2' undeclared (first use in this function)
avcodec.c: In function 'InitLibavcodec':
avcodec.c:386:9: warning: 'avcodec_init' is deprecated (declared at C:/msys/1.0/
win32/include/libavcodec/avcodec.h:3659) [-Wdeprecated-declarations]
make[6]: *** [libavcodec_plugin_la-avcodec.lo] Error 1
make[6]: Leaving directory `/home/PC/vlc/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/home/PC/vlc/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/home/PC/vlc/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/home/PC/vlc/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/PC/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/PC/vlc'
make: *** [all] Error 2
i just do not know how to deal with this, and i google this ploblem only to find u had the same problem with me, do u have some solutions? please give me some help.
Thank you very much !
Liyake825
Re: Failed bootstrap script in MSYS (Win 7 - 64bit)
Posted: 27 Jul 2012 17:03
by Jean-Baptiste Kempf
Use 2.0.0