Page 1 of 1

Problem in compiling vlc using cygwin

Posted: 05 May 2009 16:20
by vbalaji_tvr
Hi All,
I used this link as a reference http://wiki.videolan.org/Win32CompileCygwinNew
and tried to compile vlc in windows using their makefile .
In between i encountered following error during compilation

/bin/sh ../../libtool --tag=CC --mode=link gcc -mno-cygwin -std=gnu99`top_src dir="../.." top_builddir="../.." ../../vlc-config --cflags plugin
libzvbi_plugin.la` -mms-bitfields -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith
-Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes
-Werror-implicit-
function-declaration -rpath '/usr/local/lib/vlc/codec' -avoid-version -module -export-symbol-regex ^vlc_entry -shrext .dll -no-undefined
`top_srcdir="../.." top
_builddir="../.." ../../vlc-config --ldflags plugin libzvbi_plugin.la`
-L/usr/win32/lib -o libzvbi_plugin.la libzvbi_plugin_la-zvbi.lo
`top_srcdir="../.." top
_builddir="../.." ../../vlc-config -libs plugin libzvbi_plugin.la`
../../src/libvlccore.la ../../compat/libcompat.la -lmingw32

*** Warning: Linking the shared library libzvbi_plugin.la against the
*** static library /usr/win32/lib/libiconv.a is not portable!
libtool: link: rm -fr .libs/libzvbi_plugin.dll.a
libtool: link: gcc -mno-cygwin -std=gnu99 -shared
.libs/libzvbi_plugin_la-zvbi.o -Wl,--whole-archive ../../compat/.libs/libcompat.a
-Wl,--no-whole-archive -L
/usr/win32/lib /usr/win32/lib/libzvbi.a -lm /usr/win32/lib/libintl.a
-lpthreadGC
2 -lpng -lz ../../src/.libs/libvlccore.dll.a -lkernel32 -lws2_32
-lnetapi32 -lwinmm /usr/win32/lib/libiconv.a -lmingw32 -mno-cygwin -mtune=pentium2-mms-bitfields -o .libs/libzvbi_plugin.dll -Wl,--enable-auto-image-base -Xlinker --out-im
*** static library /usr/win32/lib/libiconv.a is not portable!
libtool: link: rm -fr .libs/libzvbi_plugin.dll.a
libtool: link: gcc -mno-cygwin -std=gnu99 -shared
.libs/libzvbi_plugin_la-zvbi
o -Wl,--whole-archive ../../compat/.libs/libcompat.a
-Wl,--no-whole-archive -
/usr/win32/lib /usr/win32/lib/libzvbi.a -lm /usr/win32/lib/libintl.a
-lpthreadG2 -lpng -lz ../../src/.libs/libvlccore.dll.a -lkernel32 -lws2_32 -lnetapi32 -lwnmm /usr/win32/lib/libiconv.a -lmingw32 -mno-cygwin -mtune=pentium2
-mms-bitfilds -o .libs/libzvbi_plugin.dll -Wl,--enable-auto-image-base -Xlinker --out-iplib -Xlinker .libs/libzvbi_plugin.dll.a
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x243): undefined reference to `__mp__pthread_once'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x297): undefined reference to `__mp__pthread_mutex_init'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x521): undefined reference to `__mp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x534): undefined reference to `__mp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x558): undefined reference to `__ mp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x5a5): undefined reference to `__mp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0xaec): undefined reference to `__mp__pthread_mutex_trylock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0xb61): undefined reference to `__mp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0xc62): undefined reference to `__mp__pthread_mutex_destroy'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0xcec): undefined reference to `__mp__pthread_mutex_trylock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0xd5f): undefined reference to `__mp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0xedd): undefined reference to `__mp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0xf30): undefined reference to `__mp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x123c): undefined reference to `_imp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x124c): undefined reference to `_imp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x128a): undefined reference to `_imp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x12cf): undefined reference to `_imp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x1344): undefined reference to `_imp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x1362): undefined reference to `_imp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x144e): undefined reference to `_imp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x146d): undefined reference to `_imp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(vbi.o):vbi.c:(.text+0x1498): undefined reference to `_imp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(packet.o):packet.c:(.text+0x6252): undefined reference to `__imp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(packet.o):packet.c:(.text+0x6d84): undefined reference to `__imp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(packet.o):packet.c:(.text+0x6d9f): undefined reference to `__imp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(packet.o):packet.c:(.text+0x6dc0): undefined reference to `__imp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(packet.o):packet.c:(.text+0x6dd3): undefined reference to `__imp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(caption.o):caption.c:(.text+0x9c): undefined reference to `__imp__pthread_mutex_lock'
/usr/win32/lib/libzvbi.a(caption.o):caption.c:(.text+0x10a): undefined reference to `__imp__pthread_mutex_unlock'
/usr/win32/lib/libzvbi.a(caption.o):caption.c:(.text+0x171): undefined reference to `__imp__pthread_mutex_destroy'
/usr/win32/lib/libzvbi.a(caption.o):caption.c:(.text+0x54b): undefined reference to `__imp__pthread_mutex_init'
/usr/win32/lib/libzvbi.a(caption.o):caption.c:(.text+0xd58): undefined reference to `__imp__pthread_mutex_unlock'
.............................
Creating library file: .libs/libzvbi_plugin.dll.a
collect2: ld returned 1 exit status
make[5]: *** [libzvbi_plugin.la] Error 1
make[5]: Leaving directory `/cygdrive/c/VLC/vlc/modules/codec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/VLC/vlc/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/VLC/vlc/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/VLC/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/VLC/vlc'
make: *** [all] Error 2
Sorry for the Length message.Anway desperate to find the solution .
Thanks in anticipation
Balaji V

Re: Problem in compiling vlc using cygwin

Posted: 05 May 2009 16:29
by Jean-Baptiste Kempf
disable-zvbi.

Re: Problem in compiling vlc using cygwin

Posted: 08 Jan 2010 03:28
by scott4u
disable-zvbi.
I want VBI working. So I set enable-zvbi on configuration and have the same problems with the first post guy.
Can u tell how to make it running after compiled on cygwin?
I am using the contrib-1.0.0 and vlc-1.0.4.
Thanks.

Re: Problem in compiling vlc using cygwin

Posted: 08 Jan 2010 14:18
by Jean-Baptiste Kempf
OK, try to take a newer contrib, then.

Re: Problem in compiling vlc using cygwin

Posted: 14 Jan 2010 11:14
by scott4u
OK, try to take a newer contrib, then.
Hi.
I have downloaded the http://download.videolan.org/pub/videol ... ly.tar.bz2.
And I want to know:
When I compile the vlc, whether I should use gcc version 4.2.1 to matched with this contribs ?
I have using the gcc 3.4.4 , vlc-1.0.4 and contribs-1.0.2-gcc-4.2.1-sjlj-runtime-3.15.2 to compile my vlc under cygwin. But there is still has something wrong.

Thanks.