Page 1 of 1

Error 126 while compliling with Cygwin

Posted: 09 Oct 2007 14:56
by Wild
Hi all

I tried to compile VLC and got following error(s):
Making all in qt4
make[5]: Entering directory `/cygdrive/c/vlc/vlc-trunk/modules/gui/qt4'
/usr/win32/bin/moc -o main_interface.moc.cpp main_interface.hpp
/usr/win32/bin/moc: /usr/win32/bin/moc: cannot execute binary file
make[5]: *** [main_interface.moc.cpp] Error 126
make[5]: Leaving directory `/cygdrive/c/vlc/vlc-trunk/modules/gui/qt4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/vlc/vlc-trunk/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/vlc/vlc-trunk/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/vlc/vlc-trunk/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/vlc/vlc-trunk'
make: *** [all] Error 2
May you help me solving this problem? I also found another topic with a similar problem but this solution did not help.

Thanks for your help

Wild

Re: Error 126 while compliling with Cygwin

Posted: 09 Oct 2007 16:15
by funman

Re: Error 126 while compliling with Cygwin

Posted: 09 Oct 2007 19:08
by Jean-Baptiste Kempf
and remove moc, uic and rcc to let only uic.exe moc.exe and rcc.exe

Re: Error 126 while compliling with Cygwin

Posted: 11 Oct 2007 10:57
by Wild
Hi

I tried everything like you told me but I still get following error(s):
g++: .libs/libvlc_la-libvlc.o: No such file or directory
g++: .libs/libvlc_la-libvlc-common.o: No such file or directory
g++: .libs/libvlc_la-libvlc-module.o: No such file or directory
make[3]: *** [libvlc.la] Error 1
make[3]: Leaving directory `/cygdrive/c/vlc/vlc-trunk/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/cygdrive/c/vlc/vlc-trunk/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/vlc/vlc-trunk'
make: *** [all] Error 2
Hope you may help me...

Thanks a lot

Wild

Re: Error 126 while compliling with Cygwin

Posted: 06 Nov 2007 22:20
by cashum
I've experienced the same string of issues trying to compile using Cygwin for Win32. I am stuck at the exact same spot. Do I need to go back to a previous release in order to get this to compile?? I'm using the step by step instructions provided in (http://wiki.videolan.org/Win32CompileCygwin) and I am not tinkering with other compiles - just VLC. I'm using the following contrib package: contrib-20070530-win32-bin-gcc-3.4.5-only.tar.bz2

Here's my configure-vlc.sh (notice my --enable-dca flag as I'm trying to compile the 0.9.0 release):

CONTRIB_TREE=/usr/win32
PATH=${CONTRIB_TREE}/bin:$PATH \
./bootstrap && \
CPPFLAGS="-I${CONTRIB_TREE}/include -I${CONTRIB_TREE}/include/ebml" \
LDFLAGS=-L${CONTRIB_TREE}/lib \
PKG_CONFIG_LIBDIR=${CONTRIB_TREE}/lib/pkgconfig \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--host=i686-pc-mingw32 \
--enable-sdl --with-sdl-config-path=${CONTRIB_TREE}/bin --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=${CONTRIB_TREE}/bin \
--with-freetype-config-path=${CONTRIB_TREE}/bin \
--with-fribidi-config-path=${CONTRIB_TREE}/bin \
--enable-live555 --with-live555-tree=${CONTRIB_TREE}/live.com \
--enable-caca --with-caca-config-path=${CONTRIB_TREE}/bin \
--with-xml2-config-path=${CONTRIB_TREE}/bin \
--with-dvdnav-config-path=${CONTRIB_TREE}/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--disable-gnomevfs \
--enable-dca \
--disable-optimizations \
--enable-debug \

Re: Error 126 while compliling with Cygwin

Posted: 07 Nov 2007 21:08
by cashum
I downloaded the latest vlc-trunk using svn (Subversion) today (which was 22980) and got it to compile cleanly. It created a 0.9.0 vlc.exe (that is pretty buggy), but I'm now more focused on the ActiveX control "axvlc.dd" which I can't register on Windows XP. I get the following error message when I run "regsvr32 axvlc.dll" from a windows cmd prompt...

axvlc.dll was loaded, but the DllRegisterServer entry point was not found.
This file can not be registered.

...Help?