vlc 2.2.0 git cross compile for win32 lib dvdread not found

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.
yuqilin
New Cone
New Cone
Posts: 2
Joined: 15 May 2014 08:06

vlc 2.2.0 git cross compile for win32 lib dvdread not found

Postby yuqilin » 15 May 2014 08:29

vlc version: vlc 2.2.0 git
OS: Ubuntu 14.04 LTS (64-bit)
Tool chain: mingw-w64

Very noob for VLC dev :shock: Before my main dev platform is windows.

Follow the wiki (https://wiki.videolan.org/Win32Compile) exactly.

for contribs, I did 'make prebuilt'.

All is ok, until I do the configuration '../extras/package/win32/configure.sh --host=i686-w64-mingw32'.
Then got a error that I don't know how to solve.

configure:30482: error: Library dvdread > 4.9.0 needed for dvdread was not found

I think the prebuilt contribs installed the lib, am I right ?


I pasted the configure output below.
Thanks very much for help.

Code: Select all

yql@yql-vm:~/opensource/vlc_2_2_0_git/win32$ ../extras/package/win32/configure.sh --host=i686-w64-mingw32 checking build system type... x86_64-unknown-linux-gnu checking host system type... i686-w64-mingw32 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for i686-w64-mingw32-strip... i686-w64-mingw32-strip checking for a thread-safe mkdir -p... /bin/mkdir -p checking for gawk... no checking for mawk... mawk checking whether make sets $(MAKE)... yes checking whether make supports nested variables... yes checking whether UID '1000' is supported by ustar format... yes checking whether GID '1000' is supported by ustar format... yes checking how to create a ustar tar archive... gnutar checking whether make supports nested variables... (cached) yes checking whether to enable maintainer-specific portions of Makefiles... yes checking for style of include used by make... GNU checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc 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... yes checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether i686-w64-mingw32-gcc accepts -g... yes checking for i686-w64-mingw32-gcc option to accept ISO C89... none needed checking whether i686-w64-mingw32-gcc understands -c and -o together... yes checking dependency style of i686-w64-mingw32-gcc... gcc3 checking for i686-w64-mingw32-gcc option to accept ISO C99... -std=gnu99 checking how to run the C preprocessor... i686-w64-mingw32-gcc -std=gnu99 -E checking for grep that handles long lines and -e... /bin/grep checking for egrep... /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 for i686-w64-mingw32-g++... i686-w64-mingw32-g++ checking whether we are using the GNU C++ compiler... yes checking whether i686-w64-mingw32-g++ accepts -g... yes checking dependency style of i686-w64-mingw32-g++... gcc3 checking how to run the C preprocessor... i686-w64-mingw32-gcc -std=gnu99 -E checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc checking whether we are using the GNU Objective C compiler... no checking whether i686-w64-mingw32-gcc accepts -g... no checking dependency style of i686-w64-mingw32-gcc... gcc3 checking dependency style of i686-w64-mingw32-gcc... (cached) gcc3 checking for egrep... (cached) /bin/grep -E checking whether make sets $(MAKE)... (cached) yes checking dependency style of i686-w64-mingw32-gcc -std=gnu99... gcc3 checking for desktop-file-validate... desktop-file-validate checking for yasm... yasm checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking for i686-w64-mingw32-windres... i686-w64-mingw32-windres checking for i686-w64-mingw32-objcopy... i686-w64-mingw32-objcopy checking for unix2dos... no checking for todos... todos checking for 3rd party libraries path... /home/yql/opensource/vlc_2_2_0_git/contrib/i686-w64-mingw32 checking how to print strings... printf checking for a sed that does not truncate output... /bin/sed checking for fgrep... /bin/grep -F checking for ld used by i686-w64-mingw32-gcc -std=gnu99... /usr/bin/i686-w64-mingw32-ld checking if the linker (/usr/bin/i686-w64-mingw32-ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/i686-w64-mingw32-nm -B checking the name lister (/usr/bin/i686-w64-mingw32-nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert x86_64-unknown-linux-gnu file names to i686-w64-mingw32 format... func_convert_file_nix_to_w32 checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/i686-w64-mingw32-ld option to reload object files... -r checking for i686-w64-mingw32-objdump... i686-w64-mingw32-objdump checking how to recognize dependent libraries... (cached) pass_all checking for i686-w64-mingw32-dlltool... i686-w64-mingw32-dlltool checking how to associate runtime and link libraries... func_cygming_dll_for_implib checking for i686-w64-mingw32-ar... i686-w64-mingw32-ar checking for archiver @FILE support... @ checking for i686-w64-mingw32-strip... (cached) i686-w64-mingw32-strip checking for i686-w64-mingw32-ranlib... i686-w64-mingw32-ranlib checking command to parse /usr/bin/i686-w64-mingw32-nm -B output from i686-w64-mingw32-gcc -std=gnu99 object... ok checking for sysroot... no checking for i686-w64-mingw32-mt... no checking for mt... mt configure: WARNING: using cross tools not prefixed with host triplet checking if mt is a manifest tool... no checking for dlfcn.h... no checking for i686-w64-mingw32-as... i686-w64-mingw32-as checking for i686-w64-mingw32-dlltool... (cached) i686-w64-mingw32-dlltool checking for i686-w64-mingw32-objdump... (cached) i686-w64-mingw32-objdump checking for objdir... .libs checking if i686-w64-mingw32-gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no checking for i686-w64-mingw32-gcc -std=gnu99 option to produce PIC... -DDLL_EXPORT -DPIC checking if i686-w64-mingw32-gcc -std=gnu99 PIC flag -DDLL_EXPORT -DPIC works... yes checking if i686-w64-mingw32-gcc -std=gnu99 static flag -static works... yes checking if i686-w64-mingw32-gcc -std=gnu99 supports -c -o file.o... yes checking if i686-w64-mingw32-gcc -std=gnu99 supports -c -o file.o... (cached) yes checking whether the i686-w64-mingw32-gcc -std=gnu99 linker (/usr/bin/i686-w64-mingw32-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... i686-w64-mingw32-g++ -E checking for ld used by i686-w64-mingw32-g++... /usr/bin/i686-w64-mingw32-ld checking if the linker (/usr/bin/i686-w64-mingw32-ld) is GNU ld... yes checking whether the i686-w64-mingw32-g++ linker (/usr/bin/i686-w64-mingw32-ld) supports shared libraries... yes checking for i686-w64-mingw32-g++ option to produce PIC... -DDLL_EXPORT -DPIC checking if i686-w64-mingw32-g++ PIC flag -DDLL_EXPORT -DPIC works... yes checking if i686-w64-mingw32-g++ static flag -static works... yes checking if i686-w64-mingw32-g++ supports -c -o file.o... yes checking if i686-w64-mingw32-g++ supports -c -o file.o... (cached) yes checking whether the i686-w64-mingw32-g++ linker (/usr/bin/i686-w64-mingw32-ld) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking for i686-w64-mingw32-windres... i686-w64-mingw32-windres checking for bash... /bin/bash checking if dolt supports this host... ../extras/package/win32/../../../configure: line 20015: confdefs.h: command not found yes, replacing 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 i686-w64-mingw32-gcc -std=gnu99... /usr/bin/i686-w64-mingw32-ld checking if the linker (/usr/bin/i686-w64-mingw32-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... guessing yes checking how to link with libiconv... /home/yql/opensource/vlc_2_2_0_git/contrib/i686-w64-mingw32/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... /home/yql/opensource/vlc_2_2_0_git/contrib/i686-w64-mingw32/lib/libintl.a /home/yql/opensource/vlc_2_2_0_git/contrib/i686-w64-mingw32/lib/libiconv.a checking for iconv... (cached) yes checking for working iconv... (cached) guessing yes checking how to link with libiconv... /home/yql/opensource/vlc_2_2_0_git/contrib/i686-w64-mingw32/lib/libiconv.a checking for iconv declaration... extern size_t iconv (iconv_t cd, 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... yes 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 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 strndup... no checking for strnlen... yes 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... no checking for _lock_file... no checking for struct pollfd... no checking for library containing connect... no checking for library containing inet_pton... 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... yes checking for lrintf in -lm... yes 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-w64-mingw32-pkg-config... /usr/bin/i686-w64-mingw32-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 IDN... no checking for DBUS... no configure: WARNING: No package 'dbus-1' found. checking for ntohl in sys/param.h... no checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Wall... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Wextra... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Wsign-compare... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Wundef... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Wpointer-arith... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Wbad-function-cast... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Wwrite-strings... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Wmissing-prototypes... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Wvolatile-register-var... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -Werror-implicit-function-declaration... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -pipe... yes checking if i686-w64-mingw32-g++ accepts -Wall... yes checking if i686-w64-mingw32-g++ accepts -Wextra... yes checking if i686-w64-mingw32-g++ accepts -Wsign-compare... yes checking if i686-w64-mingw32-g++ accepts -Wundef... yes checking if i686-w64-mingw32-g++ accepts -Wpointer-arith... yes checking if i686-w64-mingw32-g++ accepts -Wvolatile-register-var... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -ffast-math... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -funroll-loops... yes checking if i686-w64-mingw32-gcc -std=gnu99 accepts -fomit-frame-pointer... yes checking if linker supports -Bsymbolic... -Wl,-Bsymbolic checking __attribute__ ((aligned ())) support... 0 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 i686-w64-mingw32-gcc -std=gnu99 groks MMX intrinsics... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks MMX inline assembly... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks MMX EXT inline assembly... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks SSE2 intrinsics... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks SSE inline assembly... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks SSE2 inline assembly... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks SSE3 inline assembly... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks SSSE3 inline assembly... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks SSE4.1 inline assembly... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks SSE4.2 inline assembly... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks SSE4A inline assembly... yes checking if i686-w64-mingw32-gcc -std=gnu99 groks 3D Now! inline assembly... yes checking for LUA... no configure: WARNING: No package 'lua5.2' found, trying lua 5.1 instead checking for LUA... no configure: WARNING: No package 'lua5.1' found, trying lua >= 5.1 instead checking for LUA... no configure: WARNING: No package 'lua' found, trying manual detection instead checking lua.h usability... yes checking lua.h presence... yes checking for lua.h... yes checking lauxlib.h usability... yes checking lauxlib.h presence... yes checking for lauxlib.h... yes checking lualib.h usability... yes checking lualib.h presence... yes checking for lualib.h... yes checking for luaL_newstate in -llua5.2 ... no checking for luaL_newstate in -llua5.1 ... no checking for luaL_newstate in -llua51 ... no checking for luaL_newstate in -llua ... yes checking for luac... /home/yql/opensource/vlc_2_2_0_git/contrib/i686-w64-mingw32/bin/luac checking for LIVE555... no configure: WARNING: No package 'live555' found. checking for live555 version 1324598400 or later... yes checking for main in -lliveMedia_pic... no checking for main in -lliveMedia... yes 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... no configure: error: Library dvdread > 4.9.0 needed for dvdread was not found

Rémi Denis-Courmont
Developer
Developer
Posts: 15260
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc 2.2.0 git cross compile for win32 lib dvdread not fo

Postby Rémi Denis-Courmont » 15 May 2014 10:13

Check that your prebuilt version of libdvdread is not lower than 4.9.0.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

yuqilin
New Cone
New Cone
Posts: 2
Joined: 15 May 2014 08:06

Re: vlc 2.2.0 git cross compile for win32 lib dvdread not fo

Postby yuqilin » 15 May 2014 11:27

Check that your prebuilt version of libdvdread is not lower than 4.9.0.
I check contrib/i686-w64-mignw32/include/dvdread/dvd_reader.h

#define DVDREAD_VERSION 904

is this right?

thanks.

arcko
New Cone
New Cone
Posts: 2
Joined: 24 Nov 2011 16:22

Re: vlc 2.2.0 git cross compile for win32 lib dvdread not fo

Postby arcko » 22 May 2014 23:35

same issue here

Rémi Denis-Courmont
Developer
Developer
Posts: 15260
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: vlc 2.2.0 git cross compile for win32 lib dvdread not fo

Postby Rémi Denis-Courmont » 24 May 2014 12:49

I obviously mean the pkg-config version of libdvdread. I don't know the mapping to .h files,
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

bilb68
New Cone
New Cone
Posts: 4
Joined: 06 Jun 2014 11:38

Re: vlc 2.2.0 git cross compile for win32 lib dvdread not fo

Postby bilb68 » 06 Jun 2014 11:40

Hi,

same problem here. How did you solve it?

alexvlcprot
New Cone
New Cone
Posts: 5
Joined: 26 Sep 2014 09:14

Re: vlc 2.2.0 git cross compile for win32 lib dvdread not fo

Postby alexvlcprot » 02 Oct 2014 17:08

Try to download and install:

http://www.linuxfromscratch.org/blfs/vi ... dread.html

Now, I'm having this issue:

Code: Select all

/home/alex/Work/vlc/contrib/i686-w64-mingw32/lib/libx265.a(param.cpp.obj): In function `ZN4x26512parseCpuNameEPKcRb': /home/buildslave/vlc-contrib-win32-x86/build/contrib/win/x265/source/common/param.cpp:775: undefined reference to `strtok_r' /home/alex/Work/vlc/contrib/i686-w64-mingw32/lib/libx265.a(param.cpp.obj): In function `ZN4x26515parseLambdaFileEP10x265_param': /home/buildslave/vlc-contrib-win32-x86/build/contrib/win/x265/source/common/param.cpp:1332: undefined reference to `strtok_r' collect2: error: ld returned 1 exit status make[4]: *** [libx265_plugin.la] Error 1 make[4]: se sale del directorio «/home/alex/Work/vlc/win32/modules» make[3]: *** [all-recursive] Error 1 make[3]: se sale del directorio «/home/alex/Work/vlc/win32/modules» make[2]: *** [all] Error 2 make[2]: se sale del directorio «/home/alex/Work/vlc/win32/modules» make[1]: *** [all-recursive] Error 1 make[1]: se sale del directorio «/home/alex/Work/vlc/win32» make: *** [all] Error 2
Any suggestions?

elindsey
New Cone
New Cone
Posts: 2
Joined: 29 Nov 2014 07:16

Re: vlc 2.2.0 git cross compile for win32 lib dvdread not fo

Postby elindsey » 29 Nov 2014 07:33

Same problem here. I'm guessing it's because Windows wants strtok_s instead of strtok_r, but I'm not sure of an easy fix. What did you end up doing to solve this?


Return to “VLC media player for Windows Troubleshooting”

Who is online

Users browsing this forum: No registered users and 37 guests