0001-fix-build-on-Arch-Linux.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 704868db61be1542c2d9e2b75ead00c45c56cc36 Mon Sep 17 00:00:00 2001
  2. From: "Evgeniy A. Dushistov" <dushistov@mail.ru>
  3. Date: Sat, 15 Aug 2020 15:09:08 +0300
  4. Subject: fix build on Arch Linux
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. qtimageformats/src/plugins/imageformats/jp2/qjp2handler.cpp:844:41:
  9. error: no declaration of «pow»
  10. 844 | const double jasperRate = minRate + pow((double(quality) / double(maxQuality)), 2) * maxRate;
  11. Pick-to: 5.15
  12. Change-Id: I085996c2db2251903b2a3e52e6e648831637c8f9
  13. Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
  14. [Retrieved from:
  15. https://code.qt.io/cgit/qt/qtimageformats.git/commit/?id=704868db61be1542c2d9e2b75ead00c45c56cc36]
  16. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  17. ---
  18. src/plugins/imageformats/jp2/qjp2handler.cpp | 1 +
  19. 1 file changed, 1 insertion(+)
  20. diff --git a/src/plugins/imageformats/jp2/qjp2handler.cpp b/src/plugins/imageformats/jp2/qjp2handler.cpp
  21. index 4311d26..05c7bc1 100644
  22. --- a/src/plugins/imageformats/jp2/qjp2handler.cpp
  23. +++ b/src/plugins/imageformats/jp2/qjp2handler.cpp
  24. @@ -45,6 +45,7 @@
  25. #include "qcolor.h"
  26. #include <jasper/jasper.h>
  27. +#include <math.h> // for pow
  28. QT_BEGIN_NAMESPACE
  29. --
  30. cgit v1.2.1