Win32Compile -- configure error using Ubuntu 12.04

This forum is about all development around libVLC.
ewong
Blank Cone
Blank Cone
Posts: 15
Joined: 29 May 2012 04:50

Win32Compile -- configure error using Ubuntu 12.04

Postby ewong » 02 Jun 2012 05:27

Based on the instructions provided at http://wiki.videolan.org/Win32Compile,

build environment: virtual box 4.16 , ubuntu 12.04 32-bit

using the following:

To compile VLC for Windows (32-bits or 64-bits), the Mingw-w64 toolchain is required:

Debian/Ubuntu: run apt-get install gcc-mingw-w64-i686

all the documented steps run without error until:

Configure

running:

../extras/package/win32/configure.sh --host=i586-mingw32msvc

or

../configure --host=i586-mingw32msvc
VirtualBox:~/vlc/win32$ ../extras/package/win32/configure.sh --host=i686-w64-mingw32
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-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 how to create a ustar tar archive... gnutar
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-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 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 whether i686-w64-mingw32-gcc -std=gnu99 and cc understand -c and -o together... yes
checking for i686-w64-mingw32-g++... no
checking for i686-w64-mingw32-c++... no
checking for i686-w64-mingw32-gpp... no
checking for i686-w64-mingw32-aCC... no
checking for i686-w64-mingw32-CC... no
checking for i686-w64-mingw32-cxx... no
checking for i686-w64-mingw32-cc++... no
checking for i686-w64-mingw32-cl.exe... no
checking for i686-w64-mingw32-FCC... no
checking for i686-w64-mingw32-KCC... no
checking for i686-w64-mingw32-RCC... no
checking for i686-w64-mingw32-xlC_r... no
checking for i686-w64-mingw32-xlC... no
checking for g++... g++
configure: WARNING: using cross tools not prefixed with host triplet
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of 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 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... no
checking for 3rd party libraries path... /home/verifeye/vlc/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 i686-pc-linux-gnu file names to i686-w64-mingw32 format... func_convert_file_nix_to_w32
checking how to convert i686-pc-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
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... g++ -E
checking for ld used by g++... /usr/bin/i686-w64-mingw32-ld
checking if the linker (/usr/bin/i686-w64-mingw32-ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/i686-w64-mingw32-ld) supports shared libraries... yes
checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC
checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the 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 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/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/verifeye/vlc/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/verifeye/vlc/contrib/i686-w64-mingw32/lib/libintl.a /home/verifeye/vlc/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/verifeye/vlc/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... present
configure: error: LibVLC requires mingw-runtime version 3.15 or higher, or mingw-w64 version 3.0 or higher!
Searching the Ubuntu Software Center: the latest version of mingw-w64 is 2.0.1-1

any ideas on how to fix or work around this issue?

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby nkoriyama » 03 Jun 2012 10:45

configure: error: LibVLC requires mingw-runtime version 3.15 or higher, or mingw-w64 version 3.0 or higher!
Use mingw-w64 version 3.0. (experimental package mingw-w64-dev_3.0)
http://packages.debian.org/experimental ... v/download

Or you have to modify configure.ac.
http://git.videolan.org/?p=vlc.git;a=bl ... 26d9da3d62
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

ewong
Blank Cone
Blank Cone
Posts: 15
Joined: 29 May 2012 04:50

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby ewong » 04 Jun 2012 20:26

Thanks for the suggestion, once applied, the following message appears:

