qt creator 安装后,运行自带的例子,总是通不过,请问什么原因?
先安装了的qt library,然后对qt library进行了设置,编译等操作,并且将其bin目录设置为环境变量了然后安装qt creator,安装完成后,运行它自带的一些例子,配置时出现如下提示:
D:/Program/Qt_Creator/Examples/Qt-5.3/quick/demos/maroon/maroon.pro(4): 'qtHaveModule' is not a recognized test function.
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: quick
D:/Program/Qt_Creator/Examples/Qt-5.3/quick/demos/maroon/maroon.pro(4): 'qtHaveModule' is not a recognized test function.
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: quick
D:/Program/Qt_Creator/Examples/Qt-5.3/quick/demos/maroon/maroon.pro(4): 'qtHaveModule' is not a recognized test function.
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: quick
D:/Program/Qt_Creator/Examples/Qt-5.3/quick/demos/maroon/maroon.pro(4): 'qtHaveModule' is not a recognized test function.
Project MESSAGE: Warning: unknown QT: qml
Project MESSAGE: Warning: unknown QT: quick
运行时,出现错误提示:
d:\Program\Qt_Creator\Examples\Qt-5.3\quick\demos\maroon\maroon.pro:4: error: Unknown test function: qtHaveModule
d:\Program\Qt_Creator\Examples\Qt-5.3\quick\demos\maroon\maroon.pro:4: error: Unknown test function: qtHaveModule
d:\Program\Qt_Creator\Examples\Qt-5.3\quick\demos\maroon\maroon.pro:4: error: Unknown test function: qtHaveModule
D:\Program\Qt_Creator\Examples\Qt-5.3\quick\demos\maroon\main.cpp:40: In file included from ..\maroon\main.cpp:40:0:
D:\Program\Qt_Creator\Examples\Qt-5.3\quick\shared\shared.h:41: error: QGuiApplication: N