Build issues on MinGW + MSYS

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.
_ole_
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Jan 2004 23:29
Location: West Conshohocken, USA

Build issues on MinGW + MSYS

Postby _ole_ » 05 May 2009 23:07

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

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: Build issues on MinGW + MSYS

Postby Jean-Baptiste Kempf » 05 May 2009 23:14

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

_ole_
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Jan 2004 23:29
Location: West Conshohocken, USA

Re: Build issues on MinGW + MSYS

Postby _ole_ » 06 May 2009 15:45

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.

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: Build issues on MinGW + MSYS

Postby Jean-Baptiste Kempf » 06 May 2009 22:35

make win32-package-base.
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.

_ole_
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Jan 2004 23:29
Location: West Conshohocken, USA

Re: Build issues on MinGW + MSYS

Postby _ole_ » 07 May 2009 15:45

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.

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: Build issues on MinGW + MSYS

Postby Jean-Baptiste Kempf » 07 May 2009 16:19

make win32-package-base-debug
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.

_ole_
Blank Cone
Blank Cone
Posts: 10
Joined: 20 Jan 2004 23:29
Location: West Conshohocken, USA

Re: Build issues on MinGW + MSYS

Postby _ole_ » 07 May 2009 17:08

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.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Build issues on MinGW + MSYS

Postby VLC_help » 07 May 2009 17:57

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.

jaredflo
New Cone
New Cone
Posts: 2
Joined: 29 Aug 2009 04:55

Re: Build issues on MinGW + MSYS

Postby jaredflo » 29 Aug 2009 10:48

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!

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: Build issues on MinGW + MSYS

Postby Jean-Baptiste Kempf » 29 Aug 2009 20:04

You NEED to run make package-win32-base once before running from source folder.
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.

neerajsharma
Blank Cone
Blank Cone
Posts: 16
Joined: 18 Aug 2011 07:48

Re: Build issues on MinGW + MSYS

Postby neerajsharma » 25 Aug 2011 08:51

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

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: Build issues on MinGW + MSYS

Postby VLC_help » 25 Aug 2011 16:10

Don't do multipost, it won't help.

rogerdpack
Big Cone-huna
Big Cone-huna
Posts: 574
Joined: 19 Jul 2008 23:48
Operating System: windows

Re: Build issues on MinGW + MSYS

Postby rogerdpack » 01 Dec 2011 05:24

install git
also it's package-win-base I believe


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 65 guests