[vlc-devel] Problems compiling latest source in cgywin
Mark Moriarty
mfmbusiness at earthlink.net
Tue Oct 21 01:36:57 CEST 2008
The QT4 error is documented up on the mingw mailing list.
qatomic_windows.h defines things that are found in the latest mingw
winbase.h for Cygwin.
I edited qatomic_windows.h -- down around line 394, just after the #else,
add:
#ifndeF __INTERLOCKED_DECARED
#define __INTERLOCKED_DECLARED
And add
#endif
After the extern "C" block , just before the inline bool statement
_____
From: vlc-devel-bounces at videolan.org [mailto:vlc-devel-bounces at videolan.org]
On Behalf Of Leith Bade
Sent: Monday, October 20, 2008 8:07 AM
To: vlc-devel at videolan.org
Subject: [vlc-devel] Problems compiling latest source in cgywin
I followed the instructions at
http://wiki.videolan.org/Win32CompileCygwinNew but have had a few problems
getting the git downloaded source code to compile.
I got this while compiling:
g++ -mno-cygwin -DHAVE_CONFIG_H -I. -I../../.. -I../../../include
-I../../../in
clude -I/usr/win32/include -I/usr/win32/include/ebml -DSYS_MINGW32
-I/usr/local/
include -D_FILE_OFFSET_BITS=64 -D__USE_UNIX98 -D_LARGEFILE64_SOURCE
-D_REENTRANT
-D_THREAD_SAFE -DDEBUG -D__LIBVLC__ -D__PLUGIN__ -DMODULE_NAME=qt4
-DMODULE_NAM
E_IS_qt4 -DMODULE_STRING=\"qt4\" -g -O0 -DQT_NODLL -I/usr/win32/include/qt4
-I/u
sr/win32/include/qt4/QtCore -I/usr/win32/include/qt4/QtGui
-DQT4LOCALEDIR=\"/usr
/win32/share/qt4/translations/\" -mms-bitfields -MT libqt4_plugin_la-qt4.lo
-MD
-MP -MF .deps/libqt4_plugin_la-qt4.Tpo -c qt4.cpp -DDLL_EXPORT -DPIC -o
.libs/l
ibqt4_plugin_la-qt4.o
In file included from
/usr/lib/gcc/i686-pc-mingw32/3.4.4/../../../../include/w32
api/windows.h:50,
from ../../../include/vlc_common.h:497,
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/../src/corelib/arch/qatomic_windows.h:194:
error:
previous declaration `long int InterlockedCompareExchange(long int*, long
int, l
ong 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/../src/corelib/arch/qatomic_windows.h:196:
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/../src/corelib/arch/qatomic_windows.h:197:
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/../src/corelib/arch/qatomic_windows.h:198:
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/../src/corelib/arch/qatomic_windows.h:195:
error:
previous declaration `long int InterlockedIncrement(long int*)' here
In file included from ../../../include/vlc_common.h:500,
from qt4.hpp:32,
from qt4.cpp:37:
../../../include/vlc_mtime.h:84: warning: `error' attribute directive
ignored
../../../include/vlc_mtime.h:94: warning: `warning' attribute directive
ignored
../../../include/vlc_mtime.h:112: warning: `error' attribute directive
ignored
make[6]: *** [libqt4_plugin_la-qt4.lo] Error 1
make[6]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui/qt4'
make[5]: *** [all] Error 2
make[5]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui/qt4'
make[4]: *** [all-recursive] Error 1
make[4]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/cygdrive/c/VLC/vlc/modules/gui'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/cygdrive/c/VLC/vlc/modules'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/cygdrive/c/VLC/vlc'
make: *** [all] Error 2
Also where can I find the latest Win32 "contrib" package? The wiki suggested
http://people.videolan.org/~jb/Contribs/contrib-20080702-win32-bin-gcc-4.2.1
-sjlj-runtime-3.13-only.tar.bz2 but then configure complains about live 555
being outdated and won't complete until I add --disable-live555
Any help will be much appreciated.
Thanks,
Leith Bade
leith at leithalweapon.geek.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20081020/1d6f44ea/attachment.html>
More information about the vlc-devel
mailing list