Bonjour, ça fait plusieurs fois que j'essaye de compilé qt 4.4.3, avec plusieurs version du mingw.
A chaque fois j'ai ça:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:38,
                 from E:\qt-win-opensource-src-4.4.3/src/corelib/io/qfsfileengine_win.cpp:68:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/sspi.h:60: error: `UNICODE_STRING' does not name a type
In file included from C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/security.h:39,
                 from E:\qt-win-opensource-src-4.4.3/src/corelib/io/qfsfileengine_win.cpp:68:
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:123: error: `SECURITY_STRING' does not name a type
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:124: error: `SECURITY_STRING' does not name a type
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:125: error: `SECURITY_STRING' does not name a type
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:212: error: typedef `PLSA_OPEN_SAM_USER' is initialized (use __typeof__ instead)
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:212: error: `PSECURITY_STRING' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:212: error: expected primary-expression before ',' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:213: error: `PSECURITY_STRING' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:213: error: expected primary-expression before ',' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:213: error: expected primary-expression before ',' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:213: error: expected primary-expression before '*' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:213: error: expected primary-expression before ')' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:224: error: typedef `PLSA_GET_AUTH_DATA_FOR_USER' is initialized (use __typeof__ instead)
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:224: error: `PSECURITY_STRING' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:225: error: expected primary-expression before ',' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:225: error: `PSECURITY_STRING' was not declared in this scope
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:225: error: expected primary-expression before '*' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:225: error: expected primary-expression before ',' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:225: error: expected primary-expression before ',' token
C:/MinGW/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ntsecpkg.h:225: error: expected primary-expression before ')' token
mingw32-make: *** [qfsfileengine_win.o] Error 1
Building qmake failed, return code 2
Apparemment dans ce que j'ai trouvé sur google personne n'as trouvé la solution à l'époque, c'est résolut? Comme s'en sortir?
Merci d'avance.

J'ai tester avec mingw 32 et mingw 64 avec qt 4.5 tp:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
g++ -c -oqfsfileengine_win.o -O -I. -Igenerators -Igenerators/unix -Igenerators/win32 -Igenerators/mac -IC:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include -IC:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtCore -IC:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include -IC:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtCore -IC:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/global -IC:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtScript -IC:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/mkspecs/win32-g++ -DQT_NO_TEXTCODEC -DQT_NO_UNICODETABLES -DQT_LITE_COMPONENT -DQT_NO_PCRE -DQT_NODLL -DQT_NO_STL -DQT_NO_COMPRESS -DUNICODE -DHAVE_QCONFIG_CPP -DQT_BUILD_QMAKE -DQT_NO_THREAD -DQT_NO_QOBJECT -DQT_NO_GEOM_VARIANT -DQT_NO_DATASTREAM C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:104: warning: 'dllimport' attribute ignored
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:106: warning: 'dllimport' attribute ignored
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:114: warning: 'dllimport' attribute ignored
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp: In static member function 'static void QFSFileEnginePrivate::resolveLibs()':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:169: warning: deprecated conversion from string constant to 'WCHAR*'
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:173: warning: deprecated conversion from string constant to 'WCHAR*'
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:176: warning: deprecated conversion from string constant to 'WCHAR*'
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp: In member function 'qint64 QFSFileEnginePrivate::nativeSize() const':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:651: error: '_get_osfhandle' was not declared in this scope
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp: In member function 'int QFSFileEnginePrivate::nativeHandle() const':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:888: error: '_fileno' was not declared in this scope
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:898: error: '_open_osfhandle' was not declared in this scope
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp: In member function 'bool QFSFileEnginePrivate::nativeIsSequential() const':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:919: error: '_fileno' was not declared in this scope
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:919: error: '_get_osfhandle' was not declared in this scope
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp: In member function 'bool QFSFileEnginePrivate::doStat() const':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:1367: error: '_get_osfhandle' was not declared in this scope
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp: In member function 'virtual bool QFSFileEngine::setPermissions(uint)':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:1980: error: '::_chmod' has not been declared
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp: In member function 'virtual bool QFSFileEngine::setSize(qint64)':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:2003: error: '_get_osfhandle' was not declared in this scope
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp: In member function 'virtual QDateTime QFSFileEngine::fileTime(QAbstractFileEngine::FileTime) const':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:2072: error: '_get_osfhandle' was not declared in this scope
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp: In member function 'uchar* QFSFileEnginePrivate::map(qint64, qint64, QFile::MemoryMapFlags)':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:2124: error: '_fileno' was not declared in this scope
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:2124: error: '_get_osfhandle' was not declared in this scope
In file included from C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtCore/qhash.h:1,
                 from C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtCore/private/../../../src/corelib/io/qfsfileengine_p.h:55,
                 from C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtCore/private/qfsfileengine_p.h:1,
                 from C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:41:
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtCore/../../src/corelib/tools/qhash.h: In function 'uint qHash(const T*) [with T = uchar]':
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtCore/../../src/corelib/tools/qhash.h:854:   instantiated from 'typename QHash<Key, T>::Node** QHash<Key, T>::findNode(const Key&, uint*) const [with Key = uchar*, T = QPair<int, void*>]'
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtCore/../../src/corelib/tools/qhash.h:719:   instantiated from 'T& QHash<Key, T>::operator[](const Key&) [with Key = uchar*, T = QPair<int, void*>]'
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/src/corelib/io/qfsfileengine_win.cpp:2181:   instantiated from here
C:\qt-win-tp-src-4.5.0\qt-win-commercial-src-4.5.0-tp1/include/QtCore/../../src/corelib/tools/qhash.h:99: error: cast from 'const uchar*' to 'ulong' loses precision
mingw32-make: *** [qfsfileengine_win.o] Error 1
Building qmake failed, return code 2