我想用gcc 4.6.0在mignw32上编译Qt 4.7.3。 我在运行./configure时收到以下错误:在gingw32上编译qt 4.7.3用gcc 4.6.0
In file included from C:/work/qt-gcc-4.6.0/include/QtCore/private/qcore_unix_p.h:1:0,
from C:/work/qt-gcc-4.6.0/src/corelib/io/qfsfileengine_unix.cpp:45:
C:/work/qt-gcc-4.6.0/include/QtCore/private/../../../src/corelib/kernel/qcore_unix_p.h:59:3: error: #error "qcore_unix_p.h included on a non-Unix system"
奇怪的是,我运行Windows 7,并试图包括。 也在Makefile中使用qfsfileengine_unix和qfsfileengine_iterator_unix,而不是qfsfileengine_win和qfsfileengine_iterator_win。
如果我改变Makefile使用Windows的那些,我得到以下错误(该文件不存在):
In file included from C:/work/qt-gcc-4.6.0/include/QtCore/../../src/corelib/global/qglobal.h:62:0,
from C:/work/qt-gcc-4.6.0/include/QtCore/qglobal.h:1,
from C:/work/qt-gcc-4.6.0/mkspecs/win32-g++/qplatformdefs.h:53,
from C:/work/qt-gcc-4.6.0/src/corelib/io/qfsfileengine_win.cpp:43:
C:/work/qt-gcc-4.6.0/include/QtCore/qconfig.h:1:46: fatal error: ../../src/corelib/global/qconfig.h: No such file or directory
compilation terminated.
当编译/qt/src/corelib/io/qfsfileengine_win.cpp
对此提出建议?
是否有你不想使用二进制文件的原因,如果你在Windows? – tylerthemiler
要开发Qt应用程序,我必须使用Qt SDK附带的gcc,它很旧(4.4.0),缺少C++ 0x – joca