How to compile on Windows using 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.
itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

How to compile on Windows using Cygwin

Postby itbe » 08 Oct 2008 23:09

Is there a new version for 0.9.2/4?

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 09 Oct 2008 10:54

Can somebody please help with this question

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

Re: How to compile on Windows using Cygwin

Postby Jean-Baptiste Kempf » 09 Oct 2008 16:01

Like all versions... It hasn't changed.
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.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: How to compile on Windows using Cygwin

Postby VLC_help » 09 Oct 2008 19:55


itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 09 Oct 2008 23:49

I found few issues running through the instructions:

1) Cygwin packages, expat is not under devel category
2)In Bootstrap section - modify AM_GNU_GETTEXT_VERSION[0.17] with AM_GNU_GETTEXT_VERSION[0.15]
3)I got this error in the ./bootstrap process:
+ rm -f po/Makevars.template ABOUT-NLS
+ echo
+ mv -f INSTALL.git INSTALL
+ patch -sfN -p1
./bootstrap: line 116: po/makefile-qt4.patch: No such file or directory

Is it OK or not?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: How to compile on Windows using Cygwin

Postby VLC_help » 10 Oct 2008 16:25

If bootstrap stops to error message, it usually isn't finished. And yes, expat has moved to under Libs, I fixed this to wiki.
EDIT:
I just did git bootstrap and it works fine. No .po stuff in my log, only

Code: Select all

modules/gui/qt4/Modules.am:68: variable `res_DEPENDENCIES' is defined but no program or modules/gui/qt4/Modules.am:68: library has `res' as canonic name (possible typo)
Successfully bootstrapped should be the last line.

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 10 Oct 2008 19:56

Did you tryed it with the latest Cygwin and source 0.9.4 and contrib-20080702-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz ?

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 11 Oct 2008 01:38

Did you tryed it with the latest Cygwin and source 0.9.4 and contrib-20080702-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz ?

