Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation issue with Q_INIT_RESOURCE #1

Open
nsnavare opened this issue Sep 10, 2019 · 3 comments
Open

Compilation issue with Q_INIT_RESOURCE #1

nsnavare opened this issue Sep 10, 2019 · 3 comments

Comments

@nsnavare
Copy link

nsnavare commented Sep 10, 2019

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.

init_resource_error

@happydpc
Copy link

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

@nsnavare
Copy link
Author

nsnavare commented Oct 21, 2019 via email

@grantrostig
Copy link

Does this work with>>>
Qt Creator 12.0.1
Based on Qt 6.6.0 (GCC 10.3.1 20210422 (Red Hat 10.3.1-1), x86_64)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants