Page 1 of 1

vlc compliation error

Posted: 05 Dec 2005 11:27
by Guest
i encounted follow error when i compile the vlc as described in Install.win32

plate<true, 0> >::allocate(unsigned int)]+0x1d): undefined reference to `std::__
default_alloc_template<true, 0>::allocate(unsigned int)'
/usr/win32/lib/libmatroska.a(KaxCluster.o):KaxCluster.cpp:(.text$_ZNSt14__simple
_allocIPN11libmatroska12KaxBlockBlobESt24__default_alloc_templateILb1ELi0EEE10de
allocateEPS2_j[std::__simple_alloc<libmatroska::KaxBlockBlob*, std::__default_al
loc_template<true, 0> >::deallocate(libmatroska::KaxBlockBlob**, unsigned int)]+
0x1d): undefined reference to `std::__default_alloc_template<true, 0>::deallocat
e(void*, unsigned int)'
/usr/win32/lib/libmatroska.a(KaxCluster.o):KaxCluster.cpp:(.text$_ZNSt14__simple
_allocIPN7libebml11EbmlElementESt24__default_alloc_templateILb1ELi0EEE8allocateE
j[std::__simple_alloc<libebml::EbmlElement*, std::__default_alloc_template<true,
0> >::allocate(unsigned int)]+0x1d): undefined reference to `std::__default_all
oc_template<true, 0>::allocate(unsigned int)'
/usr/win32/lib/libmatroska.a(KaxCluster.o):KaxCluster.cpp:(.text$_ZNSt14__simple
_allocIPN7libebml11EbmlElementESt24__default_alloc_templateILb1ELi0EEE10dealloca
teEPS2_j[std::__simple_alloc<libebml::EbmlElement*, std::__default_alloc_templat
e<true, 0> >::deallocate(libebml::EbmlElement**, unsigned int)]+0x1d): undefined
reference to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigne
d int)'
/usr/win32/lib/libmatroska.a(KaxBlock.o):KaxBlock.cpp:(.text$_ZNSt14__simple_all
ocIPN11libmatroska10DataBufferESt24__default_alloc_templateILb1ELi0EEE10dealloca
teEPS2_j[std::__simple_alloc<libmatroska::DataBuffer*, std::__default_alloc_temp
late<true, 0> >::deallocate(libmatroska::DataBuffer**, unsigned int)]+0x1d): und
efined reference to `std::__default_alloc_template<true, 0>::deallocate(void*, u
nsigned int)'
/usr/win32/lib/libmatroska.a(KaxBlock.o):KaxBlock.cpp:(.text$_ZNSt14__simple_all
ocIiSt24__default_alloc_templateILb1ELi0EEE10deallocateEPij[std::__simple_alloc<
int, std::__default_alloc_template<true, 0> >::deallocate(int*, unsigned int)]+0
x1d): undefined reference to `std::__default_alloc_template<true, 0>::deallocate
(void*, unsigned int)'
/usr/win32/lib/libmatroska.a(KaxBlock.o):KaxBlock.cpp:(.text$_ZNSt14__simple_all
ocIPN11libmatroska10DataBufferESt24__default_alloc_templateILb1ELi0EEE8allocateE
j[std::__simple_alloc<libmatroska::DataBuffer*, std::__default_alloc_template<tr
ue, 0> >::allocate(unsigned int)]+0x1d): undefined reference to `std::__default_
alloc_template<true, 0>::allocate(unsigned int)'
/usr/win32/lib/libmatroska.a(KaxBlock.o):KaxBlock.cpp:(.text$_ZNSt14__simple_all
ocIiSt24__default_alloc_templateILb1ELi0EEE8allocateEj[std::__simple_alloc<int,
std::__default_alloc_template<true, 0> >::allocate(unsigned int)]+0x1d): undefin
ed reference to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'

/usr/win32/lib/libebml.a(EbmlMaster.o):EbmlMaster.cpp:(.text$_ZNSt14__simple_all
ocISsSt24__default_alloc_templateILb1ELi0EEE10deallocateEPSsj[std::__simple_allo
c<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::_
_default_alloc_template<true, 0> >::deallocate(std::basic_string<char, std::char
_traits<char>, std::allocator<char> >*, unsigned int)]+0x1d): undefined referenc
e to `std::__default_alloc_template<true, 0>::deallocate(void*, unsigned int)'
/usr/win32/lib/libebml.a(EbmlMaster.o):EbmlMaster.cpp:(.text$_ZNSt14__simple_all
ocISsSt24__default_alloc_templateILb1ELi0EEE8allocateEj[std::__simple_alloc<std:
:basic_string<char, std::char_traits<char>, std::allocator<char> >, std::__defau
lt_alloc_template<true, 0> >::allocate(unsigned int)]+0x1d): undefined reference
to `std::__default_alloc_template<true, 0>::allocate(unsigned int)'
collect2: ld returned 1 exit status
make[2]: *** [vlc.exe] Error 1
make[2]: Leaving directory `/cygdrive/d/work/projects/video/VLC/vlc-0.8.2'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/d/work/projects/video/VLC/vlc-0.8.2'
make: *** [all] Error 2

thanks for your help!

Posted: 05 Dec 2005 13:03
by xtophe
Which version of GCC ?

Posted: 06 Dec 2005 02:47
by tmncyc
$ gcc --version
gcc (GCC) 3.4.4 (cygming special) (gdc 0.12, using dmd 0.125)
Copyright (C) 2004 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Posted: 06 Dec 2005 03:32
by tmncyc
Xtophe, Thanks for your replay.

follow the configure command:
./bootstrap && \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--disable-sdl --disable-gtk \
--enable-nls \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \
--with-wx-config-path=/usr/win32/bin \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-livedotcom --with-livedotcom-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--enable-debug


and i also get error message that ffmpeg not found:
Could not find ffmpeg on your system: you may get it from http://ffmpeg.sf.net/ (cvs version is recommended). Alternatively you can use --disable-ffmpeg to disable the ffmpeg plugins.

i guest ffmpeg didn't be installed well or ffmpeg library incorrect. so i get the latest of ffmpeg from CVS, but i didn't make ffmpeg successful.

currently, i use contrib-20050513-win32-bin-gcc3.3.1-only.tar.bz2,
and i have tried contrib-20040902-win32-bin-gcc3.3.1-only.tar.bz2
, contrib-20051104-win32-bin-gcc3.3.1-only.tar.bz2
both of them are fail.

thanks for anybody help me to resolve it.