Disable qt5declarative dependency on GUI
Hello. My English is poor. You need to remove the "select BR2_PACKAGE_QT5BASE_GUI" dependency from the package/qt5/qt5declarative/Config.in file.
This is needed to build Qt console applications without a GUI. The qt5declarative library is needed as a replacement for the outdated qt5script.
Some aspects of qt5declarative are not GUI related: https://doc.qt.io/qt-5/qjsengine.html
A simple example:
QJSEngine myEngine;
QJSValue three = myEngine.evaluate("1 + 2");
Thanks a lot!
package/qt5/qt5declarative/Config.in +0 -1
@@ -1,7 +1,6 @@ config BR2_PACKAGE_QT5DECLARATIVE bool "qt5declarative" depends on BR2_PACKAGE_QT5_JSCORE_AVAILABLE - select BR2_PACKAGE_QT5BASE_GUI help Qt is a cross-platform application and UI framework for developers using C++.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Hello Sergey,
Quoted 1 line · Кузьминов Сергей
Hello. My English is poor. You need to remove the "select
No problem, every contribution welcome ;-)
Quoted 10 lines
BR2_PACKAGE_QT5BASE_GUI" dependency from the
package/qt5/qt5declarative/Config.in file.This is needed to build Qt console applications without a GUI. The qt5declarative library is needed as a replacement for the outdated qt5script.
Some aspects of qt5declarative are not GUI related:
https://doc.qt.io/qt-5/qjsengine.html
Quoted 6 lines
A simple example:
QJSEngine myEngine;
QJSValue three =myEngine.evaluate("1 + 2");Thanks a lot!
Just sent out an improved version of your patch (instead of removing the qt5gui select entirely move it down to the qt5quick section) to the mailing list (see [1])...
Thanks for suggestion!
Regards,
Peter
[1] https://patchwork.ozlabs.org/project/buildroot/patch/[email protected]
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot