Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] Disable qt5declarative dependency on GUI
@ 2021-11-13 11:45 Кузьминов Сергей
  2021-11-14 14:56 ` Peter Seiderer
  0 siblings, 1 reply; 2+ messages in thread
From: Кузьминов Сергей @ 2021-11-13 11:45 UTC (permalink / raw)
  To: buildroot

[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

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!

[-- Attachment #2: disable-qt5declarative-dependency-on-GUI.patch --]
[-- Type: text/x-patch, Size: 497 bytes --]

diff -u -r -N a/package/qt5/qt5declarative/Config.in b/package/qt5/qt5declarative/Config.in
--- a/package/qt5/qt5declarative/Config.in	2021-11-10 15:17:38.000000000 +0300
+++ b/package/qt5/qt5declarative/Config.in	2021-11-13 14:36:45.631113368 +0300
@@ -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++.

[-- Attachment #3: Type: text/plain, Size: 150 bytes --]

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [Buildroot] Disable qt5declarative dependency on GUI
  2021-11-13 11:45 [Buildroot] Disable qt5declarative dependency on GUI Кузьминов Сергей
@ 2021-11-14 14:56 ` Peter Seiderer
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Seiderer @ 2021-11-14 14:56 UTC (permalink / raw)
  To: Кузьминов Сергей
  Cc: buildroot

Hello Sergey,

On Sat, 13 Nov 2021 14:45:10 +0300, Кузьминов Сергей <kuzminov.sergey81@gmail.com> wrote:

> Hello. My English is poor. You need to remove the "select 

No problem, every contribution welcome ;-)

> 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!

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/20211114135722.12386-1-ps.report@gmx.net
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-14 14:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-13 11:45 [Buildroot] Disable qt5declarative dependency on GUI Кузьминов Сергей
2021-11-14 14:56 ` Peter Seiderer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox