Qt 4.1.4 Source Compile on Windows with MinGW -


i having issue compiling source of qt framework version 4.1.4. (see attached picture exact compiler error text)

i using source of qt (http://get.qt.nokia.com/qt/source/qt-win-opensource-src-4.1.4.zip)

and i'm using mingw (latest here http://sourceforge.net/projects/mingw/files/) has gcc version 4.5.0.1

to me seems function prototypes diff in qatomic.h , gcc include winbase.h, might due qt 4.1.4 bit old.

can tell me how solve issue? changing mingw version? or other environmental setting?

it nice if has compiled qt 4.1.4 mingw in past please let me know version of mingw , gcc used?


compiler output:

d:\qt\qt-win-opensource-src-4.1.4>mingw32-make  cd src && mingw32-make -f makefile  mingw32-make[1]: entering directory `d:/qt/qt-win-opensource-src-4.1.4/src' cd winmain && mingw32-make -f makefile  mingw32-make[2]: entering directory `d:/qt/qt-win-opensource-src-4.1.4/src/winma in'  mingw32-make -f makefile.debug  mingw32-make[3]: entering directory `d:/qt/qt-win-opensource-src-4.1.4/src/winma in'  g++ -c -g -g -wall -frtti -fexceptions -dqt_thread_support -dunicode -dqt_largef ile_support -dqt_needs_qmain -dqt_no_cast_to_ascii -dqt3_support -dqt_moc_compat  -i"d:/qt/qt-win-opensource-src-4.1.4/include" -i"tmp" -i"d:/qt/qt-win-opensourc e-src-4.1.4/include/qtcore" -i"d:\qt\qt-win-opensource-src-4.1.4\include\qtmain"  -i"tmp" -i"d:/qt/qt-win-opensource-src-4.1.4/include/activeqt" -i"tmp\moc\debug _shared" -i"." -i"..\..\mkspecs\win32-g++" -o tmp\obj\debug_shared\qtmain_win.o qtmain_win.cpp  in file included d:/qt/qt-win-opensource-src-4.1.4/include/qtcore/arch/qato mic.h:1:0,                   d:/qt/qt-win-opensource-src-4.1.4/include/qtcore/../../src /corelib/thread/qatomic.h:31,                   d:/qt/qt-win-opensource-src-4.1.4/include/qtcore/qatomic.h :1,                   d:/qt/qt-win-opensource-src-4.1.4/include/qtcore/../../src /corelib/tools/qbytearray.h:28,                   d:/qt/qt-win-opensource-src-4.1.4/include/qtcore/qbytearra y.h:1,                  qtmain_win.cpp:25:  d:/qt/qt-win-opensource-src-4.1.4/include/qtcore/arch/../../../src/corelib/arch/ windows/arch/qatomic.h:154:87: error: declaration of c function 'long int interl ockedcompareexchange(long int*, long int, long int)' conflicts  c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1689:13: err or: previous declaration 'long interlockedcompareexchange(volatile long*, long, long)' here  d:/qt/qt-win-opensource-src-4.1.4/include/qtcore/arch/../../../src/corelib/arch/ windows/arch/qatomic.h:155:69: error: declaration of c function 'long int interl ockedincrement(long int*)' conflicts  c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1702:13: err or: previous declaration 'long interlockedincrement(volatile long*)' here d:/qt/qt-win-opensource-src-4.1.4/include/qtcore/arch/../../../src/corelib/arch/ windows/arch/qatomic.h:156:69: error: declaration of c function 'long int interl ockeddecrement(long int*)' conflicts  c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1693:13: err or: previous declaration 'long interlockeddecrement(volatile long*)' here  d:/qt/qt-win-opensource-src-4.1.4/include/qtcore/arch/../../../src/corelib/arch/ windows/arch/qatomic.h:157:74: error: declaration of c function 'long int interl ockedexchange(long int*, long int)' conflicts  c:\mingw\bin\../lib/gcc/mingw32/4.5.0/../../../../include/winbase.h:1694:13: err or: previous declaration 'long interlockedexchange(volatile long*, long)' here  mingw32-make[3]: *** [tmp\obj\debug_shared\qtmain_win.o] error 1  mingw32-make[3]: leaving directory `d:/qt/qt-win-opensource-src-4.1.4/src/winmai n'  mingw32-make[2]: *** [debug-all] error 2  mingw32-make[2]: leaving directory `d:/qt/qt-win-opensource-src-4.1.4/src/winmai n'  mingw32-make[1]: *** [sub-winmain-make_default-ordered] error 2  mingw32-make[1]: leaving directory `d:/qt/qt-win-opensource-src-4.1.4/src'  mingw32-make: *** [sub-src-make_default-ordered] error 2    

it looks have duplicated includes qt. exclude c:\mingw\lib\gcc\mingw32\4.5.0 includepaths while compiling


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -