【问题标题】:Installing QT Visual Studio Addin安装 QT Visual Studio 插件
【发布时间】:2012-07-25 23:44:47
【问题描述】:

我正在尝试按照本指南将 QT 插件安装到 VS 2010 中:http://thomasstockx.blogspot.ca/2011/03/qt-472-in-visual-studio-2010.html

当我到达第 11 步并尝试执行命令后:

configure -debug-and-release -opensource -shared -no-qt3support -qt-sql-sqlite -phonon -phonon-backend -no-webkit -no-script -platform win32-msvc2010

我收到以下错误:

'configure' is not recognized as an internal or external command,
operable program or batch file.

我使用的是 VS 命令提示符窗口,而不是常规的命令提示符窗口。有人可以建议我可能做错了什么吗?

目前,我在 VS 中看到了加载项。但是,当我单击 Qt-> Launch Designer 时,我收到以下错误消息:

No default QT version found. Please check your QT Visual Studio Add-in settings.

【问题讨论】:

    标签: visual-studio-2010 qt


    【解决方案1】:

    configure.exe是Qt源码树根目录下的一个可执行文件(作为QTDIR)。在您尝试执行此命令之前,请确保您的工作路径是 QTDIR。如果您使用 QTDIR,请为命令 configure 提供正确的前缀路径。这是影子构建,需要 perl。

    【讨论】:

    • 谢谢六一。您能否详细说明“影子”构建的含义?
    • 影子构建是指在单独的目录build目录中构建一个项目。构建目录与源目录不同。影子构建的好处之一是它可以让你的源目录保持干净。如果您需要为一组源进行许多构建配置,那么影子构建是最佳实践。 stackoverflow.com/questions/1245011/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多