Compilation issue with Q_INIT_RESOURCE
nsnavare opened this issue · 3 comments
Hello,
I just downloaded the source code and tried to compile according to the instructions in your video tutorial.
An error occurs while compiling the project. Its something regarding Q_INIT_RESOURCE. In the macro defined in qglobal.h, it tries to paste the "livewindow" argument and I probably think that's where the issue lies. Also, I am not sure but can you please check whether it should be livewindow or livecodingpanel and the resource as LiveCodingPanel.qml? Please refer to the attached file for the screenshot.
Thanks a lot.
You can try this.
inline void initMyResource() { Q_INIT_RESOURCE(qml); }
QString LiveWindow::loadLiveWindow()
{
// Q_INIT_RESOURCE(qml);
initMyResource();
return QStringLiteral("qrc:/com/machinekoder/live/LiveWindow.qml");
}