Code: Select all

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-linux-gnu checking host system type... i586-pc-mingw32msvc checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for i586-mingw32msvc-strip... no checking for strip... 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 how to create a ustar tar archive... gnutar 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 i586-mingw32msvc-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... 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 accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... -std=gnu99 checking how to run the C preprocessor... 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 whether gcc -std=gnu99 and cc understand -c and -o together... yes checking for i586-mingw32msvc-g++... no checking for i586-mingw32msvc-c++... no checking for i586-mingw32msvc-gpp... no checking for i586-mingw32msvc-aCC... no checking for i586-mingw32msvc-CC... no checking for i586-mingw32msvc-cxx... no checking for i586-mingw32msvc-cc++... no checking for i586-mingw32msvc-cl.exe... no checking for i586-mingw32msvc-FCC... no checking for i586-mingw32msvc-KCC... no checking for i586-mingw32msvc-RCC... no checking for i586-mingw32msvc-xlC_r... no checking for i586-mingw32msvc-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -std=gnu99 -E checking for i586-mingw32msvc-gcc... no checking for i586-mingw32msvc-objcc... no checking for i586-mingw32msvc-objc... no checking for i586-mingw32msvc-cc... no checking for i586-mingw32msvc-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) /bin/grep -E checking whether make sets $(MAKE)... (cached) yes checking dependency style of gcc -std=gnu99... gcc3 checking for desktop-file-validate... desktop-file-validate checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking for i586-mingw32msvc-windres... no checking for windres... no checking for i586-mingw32msvc-objcopy... no checking for objcopy... objcopy checking for unix2dos... no checking for todos... no checking for 3rd party libraries path... not found 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 gcc -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 i586-mingw32msvc-dumpbin... no checking for i586-mingw32msvc-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... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert i686-pc-linux-gnu file names to i586-pc-mingw32msvc format... func_convert_file_nix_to_w32 checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for i586-mingw32msvc-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... (cached) pass_all checking for i586-mingw32msvc-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... func_cygming_dll_for_implib_fallback checking for i586-mingw32msvc-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for i586-mingw32msvc-strip... strip checking for i586-mingw32msvc-ranlib... no checking for ranlib... ranlib checking command to parse nm output from gcc -std=gnu99 object... ok checking for sysroot... no checking for i586-mingw32msvc-mt... no checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for i586-mingw32msvc-as... no checking for as... as checking for i586-mingw32msvc-dlltool... false checking for i586-mingw32msvc-objdump... objdump checking for objdir... .libs checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no checking for gcc -std=gnu99 option to produce PIC... -DDLL_EXPORT -DPIC checking if gcc -std=gnu99 PIC flag -DDLL_EXPORT -DPIC works... yes checking if gcc -std=gnu99 static flag -static works... yes checking if gcc -std=gnu99 supports -c -o file.o... yes checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... no checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... unsupported checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking for i586-mingw32msvc-windres... no checking for windres... no [b]configure: error: VLC is based on plugins. Shared libraries cannot be disabled.[/b]
According to this post:
viewtopic.php?f=13&t=95853

by Jean-Baptiste Kempf » Fri Nov 25, 2011 12:03 pm
Install gcc-mingw32

Is the only solution?

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby nkoriyama » 04 Jun 2012 20:58

Please install Mingw-w64 v3.0, first.

And, according to the log, you used "--host=i586-pc-mingw32msvc", but you have to use "--host=i686-w64-mingw32" when you use the Mingw-w64 toolchain.
Please read the wiki http://wiki.videolan.org/Win32Compile, written about "Host triplet".
Host triplet
A number of example commands below include the identifier of the toolchain. This value is essential: it instructs the build system to use the correct toolchain and compile the program for Windows. Without the value, the build system will perform a native compilation for Linux (or whatever your computer runs). With an incorrect value, the build will fail.
This is known as the host triplet, although it's more of a pair than a triplet in the case of Mingw. The exact value depends on your installation of the toolchain. Notably on Debian/Ubuntu, these values must be used:
i686-w64-mingw32 for Windows 32-bits, using the Mingw-w64 toolchain
x86_64-w64-mingw32 for Windows 64-bits, using the Mingw-w64 toolchain
i586-mingw32msvc for Windows 32-bits, using the Mingw32 toolchain
Again, you MUST substitute the value in the following command snippets.
Again, you MUST substitute the value in the following command snippets.
This is very important.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

ewong
Blank Cone
Blank Cone
Posts: 15
Joined: 29 May 2012 04:50

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby ewong » 05 Jun 2012 05:49

Code: Select all

../extras/package/win32/configure.sh --host=x86_64-w64-mingw32 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-linux-gnu checking host system type... x86_64-w64-mingw32 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for x86_64-w64-mingw32-strip... no checking for strip... 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 how to create a ustar tar archive... gnutar 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 x86_64-w64-mingw32-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... 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 accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... -std=gnu99 checking how to run the C preprocessor... 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 whether gcc -std=gnu99 and cc understand -c and -o together... yes checking for x86_64-w64-mingw32-g++... no checking for x86_64-w64-mingw32-c++... no checking for x86_64-w64-mingw32-gpp... no checking for x86_64-w64-mingw32-aCC... no checking for x86_64-w64-mingw32-CC... no checking for x86_64-w64-mingw32-cxx... no checking for x86_64-w64-mingw32-cc++... no checking for x86_64-w64-mingw32-cl.exe... no checking for x86_64-w64-mingw32-FCC... no checking for x86_64-w64-mingw32-KCC... no checking for x86_64-w64-mingw32-RCC... no checking for x86_64-w64-mingw32-xlC_r... no checking for x86_64-w64-mingw32-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -std=gnu99 -E checking for x86_64-w64-mingw32-gcc... no checking for x86_64-w64-mingw32-objcc... no checking for x86_64-w64-mingw32-objc... no checking for x86_64-w64-mingw32-cc... no checking for x86_64-w64-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) /bin/grep -E checking whether make sets $(MAKE)... (cached) yes checking dependency style of gcc -std=gnu99... gcc3 checking for desktop-file-validate... desktop-file-validate checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking for x86_64-w64-mingw32-windres... no checking for windres... no checking for x86_64-w64-mingw32-objcopy... no checking for objcopy... objcopy checking for unix2dos... no checking for todos... no checking for 3rd party libraries path... /home/verifeye/vlc/contrib/x86_64-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 gcc -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 x86_64-w64-mingw32-dumpbin... no checking for x86_64-w64-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... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert i686-pc-linux-gnu file names to x86_64-w64-mingw32 format... func_convert_file_nix_to_w32 checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-w64-mingw32-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... (cached) pass_all checking for x86_64-w64-mingw32-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... func_cygming_dll_for_implib_fallback checking for x86_64-w64-mingw32-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-w64-mingw32-strip... strip checking for x86_64-w64-mingw32-ranlib... no checking for ranlib... ranlib checking command to parse nm output from gcc -std=gnu99 object... ok checking for sysroot... no checking for x86_64-w64-mingw32-mt... no checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for x86_64-w64-mingw32-as... no checking for as... as checking for x86_64-w64-mingw32-dlltool... false checking for x86_64-w64-mingw32-objdump... objdump checking for objdir... .libs checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no checking for gcc -std=gnu99 option to produce PIC... -DDLL_EXPORT -DPIC checking if gcc -std=gnu99 PIC flag -DDLL_EXPORT -DPIC works... yes checking if gcc -std=gnu99 static flag -static works... yes checking if gcc -std=gnu99 supports -c -o file.o... yes checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... no checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... unsupported checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking for x86_64-w64-mingw32-windres... no checking for windres... no configure: error: VLC is based on plugins. Shared libraries cannot be disabled.../extras/package/win32/configure.sh --host=x86_64-w64-mingw32 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-linux-gnu checking host system type... x86_64-w64-mingw32 checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for x86_64-w64-mingw32-strip... no checking for strip... 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 how to create a ustar tar archive... gnutar 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 x86_64-w64-mingw32-gcc... no checking for gcc... gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... 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 accepts -g... yes checking for gcc option to accept ISO C89... none needed checking dependency style of gcc... gcc3 checking for gcc option to accept ISO C99... -std=gnu99 checking how to run the C preprocessor... 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 whether gcc -std=gnu99 and cc understand -c and -o together... yes checking for x86_64-w64-mingw32-g++... no checking for x86_64-w64-mingw32-c++... no checking for x86_64-w64-mingw32-gpp... no checking for x86_64-w64-mingw32-aCC... no checking for x86_64-w64-mingw32-CC... no checking for x86_64-w64-mingw32-cxx... no checking for x86_64-w64-mingw32-cc++... no checking for x86_64-w64-mingw32-cl.exe... no checking for x86_64-w64-mingw32-FCC... no checking for x86_64-w64-mingw32-KCC... no checking for x86_64-w64-mingw32-RCC... no checking for x86_64-w64-mingw32-xlC_r... no checking for x86_64-w64-mingw32-xlC... no checking for g++... g++ checking whether we are using the GNU C++ compiler... yes checking whether g++ accepts -g... yes checking dependency style of g++... gcc3 checking how to run the C preprocessor... gcc -std=gnu99 -E checking for x86_64-w64-mingw32-gcc... no checking for x86_64-w64-mingw32-objcc... no checking for x86_64-w64-mingw32-objc... no checking for x86_64-w64-mingw32-cc... no checking for x86_64-w64-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) /bin/grep -E checking whether make sets $(MAKE)... (cached) yes checking dependency style of gcc -std=gnu99... gcc3 checking for desktop-file-validate... desktop-file-validate checking for an ANSI C-conforming const... yes checking for inline... inline checking for C/C++ restrict keyword... __restrict checking for x86_64-w64-mingw32-windres... no checking for windres... no checking for x86_64-w64-mingw32-objcopy... no checking for objcopy... objcopy checking for unix2dos... no checking for todos... no checking for 3rd party libraries path... /home/verifeye/vlc/contrib/x86_64-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 gcc -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 x86_64-w64-mingw32-dumpbin... no checking for x86_64-w64-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... 1572864 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking how to convert i686-pc-linux-gnu file names to x86_64-w64-mingw32 format... func_convert_file_nix_to_w32 checking how to convert i686-pc-linux-gnu file names to toolchain format... func_convert_file_noop checking for /usr/bin/ld option to reload object files... -r checking for x86_64-w64-mingw32-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... (cached) pass_all checking for x86_64-w64-mingw32-dlltool... no checking for dlltool... no checking how to associate runtime and link libraries... func_cygming_dll_for_implib_fallback checking for x86_64-w64-mingw32-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-w64-mingw32-strip... strip checking for x86_64-w64-mingw32-ranlib... no checking for ranlib... ranlib checking command to parse nm output from gcc -std=gnu99 object... ok checking for sysroot... no checking for x86_64-w64-mingw32-mt... no checking for mt... mt checking if mt is a manifest tool... no checking for dlfcn.h... yes checking for x86_64-w64-mingw32-as... no checking for as... as checking for x86_64-w64-mingw32-dlltool... false checking for x86_64-w64-mingw32-objdump... objdump checking for objdir... .libs checking if gcc -std=gnu99 supports -fno-rtti -fno-exceptions... no checking for gcc -std=gnu99 option to produce PIC... -DDLL_EXPORT -DPIC checking if gcc -std=gnu99 PIC flag -DDLL_EXPORT -DPIC works... yes checking if gcc -std=gnu99 static flag -static works... yes checking if gcc -std=gnu99 supports -c -o file.o... yes checking if gcc -std=gnu99 supports -c -o file.o... (cached) yes checking whether the gcc -std=gnu99 linker (/usr/bin/ld) supports shared libraries... no checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... unsupported checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... no checking whether to build shared libraries... no checking whether to build static libraries... yes checking how to run the C++ preprocessor... g++ -E checking for ld used by g++... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no checking for g++ option to produce PIC... -DDLL_EXPORT -DPIC checking if g++ PIC flag -DDLL_EXPORT -DPIC works... yes checking if g++ static flag -static works... yes checking if g++ supports -c -o file.o... yes checking if g++ supports -c -o file.o... (cached) yes checking whether the g++ linker (/usr/bin/ld) supports shared libraries... no checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking for x86_64-w64-mingw32-windres... no checking for windres... no configure: error: VLC is based on plugins. Shared libraries cannot be disabled.
Same Shared Library message is displayed: Do shared libraries exist with the 64-bit edition?

