VLC 0.9.6 static build 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.
andreyk07
New Cone
New Cone
Posts: 6
Joined: 25 Apr 2008 17:10

VLC 0.9.6 static build with cygwin

Postby andreyk07 » 25 Nov 2008 14:46

Hello,

I'm trying to build static version of VLC (so that all modules are built-in) using following configuration:

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 \
--prefix=/home/ak/pak/vlc-0.9.6.bak1/build \
--host=i686-pc-mingw32 \
--enable-sdl --with-sdl-config-path=${CONTRIB_TREE}/bin --disable-gtk \
--enable-static \
--disable-shared \
--enable-nls \
--disable-qt4 \
--disable-skins2 \
--disable-wince \
--disable-opie \
--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 \
--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 \
--enable-release \
--enable-activex \


There are following link errors as a result:

/bin/sh ../libtool --tag=CC --mode=link gcc -mno-cygwin -std=gnu99 `top_builddir=".." ../vlc-config --cflags vlc` -mms-bitfields -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes `top_builddir=".." ../vlc-config --ldflags vlc` -L/usr/win32/lib -o vlc.exe vlc-winvlc.o ../src/libvlc.la ../src/libvlccore.la -L/usr/win32/lib -lintl -L/usr/win32/lib -liconv `top_builddir=".." ../vlc-config -libs vlc` vlc_win32_rc.o -lmingw32
libtool: link: gcc -mno-cygwin -std=gnu99 -I/home/ak/pak/vlc-0.9.6.bak1/build/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DMODULE_NAME=vlc -DMODULE_NAME_IS_vlc -DMODULE_STRING=\"vlc\" -O3 -ffast-math -funroll-loops -mtune=pentium2 -fomit-frame-pointer -mms-bitfields -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -mwindows -o vlc.exe vlc-winvlc.o vlc_win32_rc.o -L/usr/win32/lib ../src/.libs/libvlc.a /home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a ../src/.libs/libvlccore.a -lkernel32 -lws2_32 -lnetapi32 -lwinmm /usr/win32/lib/libintl.a /usr/win32/lib/libiconv.a -lmingw32
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x104e): undefined reference to `_vlc_entry__a52'
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x105a): undefined reference to `_vlc_entry__a52tofloat32'
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x1066): undefined reference to `_vlc_entry__a52tospdif'
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x1072): undefined reference to `_vlc_entry__access_filter_bandwidth'
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x107e): undefined reference to `_vlc_entry__access_filter_dump'
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x108a): undefined reference to `_vlc_entry__access_filter_record'
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x1096): undefined reference to `_vlc_entry__access_filter_timeshift'

... other modules ...

/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x1882): undefined reference to `_vlc_entry__x264'
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x188e): undefined reference to `_vlc_entry__xtag'
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x189a): undefined reference to `_vlc_entry__yuy2_i420'
/home/ak/pak/vlc-0.9.6.bak1/src/.libs/libvlccore.a(libvlccore_la-modules.o):modules.c:(.text+0x18ab): undefined reference to `_vlc_entry__yuy2_i422'
collect2: ld returned 1 exit status
make[2]: *** [vlc.exe] Error 1
make[2]: Leaving directory `/home/ak/pak/vlc-0.9.6.bak1/bin'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ak/pak/vlc-0.9.6.bak1'
make: *** [all] Error 2

What is wrong?

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: VLC 0.9.6 static build with cygwin

Postby Jean-Baptiste Kempf » 25 Nov 2008 22:54

You cannot do static in 0.9.6. In 0.8.6 it didn't work correctly, now it doesn't work at all.
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.


Return to “VLC media player for Windows Troubleshooting”

Who is online

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