Page 1 of 1

vlc compilation on cygwin in windows, help needed

Posted: 20 Jun 2012 10:47
by pulkitw
Hello,
I am new to vlc development.
My overall aim is to be able work on the interface.
I am trying to compile VLC in windows using cygwin. I am experiencing missing library errors. The latest error is for library CACA. I'm unable to figure out how should i proceed further as it is not present in cygwin setup.
Please help me out.

Code: Select all

$ ./configure-vlc.sh configure: WARNING: unrecognized options: --with-sdl-config-path, --with-live555-tree, --with-caca-config-path, --with-dvdnav-config-path configure: WARNING: if you wanted to set the --build type, don't use --host. If a cross compiler is detected then cross compile mode will be used checking build system type... i686-pc-cygwin checking host system type... i686-pc-mingw32 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for i686-pc-mingw32-strip... no checking for strip... strip checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking for gawk... gawk checking whether make sets $(MAKE)... yes checking how to create a ustar tar archive... cpio checking whether make supports nested variables... yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for style of include used by make... GNU checking for i686-pc-mingw32-gcc... gcc -mno-cygwin checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc -mno-cygwin accepts -g... yes checking for gcc -mno-cygwin option to accept ISO C89... none needed checking dependency style of gcc -mno-cygwin... gcc3 checking for gcc -mno-cygwin option to accept ISO C99... -std=gnu99 checking how to run the C preprocessor... gcc -mno-cygwin -std=gnu99 -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking minix/config.h usability... no checking minix/config.h presence... no checking for minix/config.h... no checking whether it is safe to define __EXTENSIONS__... yes checking whether gcc -mno-cygwin -std=gnu99 and cc understand -c and -o together... yes checking whether we are using the GNU C++ compiler... yes checking whether g++ -mno-cygwin accepts -g... yes checking dependency style of g++ -mno-cygwin... gcc3 checking how to run the C preprocessor... gcc -mno-cygwin -std=gnu99 -E checking for i686-pc-mingw32-gcc... no checking for i686-pc-mingw32-objcc... no checking for i686-pc-mingw32-objc... no checking for i686-pc-mingw32-cc... no checking for i686-pc-mingw32-CC... no checking for gcc... gcc checking whether we are using the GNU Objective C compiler... no checking whether gcc accepts -g... no checking dependency style of gcc... gcc3 checking dependency style of gcc... (cached) gcc3 checking for egrep... (cached) /usr/bin/grep -E checking whether make sets $(MAKE)... (cached) yes checking dependency style of gcc -mno-cygwin -std=gnu99... gcc3 checking for desktop-file-validate... no checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking for i686-pc-mingw32-windres... no checking for windres... windres checking for i686-pc-mingw32-objcopy... no checking for objcopy... objcopy checking for unix2dos... unix2dos checking for 3rd party libraries path... not found checking how to print strings... printf checking for a sed that does not truncate output... /usr/bin/sed checking for fgrep... /usr/bin/grep -F checking for ld used by gcc -mno-cygwin -std=gnu99... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... no checking for i686-pc-mingw32-dumpbin... no checking for i686-pc-mingw32-link... no checking for dumpbin... no checking for link... link -dump checking the name lister (nm) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 8192 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert i686-pc-cygwin file names to i686-pc-mingw32 format... func_convert_file_cygwin_to_w32 checking how to convert i686-pc-cygwin file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for i686-pc-mingw32-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... (cached) pass_all checking for i686-pc-mingw32-dlltool... no checking for dlltool... dlltool checking how to associate runtime and link libraries... func_cygming_dll_for_implib checking for i686-pc-mingw32-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for i686-pc-mingw32-strip... strip checking for i686-pc-mingw32-ranlib... no checking for ranlib... ranlib checking command to parse nm output from gcc -mno-cygwin -std=gnu99 object... ok checking for sysroot... no checking for i686-pc-mingw32-mt... no checking for mt... no checking if : is a manifest tool... no checking for dlfcn.h... no checking for i686-pc-mingw32-as... no checking for as... as checking for i686-pc-mingw32-dlltool... dlltool checking for i686-pc-mingw32-objdump... objdump checking for objdir... .libs 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 -DPIC checking if gcc -mno-cygwin -std=gnu99 PIC flag -DDLL_EXPORT -DPIC 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 if gcc -mno-cygwin -std=gnu99 supports -c -o file.o... (cached) yes checking whether the gcc -mno-cygwin -std=gnu99 linker (/usr/bin/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 checking how to run the C++ preprocessor... g++ -mno-cygwin -E checking for ld used by g++ -mno-cygwin... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ -mno-cygwin linker (/usr/bin/ld) supports shared libraries... yes checking for g++ -mno-cygwin option to produce PIC... -DDLL_EXPORT -DPIC checking if g++ -mno-cygwin PIC flag -DDLL_EXPORT -DPIC works... yes checking if g++ -mno-cygwin static flag -static works... yes checking if g++ -mno-cygwin supports -c -o file.o... yes checking if g++ -mno-cygwin supports -c -o file.o... (cached) yes checking whether the g++ -mno-cygwin linker (/usr/bin/ld) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking for i686-pc-mingw32-windres... no checking for windres... windres 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... /usr/bin/ld checking if the linker (/usr/bin/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 for working 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 for working 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 *inbytesleft, char * *outbuf, size_t *outbytesleft); checking for broken mingw-runtime... ok checking for opendir in -lmingwex... yes checking for opendir in -lmingw32... yes checking if $CC accepts -mms-bitfields... yes checking for buggy GNU/libc versions... not present checking for shared objects suffix... .dll checking whether nanosleep is declared... no checking for daemon... no checking for fcntl... no checking for fstatvfs... no checking for fork... no checking for getenv... yes checking for getpwuid_r... no checking for isatty... yes checking for lstat... no checking for memalign... no checking for mmap... no checking for openat... no checking for pread... no checking for posix_fadvise... no checking for posix_madvise... no checking for setlocale... yes checking for stricmp... yes checking for strnicmp... yes checking for strptime... no checking for uselocale... no checking for atof... yes checking for atoll... yes checking for dirfd... no checking for fdopendir... no checking for flockfile... no checking for fsync... no checking for getdelim... no checking for getpid... yes checking for gmtime_r... no checking for inet_pton... no checking for lldiv... yes checking for localtime_r... no checking for nrand48... no checking for poll... no checking for posix_memalign... no checking for rewind... yes checking for setenv... no checking for strcasecmp... yes checking for strcasestr... no checking for strdup... yes checking for strlcpy... no checking for strncasecmp... yes checking for strndup... no checking for strnlen... no checking for strsep... no checking for strtof... yes checking for strtok_r... no checking for strtoll... yes checking for swab... yes checking for tdestroy... no checking for strverscmp... no checking for fdatasync... no checking for static_assert in assert.h... no checking for working strcoll... yes checking for accept4... no checking for pipe2... no checking for eventfd... no checking for vmsplice... no checking for sched_getaffinity... no checking for struct pollfd... no checking for library containing connect... no checking for library containing getaddrinfo... no checking for if_nameindex... no checking for if_nametoindex... no checking for socklen_t in sys/socket.h... yes checking for struct sockaddr_storage... yes checking for getopt_long... yes checking for cos in -lm... no checking for lrintf in -lm... no checking for library containing dlopen... no checking search.h usability... yes checking search.h presence... yes checking for search.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking locale.h usability... yes checking locale.h presence... yes checking for locale.h... yes checking xlocale.h usability... no checking xlocale.h presence... no checking for xlocale.h... no checking sys/time.h usability... yes checking sys/time.h presence... yes checking for sys/time.h... yes checking sys/ioctl.h usability... no checking sys/ioctl.h presence... no checking for sys/ioctl.h... no checking arpa/inet.h usability... no checking arpa/inet.h presence... no checking for arpa/inet.h... no checking netinet/udplite.h usability... no checking netinet/udplite.h presence... no checking for netinet/udplite.h... no checking sys/eventfd.h usability... no checking sys/eventfd.h presence... no checking for sys/eventfd.h... no checking for net/if.h... no checking for sys/mount.h... no checking for ssize_t... yes 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 zlib.h usability... yes checking zlib.h presence... yes checking for zlib.h... yes checking for MINIZIP... no checking unzip.h usability... no checking unzip.h presence... no checking for unzip.h... no 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 -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 -Werror-implicit-function-declaration... yes checking if gcc -mno-cygwin -std=gnu99 accepts -pipe... yes checking if g++ -mno-cygwin accepts -Wall... yes checking if g++ -mno-cygwin accepts -Wextra... yes checking if g++ -mno-cygwin accepts -Wsign-compare... yes checking if g++ -mno-cygwin accepts -Wundef... yes checking if g++ -mno-cygwin accepts -Wpointer-arith... yes checking if g++ -mno-cygwin accepts -Wvolatile-register-var... no checking valgrind/valgrind.h usability... no checking valgrind/valgrind.h presence... no checking for valgrind/valgrind.h... 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 SSE3 inline assembly... yes checking if gcc -mno-cygwin -std=gnu99 groks SSSE3 inline assembly... yes checking if gcc -mno-cygwin -std=gnu99 groks SSE4.1 inline assembly... yes checking if gcc -mno-cygwin -std=gnu99 groks SSE4.2 inline assembly... yes checking if gcc -mno-cygwin -std=gnu99 groks SSE4A inline assembly... yes checking if gcc -mno-cygwin -std=gnu99 groks 3D Now! inline assembly... yes checking for LUA... no configure: WARNING: No package 'lua5.1' found, trying lua >= 5.1 instead checking for LUA... yes checking for luac... /usr/bin/luac checking for LIBPROXY... no checking for DC1394... no configure: WARNING: Library libdc1394-2 >= 2.1.0 needed for dc1394 was not found checking for DV1394... no configure: WARNING: Library libraw1394 >= 2.0.1 libavc1394 >= 0.5.3 needed for dv1394 was not found checking for DVDREAD... yes checking for DVDNAV... yes checking for dvdnav_get_video_resolution in -ldvdnav... no checking for dvdnav_describe_title_chapters in -ldvdnav... no checking dshow.h usability... yes checking dshow.h presence... yes checking for dshow.h... yes checking for BLURAY... no configure: WARNING: Library libbluray >= 0.2.1 needed for bluray was not found checking libsmbclient.h usability... no checking libsmbclient.h presence... no checking for libsmbclient.h... no checking linux/videodev2.h usability... no checking linux/videodev2.h presence... no checking for linux/videodev2.h... no checking sys/videoio.h usability... no checking sys/videoio.h presence... no checking for sys/videoio.h... no checking whether V4L2_CTRL_TYPE_BITMASK is declared... no checking DeckLinkAPIDispatch.cpp usability... no checking DeckLinkAPIDispatch.cpp presence... no checking for DeckLinkAPIDispatch.cpp... no configure: WARNING: Blackmagic DeckLink SDI include files not found checking for GNOMEVFS... no configure: WARNING: Library gnome-vfs-2.0 needed for gnomevfs was not found checking for cdrom_msf0 in linux/cdrom.h... no checking for scsireq in sys/scsiio.h... no checking for ioc_toc_header in sys/cdio.h... no checking for LIBCDDB... no configure: WARNING: No package 'libcddb' found: CDDB access disabled. checking for Linux DVB version 5.1... no checking for DVBPSI... no checking gme/gme.h usability... no checking gme/gme.h presence... no checking for gme/gme.h... no checking for SID... no configure: WARNING: No package 'libsidplay2' found (required for sid). checking for OGG... yes checking for MUX_OGG... yes checking for SHOUT... yes checking for LIBMODPLUG... yes checking mpc/mpcdec.h usability... no checking mpc/mpcdec.h presence... no checking for mpc/mpcdec.h... no checking mpcdec/mpcdec.h usability... yes checking mpcdec/mpcdec.h presence... yes checking for mpcdec/mpcdec.h... yes checking for libcrystalhd/libcrystalhd_if.h... no checking for libcrystalhd/bc_dts_defs.h... no configure: WARNING: "Could not find CrystalHD development headers" checking mad.h usability... yes checking mad.h presence... yes checking for mad.h... yes checking for mad_bit_init in -lmad... yes checking if linker supports -Bsymbolic... yes checking for AVCODEC... yes checking libavcodec/avcodec.h usability... yes checking libavcodec/avcodec.h presence... yes checking for libavcodec/avcodec.h... yes checking libavutil/avutil.h usability... yes checking libavutil/avutil.h presence... yes checking for libavutil/avutil.h... yes checking for LIBVA... no configure: WARNING: No package 'libva' found No package 'libva-x11' found. checking dxva2api.h usability... no checking dxva2api.h presence... no checking for dxva2api.h... no configure: WARNING: dxva2api.h not found checking for AVFORMAT... yes checking libavformat/avformat.h usability... yes checking libavformat/avformat.h presence... yes checking for libavformat/avformat.h... yes checking libavformat/avio.h usability... yes checking libavformat/avio.h presence... yes checking for libavformat/avio.h... yes checking for libavutil/avutil.h... (cached) yes checking for SWSCALE... yes checking libswscale/swscale.h usability... yes checking libswscale/swscale.h presence... yes checking for libswscale/swscale.h... yes checking for POSTPROC... yes checking postproc/postprocess.h usability... no checking postproc/postprocess.h presence... no checking for postproc/postprocess.h... no checking faad.h usability... yes checking faad.h presence... yes checking for faad.h... yes checking for faacDecOpen in -lfaad... no checking for NeAACDecOpen in -lfaad... yes checking for TWOLAME... no configure: WARNING: Library twolame needed for twolame was not found checking a52dec/a52.h usability... yes checking a52dec/a52.h presence... yes checking for a52dec/a52.h... yes checking for a52_free in -la52... yes checking for DCA... yes checking for FLAC... yes checking for LIBMPEG2... yes checking for VORBIS... yes checking for SPEEX... yes checking for SPEEXDSP... yes checking for THEORA... yes checking for SCHROEDINGER... no configure: WARNING: Library schroedinger-1.0 >= 1.0.10 needed for schroedinger was not found checking png.h usability... yes checking png.h presence... yes checking for png.h... yes checking for png_set_rows in -lpng... yes checking for X26410B... no checking for LIBASS... no configure: WARNING: Requested 'libass >= 0.9.8' but version of libass is 0.9.6. checking for KATE... yes checking for TIGER... no checking for GL... no checking GL/gl.h usability... yes checking GL/gl.h presence... yes checking for GL/gl.h... yes checking for X... no checking X11/Xlib.h usability... no checking X11/Xlib.h presence... no checking for X11/Xlib.h... no checking for SDL... yes checking for SDL_IMAGE... no configure: WARNING: No package 'SDL_image' found. You should install it alongside your SDL package. checking for FREETYPE... yes checking Carbon/Carbon.h usability... no checking Carbon/Carbon.h presence... no checking for Carbon/Carbon.h... no checking for FRIBIDI... yes checking for SVG... no configure: WARNING: Library librsvg-2.0 >= 2.9.0 needed for svg was not found checking ddraw.h usability... yes checking ddraw.h presence... yes checking for ddraw.h... yes checking for GL/wglew.h... no checking d3d9.h usability... yes checking d3d9.h presence... yes checking for d3d9.h... yes checking d2d1.h usability... no checking d2d1.h presence... no checking for d2d1.h... no configure: WARNING: Cannot find Direct2D headers! checking linux/fb.h usability... no checking linux/fb.h presence... no checking for linux/fb.h... no checking for CACA... no configure: error: Library caca >= 0.99.beta14 needed for caca was not found

Re: vlc compilation on cygwin in windows, help needed

Posted: 20 Jun 2012 14:13
by nkoriyama
As for this issue, you can disable caca library by changing configure line (adding --disable-caca).

Anyway, native compilation with Cygwin is not recommended and it's too obsolete method.

I recommend Cross-compile with Mingw on Linux or other POSIX systems.
http://wiki.videolan.org/Win32Compile
Or Native compilation with MSYS+MINGW
http://wiki.videolan.org/Win32CompileMSYSNew

Re: vlc compilation on cygwin in windows, help needed

Posted: 03 Jul 2012 19:14
by Jean-Baptiste Kempf
Cygwin is not to be encouraged.