I tried running this,

run apt-get install gcc-mingw32 mingw32-binutils

and get the follwing messages.

sudo apt-get install gcc-mingw32 mingw32-binutils
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help resolve the situation:

The following packages have unmet dependencies:
gcc-mingw32 : Depends: gcc-mingw-w64-i686 but it is not going to be installed
Depends: g++-mingw-w64-i686 but it is not going to be installed
Depends: gfortran-mingw-w64-i686 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby nkoriyama » 05 Jun 2012 08:14

Code: Select all

checking for x86_64-w64-mingw32-gcc... no checking for x86_64-w64-mingw32-g++... no
Your Mingw-w64 installation is wrong.
gcc-mingw-w64 and g++-mingw-w64 packages are also required.

YOU DON'T HAVE TO INSTALL gcc-mingw32 mingw32-binutils.
Mingw and Mingw-w64 are totally different.
Mingw supports only Windows 32bit.
Mingw-w64 supports both Windows 32bit and 64bit.

Today I tried to install Mingw-w64 to new Ubuntu 12.04 environment and I had no trouble to configure win32 and win64.
Here is my installation process:
1. get and install mingw-w64-dev_3.0

Code: Select all

$ wget http://ftp.jp.debian.org/debian/pool/main/m/mingw-w64/mingw-w64-dev_3.0~svn4933-1_all.deb $ sudo dpkg -i mingw-w64-dev_3.0~svn4933-1_all.deb
2. install gcc-mingw-w64 and g++-mingw-w64

