在Windows中使用qxt的问题

时间:2013-01-20 19:57:45

标签: windows qt libqxt

我一直在尝试使用MSVC 2010在Windows中使用qxt。

我已将Qt 4.8.4安装到“D:\ Qt \ 4.8.4”中,并将qxt安装到“D:\ libqxt”中。我按如下方式配置了qxt:

D:\libqxt>configure -prefix D:\libqxt -debug_and_release

然后从Qt命令行编译:

D:\libqxt>nmake

配置或编译时没有出现任何错误,但是当我尝试编译示例时,我得到以下内容:

D:\libqxt\examples>qmake examples.pro

D:\libqxt\examples>nmake

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cd displaysettings\ && "C:\Program Files (x86)\Microsoft Visual Studio 1
0.0\VC\BIN\nmake.exe" -f Makefile

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        d:\Qt\4.8.4\bin\qmake.exe -o Makefile displaysettings.pro
        "C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\nmake.exe" -
f Makefile.Debug all

Microsoft (R) Program Maintenance Utility Version 10.00.30319.01
Copyright (C) Microsoft Corporation.  All rights reserved.

compiling .\displaysettingsdialog.cpp .\main.cpp
displaysettingsdialog.cpp
D:\libqxt\include\QxtGui\QxtScreen(1) : fatal error C1083: Cannot open include f
ile: 'qxtscreen.h': No such file or directory
main.cpp
D:\libqxt\include\QxtGui\QxtScreen(1) : fatal error C1083: Cannot open include f
ile: 'qxtscreen.h': No such file or directory
Generating Code...
NMAKE : fatal error U1077: 'echo' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0
\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: 'cd' : return code '0x2'
Stop.

检查makefile,我看到“D:\ libqxt \ include”在include路径中,但这不是“qxtscreen.h”所在的位置 - 它位于“D:\ libqxt \ src”中树。当然,我可以手动编辑makefile来添加它,但我觉得不应该这样,也许这表明我错过了一步。我做错了什么?

感谢您的帮助!

0 个答案:

没有答案