This is what I got from ./bootstrap:
$ ./bootstrap
+ ACLOCAL_ARGS='-I m4 '
+ test -d extras/contrib/bin
++ uname -s
+ test .CYGWIN_NT-5.1 = .Darwin
+ pkg-config --version
+ PKGCONFIG=yes
+ export AUTOPOINT
+ test ''
+ AUTOPOINT=autopoint
+ autopoint --dry-run --force
+ set +x
generating modules/**/Makefile.am
...........................................................................
+ echo
+ echo
+ cp -f INSTALL INSTALL.git
+ autoreconf --install --force --verbose -I m4
autoreconf-2.61: Entering directory `.'
autoreconf-2.61: running: autopoint --force
Copying file ABOUT-NLS
Copying file po/Makevars.template
autoreconf-2.61: running: aclocal --force -I m4
autoreconf-2.61: configure.ac: tracing
autoreconf-2.61: running: libtoolize --copy --force
Putting files in AC_CONFIG_AUX_DIR, `autotools'.
autoreconf-2.61: running: /usr/bin/autoconf-2.61 --include=m4 --force
autoreconf-2.61: running: /usr/bin/autoheader-2.61 --include=m4 --force
autoreconf-2.61: running: automake --add-missing --copy --force-missing
autoreconf-2.61: Leaving directory `.'
+ rm -f po/Makevars.template ABOUT-NLS
+ echo
+ mv -f INSTALL.git INSTALL
+ patch -sfN -p1
./bootstrap: line 116: po/makefile-qt4.patch: No such file or directory
+ true
+ rm -f vlc-config.in vlc-config
+ rm -f src/misc/modules_builtin.h
+ rm -f stamp-builtin 'stamp-h*' mozilla/stamp-pic
+ set +x
Successfully bootstrapped
Please help

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

Re: How to compile on Windows using Cygwin

Postby Jean-Baptiste Kempf » 11 Oct 2008 12:23

Successfully bootstrapped
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.

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 11 Oct 2008 18:23

OK, I ran configure and got few errors:
1)configure: WARNING: not using the libs in extras/contrib as it is not the same host
2)configure: error: Your version of liveMedia is too old: you may get a more recent one from http://www.live555.com/liveMedia.

Is it OK to proceed or it is critical?
checking for i686-pc-mingw32-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-mingw32-strip... strip
checking for i686-pc-mingw32-ar... no
checking for ar... ar
checking for i686-pc-mingw32-ld... no
checking for ld... ld
checking for i686-pc-mingw32-dlltool... no
checking for dlltool... dlltool
checking for an ANSI C-conforming const... yes
checking for inline... inline
checking for C/C++ restrict keyword... restrict
checking for libs in extras/contrib... no
configure: WARNING: not using the libs in extras/contrib as it is not the same host
checking for i686-pc-mingw32-windres... no
checking for windres... windres
checking for a sed that does not truncate output... /usr/bin/sed
checking for ld used by gcc -mno-cygwin -std=gnu99... ld
checking if the linker (ld) is GNU ld... yes
checking for ld option to reload object files... -r
checking for BSD-compatible nm... nm
checking whether ln -s works... yes
checking how to recognize dependent libraries... (cached) pass_all
checking for i686-pc-mingw32-dlltool... dlltool
checking for i686-pc-mingw32-as... no
checking for as... as
checking for i686-pc-mingw32-objdump... no
checking for objdump... objdump
checking dlfcn.h usability... no
checking dlfcn.h presence... no
checking for dlfcn.h... no
checking how to run the C++ preprocessor... g++ -mno-cygwin -E
checking the maximum length of command line arguments... 8192
checking command to parse nm output from gcc -mno-cygwin -std=gnu99 object... ok
checking for objdir... .libs
checking for i686-pc-mingw32-ar... ar
checking for i686-pc-mingw32-ranlib... ranlib
checking for i686-pc-mingw32-strip... (cached) strip
checking if gcc -mno-cygwin -std=gnu99 supports -fno-rtti -fno-exceptions... no
checking for gcc -mno-cygwin -std=gnu99 option to produce PIC... -DDLL_EXPORT
checking if gcc -mno-cygwin -std=gnu99 PIC flag -DDLL_EXPORT works... yes
checking if gcc -mno-cygwin -std=gnu99 static flag -static works... yes
checking if gcc -mno-cygwin -std=gnu99 supports -c -o file.o... yes
checking whether the gcc -mno-cygwin -std=gnu99 linker (ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++ -mno-cygwin... ld
checking if the linker (ld) is GNU ld... yes
checking whether the g++ -mno-cygwin linker (ld) supports shared libraries... yes
checking for g++ -mno-cygwin option to produce PIC... -DDLL_EXPORT
checking if g++ -mno-cygwin PIC flag -DDLL_EXPORT works... yes
checking if g++ -mno-cygwin static flag -static works... yes
checking if g++ -mno-cygwin supports -c -o file.o... yes
checking whether the g++ -mno-cygwin linker (ld) supports shared libraries... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking whether NLS is requested... yes
checking for msgfmt... /usr/bin/msgfmt
checking for gmsgfmt... /usr/bin/msgfmt
checking for xgettext... /usr/bin/xgettext
checking for msgmerge... /usr/bin/msgmerge
checking for ld used by GCC... ld
checking if the linker (ld) is GNU ld... yes
checking for shared library run path origin... done
checking for CFPreferencesCopyAppValue... no
checking for CFLocaleCopyCurrent... no
checking for GNU gettext in libc... no
checking for iconv... yes
checking how to link with libiconv... /usr/win32/lib/libiconv.a
checking for GNU gettext in libintl... yes
checking whether to use NLS... yes
checking where the gettext function comes from... external libintl
checking how to link with libintl... /usr/win32/lib/libintl.a /usr/win32/lib/libiconv.a
checking for iconv... (cached) yes
checking how to link with libiconv... /usr/win32/lib/libiconv.a
checking for iconv declaration...
extern size_t iconv (iconv_t cd, const char * *inbuf, size_t *inbytesle
ft, char * *outbuf, size_t *outbytesleft);
checking for opendir in -lmingwex... yes
checking for opendir in -lmingw32... yes
checking if $CC accepts -mms-bitfields... yes
checking if $CXX accepts -fvtable-thunks... no
checking for shared objects suffix... .dll
checking for gettimeofday... yes
checking for strtod... yes
checking for strtol... yes
checking for strtof... yes
checking for strtoll... yes
checking for strtoull... yes
checking for strsep... no
checking for isatty... yes
checking for vasprintf... no
checking for asprintf... no
checking for swab... yes
checking for sigrelse... no
checking for getpwuid_r... no
checking for memalign... no
checking for posix_memalign... no
checking for if_nametoindex... no
checking for atoll... yes
checking for getenv... yes
checking for putenv... yes
checking for setenv... no
checking for gmtime_r... no
checking for ctime_r... no
checking for localtime_r... no
checking for lrintf... yes
checking for daemon... no
checking for scandir... no
checking for fork... no
checking for bsearch... yes
checking for lstat... no
checking for strlcpy... no
checking for strdup... yes
checking for strndup... no
checking for strnlen... no
checking for atof... yes
checking for lldiv... yes
checking for posix_fadvise... no
checking for posix_madvise... no
checking for uselocale... no
checking for strcasecmp... yes
checking for strncasecmp... yes
checking for strcasestr... no
checking for stristr... no
checking for working alloca.h... no
checking for alloca... yes
checking for mmap... no
checking for setlocale... yes
checking langinfo.h usability... no
checking langinfo.h presence... no
checking for langinfo.h... no
checking for nl_langinfo... no
checking for nl_langinfo and CODESET... no
checking for connect... no
checking for connect in -lsocket... no
checking for send... no
checking for send in -lsocket... no
checking for gethostbyname... no
checking for gethostbyname in -lnsl... no
checking for gethostbyname in -lbind... no
checking zlib.h usability... yes
checking zlib.h presence... yes
checking for zlib.h... yes
checking for socklen_t in sys/socket.h... yes
checking for struct sockaddr_storage... yes
checking for library containing getaddrinfo... no
checking for getnameinfo... no
checking for gai_strerror... no
checking for struct addrinfo... yes
checking for va_copy... yes
checking for __va_copy... yes
checking for inet_aton... no
checking for inet_aton in -lresolv... no
checking mach-o/dyld.h usability... no
checking mach-o/dyld.h presence... no
checking for mach-o/dyld.h... no
checking dl.h usability... no
checking dl.h presence... no
checking for dl.h... no
checking for shl_load... no
checking for dld_link in -ldld... no
checking for main in -lkernel32... yes
checking for strncasecmp in strings.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking time.h usability... yes
checking time.h presence... yes
checking for time.h... yes
checking errno.h usability... yes
checking errno.h presence... yes
checking for errno.h... yes
checking for stdint.h... (cached) yes
checking stdbool.h usability... yes
checking stdbool.h presence... yes
checking for stdbool.h... yes
checking getopt.h usability... yes
checking getopt.h presence... yes
checking for getopt.h... yes
checking for strings.h... (cached) yes
checking for inttypes.h... (cached) yes
checking sys/int_types.h usability... no
checking sys/int_types.h presence... no
checking for sys/int_types.h... no
checking wchar.h usability... yes
checking wchar.h presence... yes
checking for wchar.h... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking sys/sockio.h usability... no
checking sys/sockio.h presence... no
checking for sys/sockio.h... no
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for sys/types.h... (cached) yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking sys/times.h usability... no
checking sys/times.h presence... no
checking for sys/times.h... no
checking sys/ioctl.h usability... no
checking sys/ioctl.h presence... no
checking for sys/ioctl.h... no
checking for sys/stat.h... (cached) yes
checking xlocale.h usability... no
checking xlocale.h presence... no
checking for xlocale.h... no
checking arpa/inet.h usability... no
checking arpa/inet.h presence... no
checking for arpa/inet.h... no
checking netinet/in.h usability... no
checking netinet/in.h presence... no
checking for netinet/in.h... no
checking netinet/udplite.h usability... no
checking netinet/udplite.h presence... no
checking for netinet/udplite.h... no
checking for net/if.h... no
checking whether time.h and sys/time.h may both be included... yes
checking for ssize_t... yes
checking for library containing poll... no
checking dirent.h usability... yes
checking dirent.h presence... yes
checking for dirent.h... yes
checking for timespec in sys/time.h... no
checking for X... no
checking for i686-pc-mingw32-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for ntohl in sys/param.h... no
checking if gcc -mno-cygwin -std=gnu99 accepts -Wall... yes
checking if gcc -mno-cygwin -std=gnu99 accepts -Wextra... yes
checking if gcc -mno-cygwin -std=gnu99 accepts -Wsign-compare... yes
checking if gcc -mno-cygwin -std=gnu99 accepts -Wundef... yes
checking if gcc -mno-cygwin -std=gnu99 accepts -Wpointer-arith... yes
checking if gcc -mno-cygwin -std=gnu99 accepts -Wbad-function-cast... yes
checking if gcc -mno-cygwin -std=gnu99 accepts -Wcast-align... yes
checking if gcc -mno-cygwin -std=gnu99 accepts -Wwrite-strings... yes
checking if gcc -mno-cygwin -std=gnu99 accepts -Wmissing-prototypes... yes
checking if gcc -mno-cygwin -std=gnu99 accepts -Wvolatile-register-var... no
checking if gcc -mno-cygwin -std=gnu99 accepts -pipe... yes
checking if $CC accepts -Os... yes
checking if $CC accepts -O3... yes
checking if $CC accepts -O2... yes
checking if $CC accepts -O0... yes
checking if $CC accepts -ffast-math... yes
checking if $CC accepts -funroll-loops... yes
checking if $CC accepts -fomit-frame-pointer... yes
checking if $CC accepts -bundle -undefined error... no
checking __attribute__ ((aligned ())) support... 16
checking for __attribute__((packed))... yes
checking execinfo.h usability... no
checking execinfo.h presence... no
checking for execinfo.h... no
checking for backtrace... no
checking if gcc -mno-cygwin -std=gnu99 groks MMX intrinsics... yes
checking if gcc -mno-cygwin -std=gnu99 groks MMX inline assembly... yes
checking if gcc -mno-cygwin -std=gnu99 groks MMX EXT inline assembly... yes
checking if gcc -mno-cygwin -std=gnu99 groks SSE2 intrinsics... yes
checking if gcc -mno-cygwin -std=gnu99 groks SSE inline assembly... yes
checking if gcc -mno-cygwin -std=gnu99 groks SSE2 inline assembly... yes
checking if gcc -mno-cygwin -std=gnu99 groks 3D Now! inline assembly... yes
checking whether gcc -mno-cygwin -std=gnu99 accepts -mtune=pentium2... yes
checking for LUA... no
configure: WARNING: lua5.1 not found, trying lua >= 5.1 instead
checking for LUA... yes
checking proxy.h usability... no
checking proxy.h presence... no
checking for proxy.h... no
checking for liveMedia/libliveMedia.a in /usr/win32/live.com... /usr/win32/live.com/liveMedia/libliveMedia.a
checking /usr/win32/live.com/liveMedia/include/liveMedia_version.hh usability... yes
checking /usr/win32/live.com/liveMedia/include/liveMedia_version.hh presence... yes
checking for /usr/win32/live.com/liveMedia/include/liveMedia_version.hh... yes
checking for liveMedia version >= 1214895600 ... no
configure: error: Your version of liveMedia is too old: you may get a more recent one from http://www.live555.com/liveMedia.
lternatively you can use --disable-live555 to disable the liveMedia plugin.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: How to compile on Windows using Cygwin

Postby VLC_help » 11 Oct 2008 19:27

Your contribs are too old for liveMedia support. You can disable it, if you don't need it. Just change

Code: Select all

--enable-live555 --with-live555-tree=/usr/win32/live.com \
to

Code: Select all

--disable--live555 \
and rerun configure

If you want to build it, use newer contribs
http://people.videolan.org/~jb/Contribs ... ly.tar.bz2

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 11 Oct 2008 23:58

OK, I used the newer contrib as was recomended and the configure finished. Now I am stuck at the make part, here are the last few lines:
odec_plugin_la-encoder.o
In file included from encoder.c:53:
chroma.h: In function `GetFfmpegChroma':
chroma.h:117: warning: comparison between signed and unsigned
chroma.h:118: warning: comparison between signed and unsigned
chroma.h:119: warning: comparison between signed and unsigned
encoder.c: In function `OpenEncoder':
encoder.c:486: warning: assignment discards qualifiers from pointer target type
encoder.c:487: warning: assignment discards qualifiers from pointer target type
encoder.c: In function `EncodeVideo':
encoder.c:897: warning: int format, different type arg (arg 5)
encoder.c:903: warning: int format, different type arg (arg 5)
encoder.c:903: warning: int format, different type arg (arg 6)
encoder.c: At top level:
fourcc.h:1054: warning: 'GetVlcFourcc' defined but not used
mv -f .deps/libavcodec_plugin_la-encoder.Tpo .deps/libavcodec_plugin_la-encoder.
Plo
/bin/sh ../../../libtool --tag=CC --mode=link gcc -mno-cygwin -std=gnu99 `top_
builddir="../../.." ../../../vlc-config --cflags plugin libavcodec_plugin.la` -m
ms-bitfields -Wall -Wextra -Wsign-compare -Wundef -Wpointer-arith -Wbad-function
-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -rpath '/usr/local/lib/v
lc/codec' -avoid-version -module -no-undefined -export-symbol-regex ^vlc_entry -
shrext .dll `top_builddir="../../.." ../../../vlc-config --ldflags plugin libavc
odec_plugin.la` -L/usr/win32/lib -o libavcodec_plugin.la libavcodec_plugin_la-a
vcodec.lo libavcodec_plugin_la-video.lo libavcodec_plugin_la-audio.lo libavcodec
_plugin_la-deinterlace.lo libavcodec_plugin_la-encoder.lo `top_builddir="../..
/.." ../../../vlc-config -libs plugin libavcodec_plugin.la` ../../../src/libvlcc
ore.la -lmingw32
gcc -mno-cygwin -std=gnu99 -shared .libs/libavcodec_plugin_la-avcodec.o .libs/l
ibavcodec_plugin_la-video.o .libs/libavcodec_plugin_la-audio.o .libs/libavcodec_
plugin_la-deinterlace.o .libs/libavcodec_plugin_la-encoder.o -L/usr/win32/lib -
lavcodec -lavutil ../../../src/.libs/libvlccore.dll.a -lmingw32 -mno-cygwin -mt
une=pentium2 -mms-bitfields -o .libs/libavcodec_plugin.dll -Wl,--enable-auto-ima
ge-base -Xlinker --out-implib -Xlinker .libs/libavcodec_plugin.dll.a
.libs/libavcodec_plugin_la-avcodec.o: In function `CloseDecoder':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/avcodec.c:323: undefined referen
ce to `_avcodec_close'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/avcodec.c:326: undefined referen
ce to `_av_free'
.libs/libavcodec_plugin_la-avcodec.o: In function `InitLibavcodec':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/avcodec.c:340: undefined referen
ce to `_avcodec_init'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/avcodec.c:341: undefined referen
ce to `_avcodec_register_all'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/avcodec.c:342: undefined referen
ce to `_av_log_set_callback'
.libs/libavcodec_plugin_la-avcodec.o: In function `OpenDecoder':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/avcodec.c:236: undefined referen
ce to `_avcodec_find_decoder'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/avcodec.c:244: undefined referen
ce to `_avcodec_alloc_context'
.libs/libavcodec_plugin_la-video.o: In function `EndVideoDec':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/video.c:683: undefined reference
to `_av_free'
.libs/libavcodec_plugin_la-video.o: In function `DecodeVideo':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/video.c:525: undefined reference
to `_avcodec_decode_video'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/video.c:537: undefined reference
to `_avcodec_decode_video'
.libs/libavcodec_plugin_la-video.o: In function `InitVideoDec':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/video.c:197: undefined reference
to `_avcodec_alloc_frame'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/video.c:370: undefined reference
to `_avcodec_open'
.libs/libavcodec_plugin_la-video.o: In function `ffmpeg_ReGetFrameBuf':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/video.c:889: undefined reference
to `_avcodec_default_reget_buffer'
.libs/libavcodec_plugin_la-video.o: In function `ffmpeg_GetFrameBuf':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/video.c:854: undefined reference
to `_avcodec_default_get_buffer'
.libs/libavcodec_plugin_la-video.o: In function `ffmpeg_ReleaseFrameBuf':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/video.c:941: undefined reference
to `_avcodec_default_release_buffer'
.libs/libavcodec_plugin_la-audio.o: In function `InitAudioDec':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/audio.c:194: undefined reference
to `_avcodec_open'
.libs/libavcodec_plugin_la-audio.o: In function `DecodeAudio':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/audio.c:274: undefined reference
to `_avcodec_flush_buffers'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/audio.c:315: undefined reference
to `_avcodec_decode_audio2'
.libs/libavcodec_plugin_la-deinterlace.o: In function `Deinterlace':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/deinterlace.c:149: undefined ref
erence to `_avpicture_deinterlace'
.libs/libavcodec_plugin_la-encoder.o: In function `OpenEncoder':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:244: undefined referen
ce to `_avcodec_find_encoder'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:267: undefined referen
ce to `_avcodec_alloc_context'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:609: undefined referen
ce to `_avcodec_open'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:449: undefined referen
ce to `_av_reduce'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:452: undefined referen
ce to `_av_reduce'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:662: undefined referen
ce to `_avcodec_open'
.libs/libavcodec_plugin_la-encoder.o: In function `EncodeVideo':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:925: undefined referen
ce to `_avcodec_encode_video'
.libs/libavcodec_plugin_la-encoder.o: In function `EncodeAudio':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:1047: undefined refere
nce to `_avcodec_encode_audio'
.libs/libavcodec_plugin_la-encoder.o: In function `CloseEncoder':
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:1113: undefined refere
nce to `_avcodec_close'
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/encoder.c:1115: undefined refere
nce to `_av_free'
Creating library file: .libs/libavcodec_plugin.dll.a
collect2: ld returned 1 exit status
make[6]: *** [libavcodec_plugin.la] Error 1
make[6]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4/modules/codec'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4/modules/codec'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4'
make: *** [all] Error 2

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: How to compile on Windows using Cygwin

Postby VLC_help » 13 Oct 2008 14:30

You have tried to compile git version?

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 13 Oct 2008 22:19

No, I Got the link to the source from J-B

viewtopic.php?f=2&t=51115&p=165440&hilit=source#p165440
Re: Source Code for 0.9.4

by j-b on Thu Oct 09, 2008 5:04 pm
http://www.videolan.org/mirror-geo.php? ... .4.tar.bz2 is exact
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer and Sites administrator
If you want an answer to your question, just be specific and verbose. Don't PM.

mtuncer
Blank Cone
Blank Cone
Posts: 13
Joined: 12 Oct 2008 13:24

Re: How to compile on Windows using Cygwin

Postby mtuncer » 14 Oct 2008 06:28

I am also struggling with same issue.
I was getting the same problems with 0.9.4. after seeing this thread, I tried git version.

it failed with different reasons see thread
viewtopic.php?f=14&t=51305

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 14 Oct 2008 10:19

Still need help with my problem

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: How to compile on Windows using Cygwin

Postby VLC_help » 14 Oct 2008 15:39

I only do git builds, so I don't know if those source tarballs have some issues.
/cygdrive/c/VLC/vlc-0.9.4/modules/codec/avcodec/avcodec.c:323: undefined reference to `_avcodec_close'
means that you have either too new or too old contribs, or the build file is somehow broken.

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 15 Oct 2008 00:15

