Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/zxing-cpp: add optional cppunit dependency
@ 2019-11-09  8:37 Fabrice Fontaine
  2019-11-09  8:37 ` [Buildroot] [PATCH 2/2] package/zxing-cpp: fix build with cppunit and gcc 5 Fabrice Fontaine
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2019-11-09  8:37 UTC (permalink / raw)
  To: buildroot

zxing-cpp optionally depends on cppunit

There is no option to disable it until we bump the version to at least
https://github.com/glassechidna/zxing-cpp/commit/4e2b4fe1668c60d73e7649b0d3d5888912878392

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/zxing-cpp/zxing-cpp.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/package/zxing-cpp/zxing-cpp.mk b/package/zxing-cpp/zxing-cpp.mk
index 7113ae2b06..4b46f2d29f 100644
--- a/package/zxing-cpp/zxing-cpp.mk
+++ b/package/zxing-cpp/zxing-cpp.mk
@@ -10,6 +10,7 @@ ZXING_CPP_LICENSE = Apache-2.0
 ZXING_CPP_LICENSE_FILES = COPYING
 ZXING_CPP_INSTALL_STAGING = YES
 ZXING_CPP_SUPPORTS_IN_SOURCE_BUILD = NO
+ZXING_CPP_DEPENDENCIES = $(if $(BR2_PACKAGE_CPPUNIT),cppunit)
 
 ifeq ($(BR2_PACKAGE_LIBICONV),y)
 ZXING_CPP_DEPENDENCIES += libiconv
-- 
2.23.0

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

* [Buildroot] [PATCH 2/2] package/zxing-cpp: fix build with cppunit and gcc 5
  2019-11-09  8:37 [Buildroot] [PATCH 1/2] package/zxing-cpp: add optional cppunit dependency Fabrice Fontaine
@ 2019-11-09  8:37 ` Fabrice Fontaine
  2019-11-09  8:51   ` Yann E. MORIN
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2019-11-09  8:37 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/8c675300aa7e7f2a5a2f0a2ac0f191b8d2ff8c42

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 .../0001-Build-with-C-11-on-Unix.patch        | 28 +++++++++++++++++++
 1 file changed, 28 insertions(+)
 create mode 100644 package/zxing-cpp/0001-Build-with-C-11-on-Unix.patch

diff --git a/package/zxing-cpp/0001-Build-with-C-11-on-Unix.patch b/package/zxing-cpp/0001-Build-with-C-11-on-Unix.patch
new file mode 100644
index 0000000000..e975775d67
--- /dev/null
+++ b/package/zxing-cpp/0001-Build-with-C-11-on-Unix.patch
@@ -0,0 +1,28 @@
+From 14d0a7196993868e5fb5ef18afd03a2bf2ca8014 Mon Sep 17 00:00:00 2001
+From: Nick <nick@kousu.ca>
+Date: Wed, 20 Mar 2019 00:43:58 -0400
+Subject: [PATCH] Build with C++11 on Unix.
+
+This fixes the opencv wrapper code on Darwin; probably on other platforms too,
+though maybe they are less strict.
+
+[Retrieved (and backported) from:
+https://github.com/glassechidna/zxing-cpp/commit/14d0a7196993868e5fb5ef18afd03a2bf2ca8014]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ CMakeLists.txt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index ccb2ba9..738f4e1 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -34,6 +34,8 @@ include(source_files.cmake)
+     add_definitions(-D_CRT_SECURE_NO_WARNINGS)
+     add_definitions(/Za)
+ endif()
++
++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
+ 
+ # Add libzxing library.
+ file(GLOB_RECURSE LIBZXING_FILES
-- 
2.23.0

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

* [Buildroot] [PATCH 2/2] package/zxing-cpp: fix build with cppunit and gcc 5
  2019-11-09  8:37 ` [Buildroot] [PATCH 2/2] package/zxing-cpp: fix build with cppunit and gcc 5 Fabrice Fontaine
@ 2019-11-09  8:51   ` Yann E. MORIN
  0 siblings, 0 replies; 3+ messages in thread
From: Yann E. MORIN @ 2019-11-09  8:51 UTC (permalink / raw)
  To: buildroot

Fabrice, All,

On 2019-11-09 09:37 +0100, Fabrice Fontaine spake thusly:
> Fixes:
>  - http://autobuild.buildroot.org/results/8c675300aa7e7f2a5a2f0a2ac0f191b8d2ff8c42

This should be folded in the previous patch, as this is mostly the same
thing: adding the optional dependency on cppunit and fixing the build
with cppunit.

> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
[--SNIP--]
> +diff --git a/CMakeLists.txt b/CMakeLists.txt
> +index ccb2ba9..738f4e1 100644
> +--- a/CMakeLists.txt
> ++++ b/CMakeLists.txt
> +@@ -34,6 +34,8 @@ include(source_files.cmake)
> +     add_definitions(-D_CRT_SECURE_NO_WARNINGS)
> +     add_definitions(/Za)
> + endif()
> ++
> ++set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

This hints that maybe a dependency on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 is
now needed, no?

Regards,
Yann E. MORIN.

> + # Add libzxing library.
> + file(GLOB_RECURSE LIBZXING_FILES
> -- 
> 2.23.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

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

end of thread, other threads:[~2019-11-09  8:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-09  8:37 [Buildroot] [PATCH 1/2] package/zxing-cpp: add optional cppunit dependency Fabrice Fontaine
2019-11-09  8:37 ` [Buildroot] [PATCH 2/2] package/zxing-cpp: fix build with cppunit and gcc 5 Fabrice Fontaine
2019-11-09  8:51   ` Yann E. MORIN

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