天天看点

Tiled的qbs方式编译记录

目录

​​一 编译OK​​

​​二  moc_donationpopup.cpp缺失问题解决​​

​​三  参考链接​​

一 编译OK

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

Tiled的qbs方式编译记录

二  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"));      

三  参考链接

继续阅读