Code: Select all

$ sudo apt-get install gcc-mingw-w64 g++-mingw-w64
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

ewong
Blank Cone
Blank Cone
Posts: 15
Joined: 29 May 2012 04:50

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby ewong » 05 Jun 2012 17:44

Thanks for the detailed explanation. The host triplet used through the build process
is: i686-w64-mingw32

Building VLC

The make process started but stopped here.
  • Making all in gui
    make[3]: Entering directory `/home/v/vlc/win32/modules/gui'
    make all-recursive
    make[4]: Entering directory `/home/v/vlc/win32/modules/gui'
    Making all in qt4
    make[5]: Entering directory `/home/v/vlc/win32/modules/gui/qt4'
    MOC main_interface.moc.cpp
    /bin/bash: /home/v/vlc/contrib/i686-w64-mingw32/bin/moc: cannot execute binary file
    make[5]: *** [main_interface.moc.cpp] Error 126
    make[5]: Leaving directory `/home/v/vlc/win32/modules/gui/qt4'
    make[4]: *** [all-recursive] Error 1
    make[4]: Leaving directory `/home/v/vlc/win32/modules/gui'
    make[3]: *** [all] Error 2
    make[3]: Leaving directory `/home/v/vlc/win32/modules/gui'
    make[2]: *** [all-recursive] Error 1
    make[2]: Leaving directory `/home/v/vlc/win32/modules'
    make[1]: *** [all-recursive] Error 1
    make[1]: Leaving directory `/home/v/vlc/win32'
the moc program was not available in the folder /home/v/vlc/contrib/i686-w64-mingw32/bin/
Based on a Google search, I assume that moc is Music on Console, the console audio player
  • VirtualBox:~/vlc/contrib/i686-w64-mingw32/bin$ moc
    The program 'moc' can be found in the following packages:
    * libqt4-dev
    * qt3-dev-tools
    Try: sudo apt-get install <selected package>
The libqt4-dev was installed and the make restarted.
However, the build stopped at the same point in the build process, again.

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby nkoriyama » 05 Jun 2012 18:53

moc is meta object compiler. http://doc.qt.nokia.com/4.7/moc.html
After deleting the files (moc, uic and rcc) from contrib/$(host-triplet)/bin, you have to re-configure. Because they are scanned when configuring. See config.log.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

ewong
Blank Cone
Blank Cone
Posts: 15
Joined: 29 May 2012 04:50

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby ewong » 05 Jun 2012 21:25

As you suggested
After deleting the files (moc, uic and rcc) from contrib/$(host-triplet)/bin, you have to re-configure. Because they are scanned when configuring. See config.log.
Re-configured the build, now it stops as shown below

Code: Select all

CXX libqt4_plugin_la-main_interface_win32.lo In file included from ../../../../extras/package/win32/../../../modules/gui/qt4/main_interface_win32.cpp:27:0: ../../../../extras/package/win32/../../../modules/gui/qt4/input_manager.hpp: In member function 'bool InputManager::hasInput()': ../../../../extras/package/win32/../../../modules/gui/qt4/input_manager.hpp:136:16: warning: 'bool vlc_object_alive(const vlc_object_t*)' is deprecated (declared at ../../../../extras/package/win32/../../../include/vlc_objects.h:77) [-Wdeprecated-declarations] ../../../../extras/package/win32/../../../modules/gui/qt4/input_manager.hpp:136:16: warning: 'bool vlc_object_alive(const vlc_object_t*)' is deprecated (declared at ../../../../extras/package/win32/../../../include/vlc_objects.h:77) [-Wdeprecated-declarations] CXX libqt4_plugin_la-main_interface.moc.lo main_interface.moc.cpp:14:2: error: #error "This file was generated using the moc from 4.8.1. It" main_interface.moc.cpp:15:2: error: #error "cannot be used with the include files from this version of Qt." main_interface.moc.cpp:16:2: error: #error "(The moc has changed too much.)" main_interface.moc.cpp:123:93: error: no 'void MainInterface::qt_static_metacall(QObject*, QMetaObject::Call, int, void**)' member function declared in class 'MainInterface' main_interface.moc.cpp:182:43: error: 'const QMetaObjectExtraData MainInterface::staticMetaObjectExtraData' is not a static member of 'class MainInterface' main_interface.moc.cpp:183:9: error: 'qt_static_metacall' was not declared in this scope main_interface.moc.cpp:188:36: error: 'staticMetaObjectExtraData' was not declared in this scope main_interface.moc.cpp: In member function 'virtual int MainInterface::qt_metacall(QMetaObject::Call, int, void**)': main_interface.moc.cpp:215:49: error: 'qt_static_metacall' was not declared in this scope make[6]: *** [libqt4_plugin_la-main_interface.moc.lo] Error 1 make[6]: Leaving directory `/home/v/vlc/win32/modules/gui/qt4' make[5]: *** [all] Error 2 make[5]: Leaving directory `/home/v/vlc/win32/modules/gui/qt4' make[4]: *** [all-recursive] Error 1 make[4]: Leaving directory `/home/v/vlc/win32/modules/gui' make[3]: *** [all] Error 2 make[3]: Leaving directory `/home/v/vlc/win32/modules/gui' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/home/v/vlc/win32/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/v/vlc/win32' make: *** [all] Error 2
I installed both these packages before reconfiguring, do I need to remove one or both of them and use a different package?
  • * libqt4-dev
    * qt3-dev-tools

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby nkoriyama » 05 Jun 2012 21:53

You don't have to install qt3-dev-tools.
And this error means your qt4 library version is too old. (linux qt4 moc = 4.8.1, contrib qt4 library = 4.7.4)
Please build qt4 library yourself or downgrade your qt4 on the linux side (moc command). I don't know you can downgrade or not...

if you want to make qt4 library only:

Code: Select all

$ cd contrib/win32 $ make .qt4
if you want to make all contrib libraries:

Code: Select all

$ cd contrib/win32 $ make
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

ewong
Blank Cone
Blank Cone
Posts: 15
Joined: 29 May 2012 04:50

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby ewong » 06 Jun 2012 05:06

Thanks, as you recommended. Downloading and compiling the qt4 library allowed make to run to completion.

Next, I tried: make package-win32-zip and also make package-win32.

Both of the builds, stopped at this point

Code: Select all

test -z "/home/v/vlc/win32/_win32/bin" || /bin/mkdir -p "/home/v/vlc/win32/_win32/bin" /usr/bin/install -c cvlc rvlc qvlc svlc '/home/v/vlc/win32/_win32/bin' make install-exec-hook make[5]: Entering directory `/home/v/vlc/win32' if test "i686-pc-linux-gnu" = "i686-w64-mingw32"; then \ PATH="/home/v/vlc/win32/_win32/bin:$PATH" \ LD_LIBRARY_PATH="/home/v/vlc/win32/_win32/lib:$LD_LIBRARY_PATH" \ "/home/v/vlc/win32/_win32/lib/vlc/vlc-cache-gen.exe" \ "/home/v/vlc/win32/_win32/lib/vlc/plugins" ; \ else \ echo "Cross-compilation: cache generation skipped!" ; \ fi Cross-compilation: cache generation skipped! make[5]: Leaving directory `/home/v/vlc/win32' make[4]: Nothing to be done for `install-data-am'. make[4]: Leaving directory `/home/v/vlc/win32' make[3]: Leaving directory `/home/v/vlc/win32' make[2]: Leaving directory `/home/v/vlc/win32' make[1]: Leaving directory `/home/v/vlc/win32' touch package-win-install svn export http://npapi-sdk.googlecode.com/svn/trunk/headers gecko -r HEAD
Any idea why a timeout occurs at the svn export line?

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby nkoriyama » 06 Jun 2012 06:17

At least for me, the svn command works well at the moment.

How about trying the command on the terminal? Can you fetch the source via SVN?
If you can't, I have no idea...

Well, if I were you, I'll modify makefile (or extra/package/win32/package.mak) to skip npapi related things... But please don't ask me how to modify...
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

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

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby Rémi Denis-Courmont » 06 Jun 2012 08:37

Either svn is not using your proxy settings, or the proxy settings are wrong, or the googlecode.com server is not responding.

That said, I wonder who's had the notion that using the network in the packaging process was acceptable.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

ewong
Blank Cone
Blank Cone
Posts: 15
Joined: 29 May 2012 04:50

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby ewong » 06 Jun 2012 15:55

A Browser was able to see the files in the folder: http://npapi-sdk.googlecode.com/svn/trunk/headers

Edited the servers file: tried my local ~/.subversion/servers as well as the system svn servers file and uncommented and modified the following lines:

http-proxy-host = 74.125.142.82
http-proxy-port = 8080

The Stack trace verifies the address and port settings.

strace svn export http://npapi-sdk.googlecode.com/svn/trunk/headers gecko -r HEAD

Code: Select all

setsockopt(5, SOL_TCP, TCP_NODELAY, [1], 4) = 0 fcntl64(5, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK) connect(5, {sa_family=AF_INET, sin_port=htons(8080), sin_addr=inet_addr("74.125.142.82")}, 16) = -1 EINPROGRESS (Operation now in progress)
Executing the svn command produces the following message after a period of time

Code: Select all

svn: OPTIONS of 'http://npapi-sdk.googlecode.com/svn/trunk/headers': could not connect to server (http://npapi-sdk.googlecode.com)

ewong
Blank Cone
Blank Cone
Posts: 15
Joined: 29 May 2012 04:50

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby ewong » 07 Jun 2012 22:49

nkoriyama, thanks for your help:

I did not have any success setting the svn proxy settings within ubuntu,
instead I ran tortoiseSVN within my Win7 HOST OS:
- right-click and select the export feature: URL of repository: http://npapi-sdk.googlecode.com/sv/trunk
- select a Export directory, fully recursive option, revision HEAD revision selected.


- share the folder with the VirtualBox Ubuntu, save the *.h (header) files in: ~/vlc/win32/gecko
- modify the Makefile : comment out the following:

Code: Select all

stamp-gecko-fetch: # svn export http://npapi-sdk.googlecode.com/svn/trunk/headers gecko -r HEAD touch $@
make package-win32-zip runs to completion.

runner0502
Blank Cone
Blank Cone
Posts: 27
Joined: 25 Jun 2012 12:35
VLC version: 2.1.0-git
Operating System: windows, MacOS,linux
Location: China

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby runner0502 » 11 Aug 2012 10:54

nkoriyama, thanks for your help:

I did not have any success setting the svn proxy settings within ubuntu,
instead I ran tortoiseSVN within my Win7 HOST OS:
- right-click and select the export feature: URL of repository: http://npapi-sdk.googlecode.com/sv/trunk
- select a Export directory, fully recursive option, revision HEAD revision selected.


- share the folder with the VirtualBox Ubuntu, save the *.h (header) files in: ~/vlc/win32/gecko
- modify the Makefile : comment out the following:

Code: Select all

stamp-gecko-fetch: # svn export http://npapi-sdk.googlecode.com/svn/trunk/headers gecko -r HEAD touch $@
make package-win32-zip runs to completion.

yest , it work
code for fun

Neikius
New Cone
New Cone
Posts: 1
Joined: 21 Dec 2010 12:22

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby Neikius » 22 Sep 2012 04:26

I will just put this here, since I have followed the same guide and tips from this thread (for that additional mingw package). Trying to cross-compile a 64bit version... ubuntu 12.04 x64 and as mentioned using the tutorial from the first post.
make[4]: Entering directory `/home/nejc/vlc/win32/modules/codec'
CC libavcodec_plugin_la-dxva2.lo
../../../extras/package/win32/../../../modules/codec/avcodec/dxva2.c:80:20: fatal error: dxva.h: No such file or directory
compilation terminated.
Well, there is no dxva.h on my system. I guess I am missing something, but what? If anyone has an idea regarding this help would be appreciated. Google is useless in this case.

