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