[Cin] More fun with new (2020) openCV and old gcc (5.5.0)
Andrew Randrianasulu
randrianasulu at gmail.com
Tue Mar 24 18:13:24 CET 2020
Apparently, this new openCV, as opposed to one from 2018, ALSO
started to demand stc++11 :}
diff --git a/cinelerra-5.1/opencv_build b/cinelerra-5.1/opencv_build
index fd029027..fabb8775 100644
--- a/cinelerra-5.1/opencv_build
+++ b/cinelerra-5.1/opencv_build
@@ -49,6 +49,7 @@ jobs:=-j$(shell echo $$(($(cpus) + $(cpus)/2 +2)))
#opencv4 breaks SIFT/SURF findobj
CFLAGS += -I$(opencv_prefix)/include/opencv4
CFLAGS += -I$(opencv_prefix)/include
+CFLAGS += -std=c++11
ifeq ($(src),git)
$(opencv).src:
just this fixes build on 32-bit gcc 5.5.0 (Slackware 14.2) for me.
But I looked into opencv build ..and tried to disable more components, see second patch
diff --git a/cinelerra-5.1/opencv_build b/cinelerra-5.1/opencv_build
index fd029027..20908747 100644
--- a/cinelerra-5.1/opencv_build
+++ b/cinelerra-5.1/opencv_build
@@ -49,6 +49,7 @@ jobs:=-j$(shell echo $$(($(cpus) + $(cpus)/2 +2)))
#opencv4 breaks SIFT/SURF findobj
CFLAGS += -I$(opencv_prefix)/include/opencv4
CFLAGS += -I$(opencv_prefix)/include
+CFLAGS += -std=c++11
ifeq ($(src),git)
$(opencv).src:
@@ -81,6 +82,9 @@ $(opencv)/build: $(opencv).src
-DINSTALL_C_EXAMPLES=OFF \
-DINSTALL_PYTHON_EXAMPLES=OFF \
-DBUILD_EXAMPLES=OFF .. \
+ -DBUILD_PERF_TESTS=OFF \
+ -DBUILD_TESTS=OFF \
+ -DBUILD_opencv_apps=OFF \
-DBUILD_opencv_python3=no \
-DCMAKE_INSTALL_PREFIX=/usr/local \
-DOPENCV_EXTRA_MODULES_PATH="$(opencv)_contrib/modules/"
on the basis Cin's plugins will try to link to OpenCVs *.a libraries anyway, so
better to get to this phase earlier, and with less hdd used.
BUT second patch not tested yet.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openCV4-static-gcc5.diff
Type: text/x-diff
Size: 414 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20200324/aee2973f/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: openCV4-static-gcc5_more-disable.diff
Type: text/x-diff
Size: 767 bytes
Desc: not available
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20200324/aee2973f/attachment-0001.bin>
More information about the Cin
mailing list