Page 1 of 1

Build issues on MinGW + MSYS

Posted: 05 May 2009 23:07
by _ole_
While building the vlc player using MinGW + MSYS under Windows XP SP3, when running the make, I got the following error message:

Could anyone please advise?

make[5]: Entering directory `/c/VLC/vlc/modules/codec'
/bin/sh ../../libtool --tag=CC --mode=link gcc -std=gnu99 `top_builddir="../.." ../../vlc-config --cflags plugin libdirac_plugin.la` -mms-bitfields -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -rpath '/usr/local/lib/vlc/codec' -avoid-version -module -no-undefined -export-symbol-regex ^vlc_entry -shrext .dll `top_builddir="../.." ../../vlc-config --ldflags plugin libdirac_plugin.la` -L/usr/win32/lib -o libdirac_plugin.la libdirac_plugin_la-dirac.lo `top_builddir="../.." ../../vlc-config -libs plugin libdirac_plugin.la` ../../src/libvlccore.la -lmingw32
libtool: link: rm -fr .libs/libdirac_plugin.dll.a
libtool: link: gcc -std=gnu99 -shared .libs/libdirac_plugin_la-dirac.o -L/usr/win32/lib -LC:/msys/win32/lib /usr/win32/lib/libdirac_encoder.a /usr/win32/lib/libdirac_decoder.a /mingw/lib/libstdc++.a ../../src/.libs/libvlccore.dll.a /usr/win32/lib/libgpg-error.a -lkernel32 -lws2_32 -lnetapi32 -lwinmm -lmingw32 -mtune=pentium2 -mms-bitfields -o .libs/libdirac_plugin.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libdirac_plugin.dll.a
C:/msys/win32/lib/libdirac_encoder.a(libdirac_encoder_la-dirac_encoder.o):dirac_encoder.cpp:(.text+0x1f46): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
C:/msys/win32/lib/libdirac_encoder.a(libdirac_encoder_la-dirac_encoder.o):dirac_encoder.cpp:(.text+0x20b4): undefined reference to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)'
[...]
[ 200 more undefined references related to __ostream_insert]
[...]
C:/msys/win32/lib/libdirac_encoder.a(libdirac_common_la-band_codec.o):band_codec.cpp:(.text+0x5a64): more undefined references to `std::basic_ostream<char, std::char_traits<char> >& std::__ostream_insert<char, std::char_traits<char> >(std::basic_ostream<char, std::char_traits<char> >&, char const*, int)' follow
collect2: ld returned 1 exit status
make[5]: *** [libdirac_plugin.la] Error 1
make[5]: Leaving directory `/c/VLC/vlc/modules/codec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/c/VLC/vlc/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/c/VLC/vlc/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/c/VLC/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/c/VLC/vlc'
make: *** [all] Error 2

Please help??

thanks, Oleg

Re: Build issues on MinGW + MSYS

Posted: 05 May 2009 23:14
by Jean-Baptiste Kempf
--disable-dirac

Re: Build issues on MinGW + MSYS

Posted: 06 May 2009 15:45
by _ole_
thanks for your help!

--disable-dirac worked (I had to take --enable-dirac from extras/package/win32/configure-common.sh as well),
also I had to modify $PATH to add
/usr/win32/bin

From what i can tell, it built successfully. but when I try to run it, it basically fails - hangs in the background though - and gives me the following:

$ sh vlc
[00000001] main libvlc debug: VLC media player - version 0.9.8a Grishenko - (c) 1996-2008 the VideoLAN team
[00000001] main libvlc debug: libvlc was configured with ./configure '--host=i586-mingw32msvc' '--build=i386-linux' '--disable-mkv' '--disable-taglib' '--disable-nls' '--disable-dirac' '--enable-debug' '--without-contrib' '--enable-update-check' '--enable-lua' '--enable-faad' '--enable-flac' '--enable-theora' '--enable-twolame' '--enable-quicktime' '--enable-real' '--enable-avcodec' '--enable-dca' '--enable-mpc' '--enable-libass' '--enable-x264' '--enable-schroedinger' '--enable-realrtsp' '--enable-live555' '--with-live555-tree=/usr/win32/live.com' '--enable-dvdr
[00000001] main libvlc debug: translation test: code is "C"
[00000001] main libvlc error: no memcpy module matched "any"
[00000007] main access error: no access module matched "file"
[00000006] main input error: open of `file/xspf-open://C:\Documents and Settings\Administrator\Application Data\vlc\ml.xspf' failed: could not create access: no access module matched "file"
[00000010] main interface error: no interface module matched "hotkeys,none"
[00000010] main interface error: no suitable interface module
[00000001] main libvlc error: interface "hotkeys,none" initialization failed
[00000001] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
[00000011] main interface error: no interface module matched "any"
[00000011] main interface error: no suitable interface module
[00000001] main libvlc error: interface "(null)" initialization failed


any help plz??

O.

Re: Build issues on MinGW + MSYS

Posted: 06 May 2009 22:35
by Jean-Baptiste Kempf
make win32-package-base.

Re: Build issues on MinGW + MSYS

Posted: 07 May 2009 15:45
by _ole_
make win32-package-base.
oops, I forgot to say specifically that my goal is to run the VLC in debugger - and it is. According to the build instruction, if i make the win32-package-base, it will be unusable with the debugger
(http://wiki.videolan.org/Win32Compile, at the bottom)
could you please help me to learn how to run it in debugging mode?
thank you

O.

Re: Build issues on MinGW + MSYS

Posted: 07 May 2009 16:19
by Jean-Baptiste Kempf
make win32-package-base-debug

Re: Build issues on MinGW + MSYS

Posted: 07 May 2009 17:08
by _ole_
thanks, I just noticed that you guys have posted new contribs, I'll go get them and start again;

in the meantime - it says "...Once the compilation is done, you can either run VLC directly from the source tree or you can build self-contained VLC packages with the following make rules:..."
how to run it directly from the source tree??

thanks for the help, I appreciate your prompt responses

O.

Re: Build issues on MinGW + MSYS

Posted: 07 May 2009 17:57
by VLC_help
how to run it directly from the source tree??
AFAIK not possible, because plugins aren't on right place (they are on separate folders) and you can only specify one plugins folder on VLC startup.

Re: Build issues on MinGW + MSYS

Posted: 29 Aug 2009 10:48
by jaredflo
I'm compiling 1.0.1 and I got the same problem, I've been looking where that enable-dirac option and can no longer find it from the latest source i've downloaded. Please Help. Thanks!

Re: Build issues on MinGW + MSYS

Posted: 29 Aug 2009 20:04
by Jean-Baptiste Kempf
You NEED to run make package-win32-base once before running from source folder.

Re: Build issues on MinGW + MSYS

Posted: 25 Aug 2011 08:51
by neerajsharma
Hi
i have successfully compiled the vlc 1.2.0 source code on windows xp
but now when i am trying make package-win32-base command then it is showing an error

***no rule to make target 'make package-win32-base' .stop.

and when executing the command make package-win32-base-zip
then showing the error as follow:

-------------------------------------------------------------------------------------------------------------------------
test -z "/home/NeerajS/vlc/_win32/bin" || /bin/mkdir -p "/home/NeerajS/vlc/_win32/bin"
/bin/install -c cvlc rvlc svlc qvlc '/home/NeerajS/vlc/_win32/bin'
make[3]: Nothing to be done for `install-data-am'.
make[3]: Leaving directory `/home/NeerajS/vlc'
make[2]: Leaving directory `/home/NeerajS/vlc'
make[1]: Leaving directory `/home/NeerajS/vlc'
rm -Rf npapi-vlc
git clone git://git.videolan.org/npapi-vlc.git npapi-vlc
make: git: Command not found
make: *** [stamp-npapi-fetch] Error 127

------------------------------------------------------------------------------

please help me to solve the issue
Regards

Re: Build issues on MinGW + MSYS

Posted: 25 Aug 2011 16:10
by VLC_help
Don't do multipost, it won't help.

Re: Build issues on MinGW + MSYS

Posted: 01 Dec 2011 05:24
by rogerdpack
install git
also it's package-win-base I believe