Regards

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby nkoriyama » 22 Sep 2012 17:48

You need more recent MinGW-w64.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

captainst
Blank Cone
Blank Cone
Posts: 24
Joined: 01 Sep 2011 16:43

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby captainst » 02 Oct 2012 15:12

Hello nkoriyama and ewong,

Many thanks for this post. I followed the steps in this thread to compile the VLC 2.0.1 for windows. *almost* all problems I encountered during compilation are identical.

I still have the problem with the qt4 library from the contribute.

I performed a make .qt4 as nkoriyama suggested:

Code: Select all

$ cd contrib/win32 $ make .qt4
But from the log I see that it still tries to download the 4.7.4 tarball from nokia:

Code: Select all

--2012-10-02 05:55:06-- http://download.qt.nokia.com/qt/source/qt-everywhere-opensource-src-4.7.4.tar.gz
How to tell the make to download the 4.8.1 version ?

nkoriyama
Cone that earned his stripes
Cone that earned his stripes
Posts: 338
Joined: 01 Sep 2011 20:50
VLC version: git
Operating System: Windows / Mac OS X
Location: Japan

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby nkoriyama » 02 Oct 2012 17:51

Copy contrib/src/qt4 directory from latest vlc-2.0.git or vlc-2.0.2.
How To Ask Questions The Smart Way http://www.catb.org/~esr/faqs/smart-questions.html
My hack for ISDB-T http://sdrv.ms/126weue

