Page 1 of 1

Compile vlc-0.8.1 on the cygwin has error, help to solve.

Posted: 30 Nov 2004 06:19
by Bill
Hello All: :

I compile vlc-0.8.1 has error on the sygwin. The program can not pass livedotcom. Can you help me? :(

livedotcom.cpp: In function `int Open(vlc_object_t*)':
livedotcom.cpp:251: error: no matching function for call to `RTSPClient::
describeURL(char*&, NULL, int)'
/usr/win32/live.com/liveMedia/include/RTSPClient.hh:52: error: candidates are: char* RTSPClient::describeURL(const char*, AuthRecord*)
livedotcom.cpp: In function `int Control(demux_t*, int, char*)':
livedotcom.cpp:758: warning: unused variable `int i'
livedotcom.cpp: In function `void StreamRead(void*, unsigned int, unsigned int, timeval, unsigned int)':
livedotcom.cpp:961: warning: comparison between signed and unsigned integer expressions
make[4]: *** [liblivedotcom_a-livedotcom.o] Error 1
make[4]: Leaving directory `/home/vlc-0.8.1/modules/demux'
make[3]: *** [all-modules] Error 1
make[3]: Leaving directory `/home/vlc-0.8.1/modules/demux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/vlc-0.8.1/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/vlc-0.8.1'
make: *** [all] Error 2

Best Regards,
Bill

Posted: 30 Nov 2004 09:56
by Sigmund
try upgrading to this contrib package:
ftp://download.videolan.org/pub/videola ... ly.tar.bz2

The same problem!!!

Posted: 30 Nov 2004 16:01
by Bill
Hello:

Thanks Sigmund. I upgraded contrib package. The program did also has error. I tried contrib package from 2004.09.01 to 2004.11.13. It could not work. I think The livedotcom toolchain may recompile. Does Someboby has compile success vlc-0.8.1 on the cygwin. Reply your successful method, Please. Thanks!!! :( :?:

Regards,

Bill

Posted: 30 Nov 2004 16:13
by markfm
That really is a contrib package item. The error is because VLC has a function call to livedotcom with 3 parameters, while the contrib package that you're using only shows 2 parameters accepted.

Gibalou fixed the problem in contrib, it's OK in the latest contrib set, when compiling 081 (or current subversion downloads).

What you may have hit is that sometimes expanding the contrib package doesn't seem to overwrite everything (pre-existing files). I've taken to deleting win32 when I want to install a new one, seems to work well.

-Download the latest contrib.
-Delete the usr/win32 directory (I just do this in Windows Explorer)
-Expand the latest contrib, which should recreate usr/win32, but now with correct, current, files

I also encountered the same problem in Cygwin!

Posted: 06 Dec 2004 14:33
by clock_zhong
So I disabled the livedotcom package, but I still encounted the problem when the building process encountered the linking stage, the error is below:

g++ -mno-cygwin -Wsign-compare -Wsign-compare -Wall -mms-bitfields -pipe -L/usr/win32/lib -o vlc.exe src/vlc-vlc.o lib/libvlc.a share/vlc_win32_rc.o ./modules/misc/memcpy/libmemcpymmx.a ./modules/video_chroma/libi420_rgb_mmx.a ./modules/video_chroma/libi422_yuy2_mmx.a ./modules/video_chroma/libi420_ymga_mmx.a ./modules/video_chroma/libi420_yuy2_mmx.a ./modules/misc/memcpy/libmemcpymmxext.a ./modules/misc/memcpy/libmemcpy3dn.a ./modules/demux/libmkv.a ./modules/codec/ffmpeg/libffmpeg.a -L/usr/local/lib -g -lkernel32 /usr/win32/lib/libiconv.a /usr/win32/lib/libintl.a /usr/win32/lib/libiconv.a -lws2_32 -lnetapi32 -lwinmm -mwindows -L/usr/win32/lib -lz -lmatroska -lebml -lavformat -lz -lavcodec -lz -lfaac -lmp3lame
/usr/win32/lib/libmatroska.a(KaxSegment.o)

(.rdata$_ZTIN7libebml11EbmlElementE+0x
0):KaxSegment.cpp: multiple definition of `typeinfo for libebml::EbmlElement'
./modules/demux/libmkv.a(libmkv_a-mkv.o)(.data$_ZTIN7libebml11EbmlElementE+0x0):
/usr/win32/include/ebml/IOCallback.h: first defined here
/usr/win32/lib/libmatroska.a(KaxSegment.o)(.rdata$_ZTSN7libebml11EbmlElementE+0x
0):KaxSegment.cpp: multiple definition of `typeinfo name for libebml::EbmlElemen
t'
./modules/demux/libmkv.a(libmkv_a-mkv.o)(.text$_ZTSN7libebml11EbmlElementE+0x0):
/usr/win32/include/ebml/IOCallback.h: first defined here
/usr/win32/lib/libebml.a(MemIOCallback.o)(.rdata$_ZTVN7libebml10IOCallbackE+0x0)
:MemIOCallback.cpp: multiple definition of `vtable for libebml::IOCallback'
./modules/demux/libmkv.a(libmkv_a-mkv.o)(.data$_ZTVN7libebml10IOCallbackE+0x0):/
usr/win32/include/ebml/IOCallback.h: first defined here
/usr/win32/lib/libebml.a(MemIOCallback.o)(.rdata$_ZTIN7libebml10IOCallbackE+0x0)
:MemIOCallback.cpp: multiple definition of `typeinfo for libebml::IOCallback'

Who has succeeded in cygwin??

Posted: 06 Dec 2004 15:22
by markfm
I've succeeded on Cygwin, do a compile just about every day.

You need to delete the old usr/win32 directory, and then expand the very latest contrib package, as I said in my earlier post.

Yes, I also just succeed!

Posted: 06 Dec 2004 16:44
by clock_zhong
My problem is only because my GCC version is 3.2.0, but the library is made by GCC3.3.1, so I upgrade my GCC, then all are OK!

Yes, I also just succeed!

Posted: 06 Dec 2004 16:45
by clock_zhong
My problem is only because my GCC version is 3.2.0, but the library is made by GCC3.3.1, so I upgrade my GCC, then all are OK!
My configuration is :
./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-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-toolame --enable-dvdread \
--enable-debug \
--disable-livedotcom