Now I am totaly confused, I followed your and J-B's instructions and came to a dead end. I took the source code as J-B recomended and the contrib as you recomended. can we somehow sync and have a flow that will bring me and all the others to a successful compilation.

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: How to compile on Windows using Cygwin

Postby VLC_help » 15 Oct 2008 14:29

Git and latest contribs. That is my suggestion.

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 15 Oct 2008 14:44

What is the latest contribs?

VLC_help
Mega Cone Master
Mega Cone Master
Posts: 25661
Joined: 13 Sep 2006 14:16

Re: How to compile on Windows using Cygwin

Postby VLC_help » 16 Oct 2008 16:19

http://people.videolan.org/~jb/Contribs ... ly.tar.bz2
that one. But I haven't tried that one yet. I am currently using the one before that.
http://people.videolan.org/~jb/Contribs ... ly.tar.bz2

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

Re: How to compile on Windows using Cygwin

Postby Jean-Baptiste Kempf » 16 Oct 2008 22:04

Take the 0811 ones, except if you have faith.
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.

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 17 Oct 2008 22:18

J-B,

I took the contrib you recomended together with the 0.9.4 tarball and the make is still failing, please help.

/usr/win32/bin/moc -DHAVE_CONFIG_H -I../../../include -I../../../include -I/usr/
win32/include -I/usr/win32/include/ebml -DSYS_MINGW32 -I../../.. `top_builddir="
../../.." ../../../vlc-config --cppflags plugin qt4` -o menus.moc.cpp menus.hpp
/usr/win32/bin/moc: /usr/win32/bin/moc: cannot execute binary file
/usr/win32/bin/moc: /usr/win32/bin/moc: cannot execute binary file
make[5]: *** [main_interface.moc.cpp] Error 126
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [menus.moc.cpp] Error 126
make[5]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4/modules/gui/qt4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/VLC/vlc-0.9.4'
make: *** [all] Error 2

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

Re: How to compile on Windows using Cygwin

Postby Jean-Baptiste Kempf » 18 Oct 2008 11:54

READ the DOCUMENTATION!

It is stated on the wiki.
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.

itbe
Blank Cone
Blank Cone
Posts: 41
Joined: 08 Oct 2008 22:04

Re: How to compile on Windows using Cygwin

Postby itbe » 18 Oct 2008 17:51

Please give some respect, I followed the documentation step by step (and even showed VLC_HELP some errors that he fixed) and also followed your instructions and it is still failing. Can you show me what am I doing wrong or cant you???


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: Bing [Bot] and 19 guests