Skip to content

Commit b23122f

Browse files
committed
fix opencv contrib undefined symbol errors with protobuf for latest opencv 3.3.1 by indirectly not building dnn_modern
1 parent 24b2514 commit b23122f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

ansible/roles/opencv/tasks/main.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,13 @@
103103
file: path="{{ item }}" state=absent
104104
with_fileglob:
105105
- /usr/local/lib/libopencv_*
106+
no_log: True
106107
become: yes
107108

108109
- name: Ensure build folder inside OpenCV repo
109110
file: path="../../opencv/build" state=directory
110111

112+
# Note: libopencv_dnn_modern should be disabled for now (which it will by leaving out '-D PROTOBUF_PROTOC_EXECUTABLE=/usr/bin/protoc' lol) as it causes undefined symbol errors with protobuf (see also https://github.com/opencv/opencv/issues/10021)
111113
- name: CMake for OpenCV (no CUDA for now as not yet compatible with 9.0 and benefit for python is very limited)
112114
shell: >
113115
/bin/bash -ic "cmake
@@ -127,8 +129,7 @@
127129
-D BUILD_TESTS=OFF
128130
-D BUILD_DOCS=OFF
129131
-D BUILD_EXAMPLES={{ opencv_build_examples }}
130-
-D ENABLE_FAST_MATH=1
131-
-D PROTOBUF_PROTOC_EXECUTABLE=/usr/bin/protoc .."
132+
-D ENABLE_FAST_MATH=1 .."
132133
args:
133134
chdir: "../../opencv/build"
134135

0 commit comments

Comments
 (0)