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

Deploy application with custom QML library/plugin #806

Closed
avkochekov opened this issue Mar 13, 2024 · 2 comments
Closed

Deploy application with custom QML library/plugin #806

avkochekov opened this issue Mar 13, 2024 · 2 comments
Assignees
Labels
Help wanted Extra attention is needed question Further information is requested

Comments

@avkochekov
Copy link

I build a test application with the linked QML library on ubuntu 22.0.4. When I launch the application I get the error:

QQmlApplicationEngine failed to load component
qrc:/ExampleProjectApp/example/qml/example.qml:13:5: TkItemControls is not a type

I tried to set the parameters -libDir, -extraLibs, -extraPlugin but it didn’t help.

Test app sources: https://github.com/avkochekov/QmlCommonUiLib
Deploy log: deploy.log

@EndrII
Copy link
Member

EndrII commented Mar 13, 2024

i was checked your example, and found some issues with project structure, that cannot, allow deploying your plugin, and i found issue that i need to make a simple research to found solution.
Unfortunate, i need more time (except my work time) to prepare an understandable answer and example.

As an alternative, i recommend use simple dynamic library for external qml modules instead qml/qt plugins. It works as a usual shared or static library. (its my way to use qml) you can see example on my other projects.

For example here:

This way competability with many qt version qt5/qt6 instand new cmake macrosses from qt that works only with qt6, and do incomprehensible magick with your project.

i will try to prepare exampe to you that you can make deployable qml plugins that was generated with qt_add_qml_plugin. But on the first look you need to separatly your plugin into external target (lib - not executable).

@EndrII EndrII self-assigned this Mar 13, 2024
@EndrII EndrII added Help wanted Extra attention is needed question Further information is requested labels Mar 13, 2024
@EndrII
Copy link
Member

EndrII commented May 30, 2024

i close this issue, because it is inactive

@EndrII EndrII closed this as completed May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help wanted Extra attention is needed question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants