Error 126 while compliling with Cygwin

Microsoft Windows specific usage questions
Forum rules
Please post only Windows specific questions in this forum category. If you don't know where to post, please read the different forums' rules. Thanks.
Wild
New Cone
New Cone
Posts: 2
Joined: 09 Oct 2007 14:49

Error 126 while compliling with Cygwin

Postby Wild » 09 Oct 2007 14:56

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

funman
Developer
Developer
Posts: 1159
Joined: 03 Sep 2006 04:03
VLC version: master
Operating System: All of them
Location: Lost, please help me

Re: Error 126 while compliling with Cygwin

Postby funman » 09 Oct 2007 16:15


Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Error 126 while compliling with Cygwin

Postby Jean-Baptiste Kempf » 09 Oct 2007 19:08

and remove moc, uic and rcc to let only uic.exe moc.exe and rcc.exe
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

Wild
New Cone
New Cone
Posts: 2
Joined: 09 Oct 2007 14:49

Re: Error 126 while compliling with Cygwin

Postby Wild » 11 Oct 2007 10:57

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

cashum
New Cone
New Cone
Posts: 5
Joined: 05 Nov 2007 21:54

Re: Error 126 while compliling with Cygwin

Postby cashum » 06 Nov 2007 22:20

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 \

cashum
New Cone
New Cone
Posts: 5
Joined: 05 Nov 2007 21:54

Re: Error 126 while compliling with Cygwin

Postby cashum » 07 Nov 2007 21:08

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?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Google [Bot] and 20 guests