All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/jpeg: fix build failure when qt5base tries to use libjpeg
@ 2023-02-21 18:30 Giulio Benetti
  2023-02-21 20:04 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Giulio Benetti @ 2023-02-21 18:30 UTC (permalink / raw)
  To: buildroot; +Cc: Giulio Benetti

Qt5 fails to build with libjpeg since the API is different from
libjpeg-turbo and libjpeg-turbo is pointed as the library Qt5 usually link
against to[0]. So let's default jpeg variant to libjpeg-turbo if
BR2_PACKAGE_QT5BASE_JPEG is selected.

Fixes:
still not failed

[0]: https://doc.qt.io/qt-5/qtgui-index.html#licenses-and-attributions

Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
---
 package/jpeg/Config.in | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/jpeg/Config.in b/package/jpeg/Config.in
index 371f89aa49..3a39a0dfb8 100644
--- a/package/jpeg/Config.in
+++ b/package/jpeg/Config.in
@@ -16,7 +16,8 @@ if BR2_PACKAGE_JPEG
 
 choice
 	prompt "jpeg variant"
-	default BR2_PACKAGE_JPEG_TURBO if BR2_PACKAGE_JPEG_SIMD_SUPPORT
+	default BR2_PACKAGE_JPEG_TURBO if BR2_PACKAGE_JPEG_SIMD_SUPPORT || \
+					  BR2_PACKAGE_QT5BASE_JPEG
 	help
 	  Select the normal libjpeg or libjpeg-turbo.
 
-- 
2.34.1

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

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

end of thread, other threads:[~2023-02-21 20:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-21 18:30 [Buildroot] [PATCH] package/jpeg: fix build failure when qt5base tries to use libjpeg Giulio Benetti
2023-02-21 20:04 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.