无法在Windows上为BlackBerry 10构建Qt5

时间:2013-09-09 13:29:28

标签: c++ qt blackberry-10

我正在尝试使用来自http://qt-project.org/wiki/Building-Qt5-for-Blackberry中提供的说明,使用来自gitorious的来源在Windows上为BlackBerry 10 NDK构建Qt5。但是当我运行命令时:

configure -prefix C:\Users\Eli\development\qt5 -platform blackberry-armv7le-qcc -opengl es2 -nomake examples -nomake tests -opensource -confirm-license -release

它开始编译,直到我收到此错误:

c:/Users/Eli/development/qt5/qtbase/include/QtCore/../../src/corelib/global/qt_w
indows.h:71:21: fatal error: windows.h: No such file or directory
compilation terminated.
cc: C:/bbndk/gold/host_10_1_0_132/win32/x86/usr/lib/gcc/arm-unknown-nto-qnx8.0.0
eabi/4.6.3/cc1plus caught signal 1
gmake: *** [qfilesystemengine_win.o] Error 1

实际上,windows.h文件不存在。为什么会这样?从repo克隆文件没有返回任何错误,所以我认为这不是丢失文件的问题。有任何想法吗?谢谢。

1 个答案:

答案 0 :(得分:0)

windows.h附带Visual Studio / Platform SDK,它不是Qt源代码树的一部分。但是你正在尝试为BlackBerry构建,因此不需要它。

查看配置命令,第二个参数不应该是-xplatform而不是-platform吗?