I used Bacon2D to make a little game, the setup instructions are here: https://github.com/Bacon2D/Bacon2D
But when I used “macdeployqt Game.app” to make a independent app, it didn’t include any file of Bacon2D.
$ macdeployqt Game.app
$ ./Game.app/Contents/MacOS/Game
QQmlApplicationEngine failed to load component
qrc:/main.qml:3 module "Bacon2D" is not installed
main.cpp:
#include <QGuiApplication>
#include <QQmlApplicationEngine>
int main(int argc, char *argv[])
{
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
return app.exec();
}
Anyone can help?
↧