Problem compile 0.9.2 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.
rogerfd
New Cone
New Cone
Posts: 3
Joined: 18 Jun 2008 10:53

Problem compile 0.9.2 with cygwin

Postby rogerfd » 26 Sep 2008 04:28

I tried to build vlc 0.9.2 from source on windows with cygwin, but got the errors:

rm -fr .libs/libvlccore.dll.a
if test "x`/usr/bin/sed 1q ./libvlccore.sym`" = xEXPORTS; then cp ./libvlccore
ym .libs/cygvlccore.dll.def; else echo EXPORTS > .libs/cygvlccore.dll.def; cat
/libvlccore.sym >> .libs/cygvlccore.dll.def; fi
gcc -mno-cygwin -std=gnu99 -shared .libs/cygvlccore.dll.def .libs/libvlccore
a-libvlc.o .libs/libvlccore_la-libvlc-module.o .libs/libvlccore_la-version.o i
erface/.libs/libvlccore_la-interface.o interface/.libs/libvlccore_la-intf_ejec
o interface/.libs/libvlccore_la-interaction.o playlist/.libs/libvlccore_la-thr
d.o playlist/.libs/libvlccore_la-control.o playlist/.libs/libvlccore_la-engine
playlist/.libs/libvlccore_la-sort.o playlist/.libs/libvlccore_la-loadsave.o p
ylist/.libs/libvlccore_la-tree.o playlist/.libs/libvlccore_la-item.o playlist/
ibs/libvlccore_la-search.o playlist/.libs/libvlccore_la-services_discovery.o i
ut/.libs/libvlccore_la-item.o input/.libs/libvlccore_la-access.o input/.libs/l
vlccore_la-clock.o input/.libs/libvlccore_la-control.o input/.libs/libvlccore_
-decoder.o input/.libs/libvlccore_la-decoder_synchro.o input/.libs/libvlccore_
-demux.o input/.libs/libvlccore_la-es_out.o input/.libs/libvlccore_la-input.o
put/.libs/libvlccore_la-meta.o input/.libs/libvlccore_la-stream.o input/.libs/
bvlccore_la-mem_stream.o input/.libs/libvlccore_la-subtitles.o input/.libs/lib
ccore_la-var.o video_output/.libs/libvlccore_la-video_output.o video_output/.l
s/libvlccore_la-vout_pictures.o video_output/.libs/libvlccore_la-video_text.o
deo_output/.libs/libvlccore_la-video_widgets.o video_output/.libs/libvlccore_l
vout_subpictures.o video_output/.libs/libvlccore_la-vout_intf.o audio_output/.
bs/libvlccore_la-common.o audio_output/.libs/libvlccore_la-dec.o audio_output/
ibs/libvlccore_la-filters.o audio_output/.libs/libvlccore_la-input.o audio_out
t/.libs/libvlccore_la-mixer.o audio_output/.libs/libvlccore_la-output.o audio_
tput/.libs/libvlccore_la-intf.o osd/.libs/libvlccore_la-osd.o osd/.libs/libvlc
re_la-osd_text.o osd/.libs/libvlccore_la-osd_widgets.o network/.libs/libvlccor
la-acl.o network/.libs/libvlccore_la-getaddrinfo.o network/.libs/libvlccore_la
o.o network/.libs/libvlccore_la-tcp.o network/.libs/libvlccore_la-udp.o networ
.libs/libvlccore_la-httpd.o network/.libs/libvlccore_la-rootbind.o network/.li
/libvlccore_la-tls.o network/.libs/libvlccore_la-poll.o text/.libs/libvlccore_
-charset.o text/.libs/libvlccore_la-strings.o text/.libs/libvlccore_la-unicode
text/.libs/libvlccore_la-wincp.o text/.libs/libvlccore_la-iso_lang.o misc/.li
/libvlccore_la-md5.o misc/.libs/libvlccore_la-rand.o misc/.libs/libvlccore_la-
ime.o misc/.libs/libvlccore_la-block.o misc/.libs/libvlccore_la-es_format.o mo
les/.libs/libvlccore_la-modules.o modules/.libs/libvlccore_la-cache.o modules/
ibs/libvlccore_la-entry.o modules/.libs/libvlccore_la-os.o misc/.libs/libvlcco
_la-threads.o misc/.libs/libvlccore_la-stats.o misc/.libs/libvlccore_la-cpu.o
sc/.libs/libvlccore_la-action.o config/.libs/libvlccore_la-core.o config/.libs
ibvlccore_la-dirs.o config/.libs/libvlccore_la-chain.o config/.libs/libvlccore
a-file.o config/.libs/libvlccore_la-intf.o config/.libs/libvlccore_la-cmdline.
misc/.libs/libvlccore_la-events.o misc/.libs/libvlccore_la-image.o misc/.libs/
bvlccore_la-messages.o misc/.libs/libvlccore_la-objects.o misc/.libs/libvlccor
la-variables.o misc/.libs/libvlccore_la-error.o misc/.libs/libvlccore_la-updat
o misc/.libs/libvlccore_la-xml.o misc/.libs/libvlccore_la-devices.o extras/.li
/libvlccore_la-libc.o misc/.libs/libvlccore_la-filter_chain.o misc/.libs/libvl
ore_la-win32_specific.o network/.libs/libvlccore_la-winsock.o extras/.libs/lib
ccore_la-getopt.o extras/.libs/libvlccore_la-getopt1.o stream_output/.libs/lib
ccore_la-stream_output.o stream_output/.libs/libvlccore_la-announce.o stream_o
put/.libs/libvlccore_la-sap.o stream_output/.libs/libvlccore_la-sdp.o misc/.li
/libvlccore_la-revision.o -L/usr/win32/lib -lkernel32 -lws2_32 -lnetapi32 -lw
mm /usr/win32/lib/libintl.a /usr/win32/lib/libiconv.a -lmingw32 -mno-cygwin -
une=pentium2 -mms-bitfields -Wl,libvlc_win32_rc.o -o .libs/cygvlccore.dll -Wl,
enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libvlccore.dll.a
Cannot export __vlm_New: symbol not defined
Cannot export vlm_Control: symbol not defined
Cannot export vlm_Delete: symbol not defined
Cannot export vlm_ExecuteCommand: symbol not defined
Cannot export vlm_MessageAdd: symbol not defined
Cannot export vlm_MessageDelete: symbol not defined
Cannot export vlm_MessageNew: symbol not defined
Creating library file: .libs/libvlccore.dll.a
collect2: ld returned 1 exit status
make[4]: *** [libvlccore.la] Error 1
make[4]: Leaving directory `/vlc-0.9.2/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/vlc-0.9.2/src'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/vlc-0.9.2/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/vlc-0.9.2'
make: *** [all] Error 2

enable or disable vlm in config makes no difference

btw: which pre-compiled contrib should I use for VLC 0.9.2 ? I have tried
contrib-20080811-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2 and
contrib-0.8.6e-gcc-3.4.5-only.tar.bz2

Thanks for your help :)

rogerfd
New Cone
New Cone
Posts: 3
Joined: 18 Jun 2008 10:53

Re: Problem compile 0.9.2 with cygwin

Postby rogerfd » 26 Sep 2008 04:33

the compiler I use is

$ gcc -v
Reading specs from /usr/lib/gcc/i686-pc-cygwin/3.4.4/specs
Configured with: /usr/build/package/orig/test.respin/gcc-3.4.4-3/configure --ver
bose --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --libdir=/usr/lib --libe
xecdir=/usr/lib --mandir=/usr/share/man --infodir=/usr/share/info --enable-langu
ages=c,ada,c++,d,f77,pascal,java,objc --enable-nls --without-included-gettext --
enable-version-specific-runtime-libs --without-x --enable-libgcj --disable-java-
awt --with-system-zlib --enable-interpreter --disable-libgcj-debug --enable-thre
ads=posix --enable-java-gc=boehm --disable-win32-registry --enable-sjlj-exceptio
ns --enable-hash-synchronization --enable-libstdcxx-debug
Thread model: posix
gcc version 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)

the config is:

PATH=/usr/win32/bin:$PATH \
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 \
--enable-nls \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--disable-live555 \
--with-xml2-config-path=/usr/win32/bin \
--disable-cddax \
--disable-vcdx \
--disable-goom \
--disable-skins2 \
--enable-wxwidgets \
--with-wx-config-path=/usr/win32/bin \
--enable-mozilla \
--with-mozilla-sdk-path=/usr/win32/gecko-sdk \
--enable-sout \
--disable-vlm \
--disable-httpd \
--disable-dvdnav \
--disable-libcdio \
--disable-libcddb \
--disable-cdda \
--disable-sdl \
--disable-sdl-image \
--disable-vcd \
--disable-dvdread \
--disable-smb \
--disable-cmml \
--disable-alsa \
--disable-opengl \
--enable-png \
--disable-screen \
--disable-mkv \
--disable-mod \
--disable-mpc \
--disable-libtar \
--disable-speex \
--disable-visual \
--disable-daap \
--disable-bonjour \
--disable-gnutls \
--enable-faad \
--disable-vorbis \
--disable-real \
--disable-activex \
--enable-release

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: Problem compile 0.9.2 with cygwin

Postby Jean-Baptiste Kempf » 26 Sep 2008 04:45

enable-vlm.
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: Bing [Bot] and 32 guests