首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Qbs,不存在基轮廓错误

Qbs,不存在基轮廓错误
EN

Stack Overflow用户
提问于 2017-09-06 18:01:20
回答 1查看 93关注 0票数 0

我正在通过编译一个基于Qt的开源库来学习Qbs。我将我的Qbs项目设置如下。

代码语言:javascript
复制
import qbs 1.0

Project {
    Product {
        name: "communi"
        type: "dynamiclibrary"

        files: [
            "include/IrcCore/irc.h",
            "include/IrcCore/irccommand.h",
             ... ,
            "src/util/irccommandqueue.cpp",
            "src/util/irccompleter.cpp",
            "src/util/irclagtimer.cpp",
            "src/util/ircpalette.cpp",
            "src/util/irctextformat.cpp",
            "src/util/irctoken.cpp",
            "src/util/ircutil.cpp"
        ]

        Depends { name: "cpp" }
        Depends { name: "Qt.core" }
        Depends { name: "Qt.widgets" }
    }
}

我引用Qbs如下;

代码语言:javascript
复制
qbs build profile:qt

并得到下面的错误消息

代码语言:javascript
复制
ERROR: Profile "qt" has a non-existent base profile "msvc".

我做错了什么?我按照手册中的说明做了配置。我在Windows 10 x64上,使用Qbs 1.9和QT5.9.1。

我的个人资料清单如下;

代码语言:javascript
复制
>> qbs config --list profiles
profiles.MSVC2017-x64.cpp.compilerVersion: "19.11.25507"
profiles.MSVC2017-x64.cpp.toolchainInstallPath: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX64/x64"
profiles.MSVC2017-x64.qbs.architecture: "x86_64"
profiles.MSVC2017-x64.qbs.targetOS: "windows"
profiles.MSVC2017-x64.qbs.toolchain: "msvc"
profiles.MSVC2017-x64_x86.cpp.compilerVersion: "19.11.25507"
profiles.MSVC2017-x64_x86.cpp.toolchainInstallPath: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX64/x86"
profiles.MSVC2017-x64_x86.qbs.architecture: "x86"
profiles.MSVC2017-x64_x86.qbs.targetOS: "windows"
profiles.MSVC2017-x64_x86.qbs.toolchain: "msvc"
profiles.MSVC2017-x86.cpp.compilerVersion: "19.11.25507"
profiles.MSVC2017-x86.cpp.toolchainInstallPath: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x86"
profiles.MSVC2017-x86.qbs.architecture: "x86"
profiles.MSVC2017-x86.qbs.targetOS: "windows"
profiles.MSVC2017-x86.qbs.toolchain: "msvc"
profiles.MSVC2017-x86_x64.cpp.compilerVersion: "19.11.25507"
profiles.MSVC2017-x86_x64.cpp.toolchainInstallPath: "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.11.25503/bin/HostX86/x64"
profiles.MSVC2017-x86_x64.qbs.architecture: "x86_64"
profiles.MSVC2017-x86_x64.qbs.targetOS: "windows"
profiles.MSVC2017-x86_x64.qbs.toolchain: "msvc"
profiles.qt.baseProfile: "msvc"
profiles.qt.preferences.qbsSearchPaths: "C:/Users/tembo/AppData/Roaming/QtProject/qbs/1.9.0/profiles/qt"
profiles.x86_64-w64-mingw32.cpp.toolchainInstallPath: "C:/MinGW/bin"
profiles.x86_64-w64-mingw32.qbs.targetOS: "windows"
profiles.x86_64-w64-mingw32.qbs.toolchain: ["mingw", "gcc"]
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-09-06 19:18:55

正如您在粘贴的qbs配置输出中所看到的那样,您没有一个名为"msvc“的配置文件(手册中的示例假设您这样做)。请使用其中一个现有的,例如MSVC2017 2017-x64。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/46081638

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档