使用GCC4.6.0在mingw32上编译Qt4.7.3
我正在尝试使用GCC4.6.0在mignw32上编译Qt4.7.3。 我在运行时遇到以下错误。/configure:使用GCC4.6.0在mingw32上编译Qt4.7.3,qt,gcc,mingw,Qt,Gcc,Mingw,我正在尝试使用GCC4.6.0在mignw32上编译Qt4.7.3。 我在运行时遇到以下错误。/configure: 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
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"
奇怪的是,我正在运行Windows7,而它正试图将其包括在内。
同样在Makefile中,它使用qfsfileengine_unix和qfsfileengine_迭代器_unix代替qfsfileengine_win和qfsfileengine_迭代器_win
如果将Makefile更改为使用Windows的Makefile,则会出现以下错误(该文件不存在):
编译/qt/src/corelib/io/qfsfileengine_win.cpp时
建议?试试。/configure--帮助
ms windows x86编译可能有一个标志
可能是这样的:
./configure--target os=mingw32
请记住--os参数名称可能不同,可选择的目标值可能不同*--对于来自不同作者的脚本--您可能遇到的一些值可能是“win32”、“win32-386”、“x86-windows32”等
看看是否
/配置-帮助
不会给你一个清单
您还可以将其输出重定向到文件,以便在您喜爱的编辑器中轻松阅读
./configure--help>myconfig.txt
祝你好运 如果你在windows上,有没有理由不想只使用二进制文件?要开发Qt应用程序,我必须使用Qt SDK附带的gcc,它非常旧(4.4.0),并且缺少C++0x
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.