Page 1 of 1

vlc-0.8.6h compile error

Posted: 25 Jun 2008 11:20
by fanzj
i compile the vlc with msys + mingw but can't pass:
can anybody help me! thanks.

error:


G:/msys10/bin/sh.exe ../libtool --tag=CXX --mode=link g++ -Wsign-compare -Wall -I/home/Administrator/vlc-0.8.6h/./extras/contrib/include -mms-bitfields -pipe -L/home/Administrator/vlc-0.8.6h/./extras/contrib/lib -o axvlc.dll libaxvlc_a-main.o libaxvlc_a-utils.o libaxvlc_a-olecontrol.o libaxvlc_a-oleinplaceactiveobject.o libaxvlc_a-oleinplaceobject.o libaxvlc_a-oleobject.o libaxvlc_a-persistpropbag.o libaxvlc_a-persiststorage.o libaxvlc_a-persiststreaminit.o libaxvlc_a-provideclassinfo.o libaxvlc_a-connectioncontainer.o libaxvlc_a-objectsafety.o libaxvlc_a-dataobject.o libaxvlc_a-viewobject.o libaxvlc_a-supporterrorinfo.o libaxvlc_a-vlccontrol.o libaxvlc_a-vlccontrol2.o libaxvlc_a-plugin.o libaxvlc_a-axvlc_idl.o axvlc_rc.o \
./axvlc.def \
../src/libvlc.a -shared ../src/libvlc.a `top_builddir=".." ../vlc-config --libs activex vlc builtin` \

/bin/sh: --libs: command not found
g++ -Wsign-compare -Wall -I/home/Administrator/vlc-0.8.6h/./extras/contrib/include -mms-bitfields -pipe -o axvlc.dll libaxvlc_a-main.o libaxvlc_a-utils.o libaxvlc_a-olecontrol.o libaxvlc_a-oleinplaceactiveobject.o libaxvlc_a-oleinplaceobject.o libaxvlc_a-oleobject.o libaxvlc_a-persistpropbag.o libaxvlc_a-persiststorage.o libaxvlc_a-persiststreaminit.o libaxvlc_a-provideclassinfo.o libaxvlc_a-connectioncontainer.o libaxvlc_a-objectsafety.o libaxvlc_a-dataobject.o libaxvlc_a-viewobject.o libaxvlc_a-supporterrorinfo.o libaxvlc_a-vlccontrol.o libaxvlc_a-vlccontrol2.o libaxvlc_a-plugin.o libaxvlc_a-axvlc_idl.o axvlc_rc.o ./axvlc.def -shared -L/home/Administrator/vlc-0.8.6h/./extras/contrib/lib ../src/libvlc.a
libaxvlc_a-main.o: In function `DllUnregisterServer':
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:146: undefined reference to `_UnRegisterTypeLib@20'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:150: undefined reference to `_IID_ICatRegister'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:150: undefined reference to `_CLSID_StdComponentCategoriesMgr'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:150: undefined reference to `_CoCreateInstance@20'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:158: undefined reference to `_CATID_Control'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:158: undefined reference to `_CATID_Control'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:158: undefined reference to `_CATID_Control'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:158: undefined reference to `_CATID_Control'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:158: undefined reference to `_CATID_PersistsToPropertyBag'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:158: undefined reference to `_CATID_PersistsToPropertyBag'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:158: undefined reference to `_CATID_PersistsToPropertyBag'
G:/msys10/home/Administrator/vlc-0.8.6h/activex/main.cpp:158: undefined reference to `_CATID_PersistsToPropertyBag'
........

help me ...

Re: vlc-0.8.6h compile error

Posted: 25 Jun 2008 14:51
by VLC_help
You need activeX? IIRC nobody maintains it ATM so it doesn't compile.

Re: vlc-0.8.6h compile error

Posted: 20 Jul 2008 11:56
by cantinflas
Hello,
I'm having the same problem, only with cygwin.
Being new to VLC, I have several questions.
A. What does this ActiveX do? (and how do I know if need it?)
B. How do I disable it so it would compile?

I've work according to exact instructions on the VLC compiling HOWTO's, and I'm using VLC-0.8.5 Source files.

This is my configure-vlc.sh script:
export PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig

./bootstrap && \
PKG_CONFIG_PATH=/usr/win32/lib/pkgconfig \
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-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--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-live555 --with-live555-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

This is the last few lines from 'make':
libaxvlc_a-main.o: In function `DllUnregisterServer':
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:131: undefined reference to `
_CATID_SafeForInitializing'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:131: undefined reference to `
_CATID_SafeForInitializing'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:131: undefined reference to `
_CATID_SafeForInitializing'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:131: undefined reference to `
_CATID_SafeForInitializing'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:131: undefined reference to `
_CATID_SafeForScripting'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:131: undefined reference to `
_CATID_SafeForScripting'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:131: undefined reference to `
_CATID_SafeForScripting'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:131: undefined reference to `
_CATID_SafeForScripting'
libaxvlc_a-main.o: In function `DllRegisterServer':
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:316: undefined reference to `
_CATID_SafeForInitializing'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:316: undefined reference to `
_CATID_SafeForInitializing'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:316: undefined reference to `
_CATID_SafeForInitializing'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:316: undefined reference to `
_CATID_SafeForInitializing'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:316: undefined reference to `
_CATID_SafeForScripting'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:316: undefined reference to `
_CATID_SafeForScripting'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:316: undefined reference to `
_CATID_SafeForScripting'
/cygdrive/c/VLC/Sources/vlc-0.8.5/activex/main.cpp:316: undefined reference to `
_CATID_SafeForScripting'
collect2: ld returned 1 exit status
make[3]: *** [axvlc.dll] Error 1
make[3]: Leaving directory `/cygdrive/c/VLC/Sources/vlc-0.8.5/activex'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/c/VLC/Sources/vlc-0.8.5/activex'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/VLC/Sources/vlc-0.8.5'
make: *** [all] Error 2

Thanks,

Re: vlc-0.8.6h compile error

Posted: 20 Jul 2008 13:44
by VLC_help
ActiveX is plugin for IE, that allows you to use VLC inside IE, Powerpoint etc. for video playback.

And I suggest you to compile nightlies (unless you MUST have 0.8.5).
http://wiki.videolan.org/Win32CompileCygwinNew

--disable-activex should help.

Re: vlc-0.8.6h compile error

Posted: 20 Jul 2008 15:19
by cantinflas
Thanks,
the 'disable-activex' worked!