VLC 0.9.2 compiling problem: problem with qt4
Posted: 20 Sep 2008 02:34
Hi, I am new on vlc development, I recently downloaded vlc 0.9.2 source code from videolan.org, and I tried to compile it by following the instruction from http://wiki.videolan.org/Win32CompileCygwinNew with cygwin on window xp home. Everything is fine until I stuck on error during building. the error look like following:
In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32
api/windows.h:50,
from ../../../include/vlc_common.h:484,
from qt4.hpp:32,
from qt4.cpp:37:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1663: er
ror: declaration of C function `LONG InterlockedCompareExchange(volatile LONG*,
LONG, LONG)' conflicts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:393: error: previous declaration
`long int InterlockedCompareExchange(long int*, long int, long int)' here
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1667: er
ror: declaration of C function `LONG InterlockedDecrement(volatile LONG*)' confl
icts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:395: error: previous declaration
`long int InterlockedDecrement(long int*)' here
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1668: er
ror: declaration of C function `LONG InterlockedExchange(volatile LONG*, LONG)'
conflicts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:396: error: previous declaration
`long int InterlockedExchange(long int*, long int)' here
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1672: er
ror: declaration of C function `LONG InterlockedExchangeAdd(volatile LONG*, LONG
)' conflicts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:397: error: previous declaration
`long int InterlockedExchangeAdd(long int*, long int)' here
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1676: er
ror: declaration of C function `LONG InterlockedIncrement(volatile LONG*)' confl
icts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:394: error: previous declaration
`long int InterlockedIncrement(long int*)' here
make[6]: *** [libqt4_plugin_la-qt4.lo] Error 1
make[6]: Leaving directory `/cygdrive/c/vlc/modules/gui/qt4'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/cygdrive/c/vlc/modules/gui/qt4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/vlc/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/vlc/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/vlc'
make: *** [all] Error 2
I try everything I could but nothing work. I used lastest contrib package contrib-20080811-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2 and cygwin but nothing work
the following is my configure-vlc.sh
PATH=/usr/win32/bin:$PATH \
PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--host=i686-pc-mingw32 \
--disable-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \
--with-wx-config-path=/usr/win32/bin \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-live555 --with-live555-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--enable-debug --enable-dca \
--disable-mkv --disable-taglib \
--enable-qt4
please!!! anyone!!! help me on this problem, I stuck on this one for a week....thank you very much
In file included from /usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32
api/windows.h:50,
from ../../../include/vlc_common.h:484,
from qt4.hpp:32,
from qt4.cpp:37:
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1663: er
ror: declaration of C function `LONG InterlockedCompareExchange(volatile LONG*,
LONG, LONG)' conflicts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:393: error: previous declaration
`long int InterlockedCompareExchange(long int*, long int, long int)' here
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1667: er
ror: declaration of C function `LONG InterlockedDecrement(volatile LONG*)' confl
icts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:395: error: previous declaration
`long int InterlockedDecrement(long int*)' here
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1668: er
ror: declaration of C function `LONG InterlockedExchange(volatile LONG*, LONG)'
conflicts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:396: error: previous declaration
`long int InterlockedExchange(long int*, long int)' here
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1672: er
ror: declaration of C function `LONG InterlockedExchangeAdd(volatile LONG*, LONG
)' conflicts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:397: error: previous declaration
`long int InterlockedExchangeAdd(long int*, long int)' here
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32api/winbase.h:1676: er
ror: declaration of C function `LONG InterlockedIncrement(volatile LONG*)' confl
icts with
/usr/win32/include/qt4/QtCore/qatomic_windows.h:394: error: previous declaration
`long int InterlockedIncrement(long int*)' here
make[6]: *** [libqt4_plugin_la-qt4.lo] Error 1
make[6]: Leaving directory `/cygdrive/c/vlc/modules/gui/qt4'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/cygdrive/c/vlc/modules/gui/qt4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/vlc/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/vlc/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/vlc'
make: *** [all] Error 2
I try everything I could but nothing work. I used lastest contrib package contrib-20080811-win32-bin-gcc-4.2.1-sjlj-runtime-3.13-only.tar.bz2 and cygwin but nothing work
the following is my configure-vlc.sh
PATH=/usr/win32/bin:$PATH \
PKG_CONFIG_LIBDIR=/usr/win32/lib/pkgconfig \
CPPFLAGS="-I/usr/win32/include -I/usr/win32/include/ebml" \
LDFLAGS=-L/usr/win32/lib \
CC="gcc -mno-cygwin" CXX="g++ -mno-cygwin" \
./configure \
--host=i686-pc-mingw32 \
--disable-gtk \
--enable-nls --enable-sdl --with-sdl-config-path=/usr/win32/bin \
--enable-ffmpeg --with-ffmpeg-mp3lame --with-ffmpeg-faac \
--with-ffmpeg-zlib --enable-faad --enable-flac --enable-theora \
--with-wx-config-path=/usr/win32/bin \
--with-freetype-config-path=/usr/win32/bin \
--with-fribidi-config-path=/usr/win32/bin \
--enable-live555 --with-live555-tree=/usr/win32/live.com \
--enable-caca --with-caca-config-path=/usr/win32/bin \
--with-xml2-config-path=/usr/win32/bin \
--with-dvdnav-config-path=/usr/win32/bin \
--disable-cddax --disable-vcdx --enable-goom \
--enable-twolame --enable-dvdread \
--enable-debug --enable-dca \
--disable-mkv --disable-taglib \
--enable-qt4
please!!! anyone!!! help me on this problem, I stuck on this one for a week....thank you very much