Tiled的qbs方式编译记录

简介: 本文记录了使用qbs编译Tiled项目的过程,包括编译成功截图、解决moc_donationpopup.cpp缺失问题的方法,以及相关参考链接。文章还提到了格式问题修正和删除libtilededitor文件夹以重新编译的步骤。

一 编译OK

该例子以qbs方式将qml自动打包,很棒。

二 moc_donationpopup.cpp缺失问题解决

(1)格式问题

修改从:

"&Donate ↗"

"I'm a &supporter!"

到:

"&Donate"

"I'm a &supporter"

(2)删除libtilededitor.877b2b3a文件夹重新编译

//tiled.qbs文件修改
    property string version: Environment.getEnv("TILED_VERSION") || "1.8.4";
    property bool snapshot: Environment.getEnv("TILED_SNAPSHOT") == "true"
    property bool release: Environment.getEnv("TILED_RELEASE") == "true"
    property bool installHeaders: true
    property bool useRPaths: true
    property bool windowsInstaller: true
    property bool staticZstd: false
    property bool sentry: false
    property bool dbus: true


//donationpopup.cpp文件修改
//    auto visitDonatePage = new QPushButton(QCoreApplication::translate("DonationDialog", "&Donate ↗"));
//    auto alreadyDonating = new QPushButton(QCoreApplication::translate("DonationDialog", "I'm a &supporter!"));
//    auto maybeLaterButton = new QPushButton(QCoreApplication::translate("DonationDialog", "&Maybe later"));

    auto visitDonatePage = new QPushButton(QCoreApplication::translate("DonationDialog", "&Donate"));
    auto alreadyDonating = new QPushButton(QCoreApplication::translate("DonationDialog", "I'm a &supporter"));
    auto maybeLaterButton = new QPushButton(QCoreApplication::translate("DonationDialog", "&Maybe later"));

三 参考链接

mapeditor/tiled: Flexible level editor (github.com)

(5条消息) VS +QT 手动添加Q_OBJECT 报错问题解决_边城浪子书生的博客-CSDN博客_q_object报错

相关文章
|
11月前
|
NoSQL 网络协议 Linux
Linux环境初始化记录
Linux环境初始化记录
24 0
|
缓存 小程序 API
小程序:浅谈小程序更新机制,发版后多久能全覆盖
小程序:浅谈小程序更新机制,发版后多久能全覆盖
393 0
使用StatSVN编译代码变更(未成功)
使用StatSVN编译代码变更(未成功)
80 0
|
存储 自然语言处理 算法
c++概述--易混淆点记录
c++概述--易混淆点记录
123 0
【Lua篇】静态代码扫描分析(四)规则检查
通过前面三篇文章已经初步实现了将Lua源代码文件读取解析成语法树,现在就可以通过得到的语法树进行指定规则的代码扫描检查。下图简单列举了一下单个Lua文件内部的语法关系情况(注意并非真正的类图,也没有列举完全部的节点类型)。
503 0
【Lua篇】静态代码扫描分析(四)规则检查
|
C++ 编译器 程序员
C++程序设计基础(1)程序的编译和执行
注:读《程序员面试笔记》笔记总结 1.编译执行过程 1.1预处理: (1)所有以#开头的代码都属于预处理的范畴:#include,#define,#ifdef(#ifndef,#endif),#other(其他宏指令) (2)处理预定义的宏:例如__DATA__,__FILE__(前后都是两个下划...
1056 0
|
Shell 应用服务中间件 nginx