captainst
Blank Cone
Blank Cone
Posts: 24
Joined: 01 Sep 2011 16:43

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby captainst » 02 Oct 2012 18:01

Copy contrib/src/qt4 directory from latest vlc-2.0.git or vlc-2.0.2.
Thank you again. I'll try that later.

I was up to make an update on the progress: I found this link:
http://git.videolan.org/gitweb.cgi/vlc. ... 1975a9dd78

After patching the qt4 folder manually (I do not understand how to use patch so I just downloaded the single files and removed the original ones), I successfully built the VLC !

But I do not find the libvlc.dll, and libvlccore.dll. How can I generate these ?

captainst
Blank Cone
Blank Cone
Posts: 24
Joined: 01 Sep 2011 16:43

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby captainst » 03 Oct 2012 17:02

I have finally successfully built the VLC win32 package with the following command:

Code: Select all

make package-win32
But after installing this on a win7 32bit machine, launching the VLC is OK. But it automatically closed (as if it crashes) when tried to open any type of media.

*EDIT* I noticed that respect to the orignal VLC-2.0.1, 2 more dlls are generated with this new compilation: libgcc_s_sjlj-1.dll, and libstdc++-6.dll. It seems that these 2 dlls create some problems

captainst
Blank Cone
Blank Cone
Posts: 24
Joined: 01 Sep 2011 16:43

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby captainst » 06 Oct 2012 10:09

Finally, I succeeded in compiling the version 2.0.3 with windows installator, after failed with 2.0.1, 2.0.2, and 2.1.0 git. This is the only version worked with the setup I have.

With 2.0.1 and 2.0.2. The compilation process goes until the end. I needed to manually patch the qt4 contrib package and build it from source as nkoriyama suggested. Moreover, towards the final steps of make package-win32 I got several errors regarding language suit which I managed to resolve (several .nsh file not found. I copied these .nsh file reported missing from elsewhere). But after installation on win7 32bit or 64bit (I tried both), the VLC automatically closed itself (as if it crashed) when playing any type of media. But it seemed to work on winxp system.

With 2.1.0 git, the qt4 contrib package does not need to be patched, but still needs to be rebuilt. There was not .nsh file missing error during the make package-win32 process. However, the compiled installator won't start on win7 32bit or 64bit. The error was "unable to elevate, error:", and there was no code after error. I tried to install it with Administrator privilege, and in compatibility mode, but nothing changed. The installator seemed to work on winxp system.

With 2.0.3, the qt4 contrib package does not need to be patched, but still needs to be rebuilt as with 2.1.0 git. There were errors concerning the missing .nsh file and I copied from elsewhere. The generated installator finally worked on win7 32bit and 64bit.

My environment: ubuntu-12.04.1 in VMWare Player 3.1.4

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: Win32Compile -- configure error using Ubuntu 12.04

Postby Jean-Baptiste Kempf » 06 Oct 2012 16:39

unable to elevate is easy to fix: right click and run as admin
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.

lwx_me
New Cone
New Cone
Posts: 2
Joined: 15 Oct 2012 10:19

Re: Win32Compile -- configure error using Ubuntu 12.04

Postby lwx_me » 15 Oct 2012 10:54

First sorry for my poor English,I'm a Chinese
I compiled VLC based on http://wiki.videolan.org/Win32Compile and with the same trouble of "Qt4".Though Google I found this page.
After rebuilding qt4 I succeeded in compiling version 2.1.0 git. I copied to windows system and double clicked vlc.exe.
I only got a console interface,there was no GUI.
Image
I try the following command in console, but nothing happen

Code: Select all

vlc.exe -I qt4
My environment: fedora 17 ,i686-w64-mingw32
Last edited by lwx_me on 16 Oct 2012 02:22, edited 1 time in total.


Return to “Development around libVLC”

Who is online

Users browsing this forum: No registered users and 11 guests