[vlc-devel] Linux mingw32 cross compile problem - svn 23078
Vladimir Kokovic
vladimir.kokovic at a-asoft.com
Wed Nov 14 22:43:50 CET 2007
Hi,
./bootstrap > build-out0.log 2>&1 && \
PKG_CONFIG_LIBDIR=$CONTRIB_DIR/lib/pkgconfig \
CPPFLAGS="-I${CONTRIB_DIR}/include -I${CONTRIB_DIR}/include/ebml" \
LDFLAGS=-L${CONTRIB_DIR}/lib \
JAVA_HOME=/usr/lib/jvm/java-6-sun \
JAVAC=$JAVA_HOME/bin/javac.exe \
JAVA=$JAVA_HOME/bin/java.exe \
CC=i586-mingw32msvc-gcc CXX=i586-mingw32msvc-g++ \
./configure --host=i586-mingw32msvc --build=i386-linux --disable-gtk --enable-nls \
--enable-sdl --with-sdl-config-path=$CONTRIB_DIR/bin \
--enable-mozilla --with-mozilla-sdk-path=$CONTRIB_DIR/gecko-sdk \
--enable-ffmpeg --with-ffmpeg-config-path=$CONTRIB_DIR/bin --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \
--with-freetype-config-path=$CONTRIB_DIR/bin --with-fribidi-config-path=$CONTRIB_DIR/bin \
--enable-live555 --with-live555-tree=$CONTRIB_DIR/live.com --enable-caca --with-caca-config-path=$CONTRIB_DIR/bin \
--with-xml2-config-path=$CONTRIB_DIR/bin --enable-dvdnav=yes \
--disable-cddax --disable-vcdx --enable-goom --enable-twolame --enable-dvdread \
--enable-wxwidgets=no --enable-debug --enable-java-bindings --enable-shared-libvlc >> build-out0.log 2>&1 && \
make all >> build-out0.log 2>&1
i586-mingw32msvc-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I../.. -I/usr/win32/include -I/usr/win32/include/ebml -DSYS_MINGW32 -I../../include -I../../include -I/usr/local/include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE -D_REENTRANT -D_THREAD_SAFE -DLOCALEDIR=\"/usr/local/share/locale\" -DDATA_PATH=\"/usr/local/share/vlc\" -DPLUGIN_PATH=\"/usr/local/lib/vlc\" -DDEBUG -O2 -ffast-math -funroll-loops -mtune=pentium2 -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=dvdnav -DMODULE_NAME_IS_dvdnav -g -I/usr/include -I/usr/include/dvdnav -mms-bitfields -Wall -Wextra -Wno-unused-parameter -Wsign-compare -Wundef -Wpointer-arith -Wbad-function-cast -Wcast-align -Wwrite-strings -Wmissing-prototypes -MT libdvdnav_plugin_la-dvdnav.lo -MD -MP -MF .deps/libdvdnav_plugin_la-dvdnav.Tpo -c dvdnav.c -DDLL_EXPORT -DPIC -o .libs/libdvdnav_plugin_la-dvdnav.o
In file included from ../../include/vlc/vlc.h:155,
from dvdnav.c:28:
../../include/vlc_common.h:140: error: redefinition of typedef 'ssize_t'
/usr/include/sys/types.h:110: error: previous declaration of 'ssize_t' was here
In file included from ../../include/vlc_threads.h:50,
from ../../include/vlc_common.h:543,
from ../../include/vlc/vlc.h:155,
from dvdnav.c:28:
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/process.h:61: error: syntax error before "_pid_t"
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/process.h:63: error: syntax error before "_getpid"
In file included from ../../include/vlc/vlc.h:155,
from dvdnav.c:28:
../../include/vlc_common.h:876:1: warning: "strndup" redefined
In file included from /usr/include/string.h:423,
from ../../include/vlc_common.h:67,
from ../../include/vlc/vlc.h:155,
from dvdnav.c:28:
/usr/include/bits/string2.h:1345:1: warning: this is the location of the previous definition
In file included from /usr/include/bits/local_lim.h:36,
from /usr/include/bits/posix1_lim.h:153,
from /usr/include/dirent.h:232,
from ../../include/vlc_common.h:1029,
from ../../include/vlc/vlc.h:155,
from dvdnav.c:28:
/usr/include/linux/limits.h:14:1: warning: "PATH_MAX" redefined
In file included from ../../include/vlc/vlc.h:155,
from dvdnav.c:28:
../../include/vlc_common.h:135:1: warning: this is the location of the previous definition
In file included from ../../include/vlc_common.h:1029,
from ../../include/vlc/vlc.h:155,
from dvdnav.c:28:
/usr/include/dirent.h:257: error: conflicting types for 'vlc_scandir'
../../include/vlc_common.h:940: error: previous declaration of 'vlc_scandir' was here
/usr/include/dirent.h:257: error: conflicting types for 'vlc_scandir'
../../include/vlc_common.h:940: error: previous declaration of 'vlc_scandir' was here
/usr/include/dirent.h:284: error: conflicting types for 'vlc_alphasort'
../../include/vlc_common.h:941: error: previous declaration of 'vlc_alphasort' was here
/usr/include/dirent.h:284: error: conflicting types for 'vlc_alphasort'
../../include/vlc_common.h:941: error: previous declaration of 'vlc_alphasort' was here
In file included from ../../include/vlc/vlc.h:155,
from dvdnav.c:28:
../../include/vlc_common.h:1105: error: redefinition of typedef 'off_t'
/usr/include/sys/types.h:90: error: previous declaration of 'off_t' was here
In file included from dvdnav.c:36:
/usr/include/unistd.h:245: error: conflicting types for 'socklen_t'
../../include/vlc_common.h:156: error: previous declaration of 'socklen_t' was here
/usr/include/unistd.h:505: error: conflicting types for 'execve'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/process.h:119: error: previous declaration of 'execve' was here
/usr/include/unistd.h:505: error: conflicting types for 'execve'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/process.h:119: error: previous declaration of 'execve' was here
/usr/include/unistd.h:517: error: conflicting types for 'execv'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/process.h:118: error: previous declaration of 'execv' was here
/usr/include/unistd.h:517: error: conflicting types for 'execv'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/process.h:118: error: previous declaration of 'execv' was here
/usr/include/unistd.h:532: error: conflicting types for 'execvp'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/process.h:120: error: previous declaration of 'execvp' was here
/usr/include/unistd.h:532: error: conflicting types for 'execvp'
/usr/lib/gcc/i586-mingw32msvc/3.4.5/../../../../i586-mingw32msvc/include/process.h:120: error: previous declaration of 'execvp' was here
In file included from /usr/include/fcntl.h:34,
from dvdnav.c:45:
/usr/include/bits/fcntl.h:42:1: warning: "O_NONBLOCK" redefined
In file included from ../../include/vlc/vlc.h:155,
from dvdnav.c:28:
../../include/vlc_common.h:1131:1: warning: this is the location of the previous definition
dvdnav.c: In function `Open':
dvdnav.c:254: warning: passing arg 2 of `dvdnav_menu_language_select' discards qualifiers from pointer target type
dvdnav.c:270: warning: passing arg 2 of `dvdnav_audio_language_select' discards qualifiers from pointer target type
dvdnav.c:283: warning: passing arg 2 of `dvdnav_spu_language_select' discards qualifiers from pointer target type
dvdnav.c: In function `ProbeDVD':
dvdnav.c:1386: error: storage size of 'stat_info' isn't known
dvdnav.c:1397: warning: implicit declaration of function `_stati64'
dvdnav.c:1386: warning: unused variable `stat_info'
make[4]: *** [libdvdnav_plugin_la-dvdnav.lo] Error 1
make[4]: Leaving directory `/media/hda5/tmp/vlc-svn/vlc-trunk-mingw32/modules/access'
make[3]: *** [all-modules] Error 1
make[3]: Leaving directory `/media/hda5/tmp/vlc-svn/vlc-trunk-mingw32/modules/access'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/media/hda5/tmp/vlc-svn/vlc-trunk-mingw32/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/media/hda5/tmp/vlc-svn/vlc-trunk-mingw32'
make: *** [all] Error 2
Best regards
Vladimir Kokovic, DP senior, Belgrade, Serbia
More information about the vlc-devel
mailing list