File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -83,7 +83,7 @@ def main():
83
83
['python/([^/]+/){1,2}cv2[^/]*%(ext)s' % {'ext' : re .escape (sysconfig .get_config_var ('SO' ))}],
84
84
85
85
'cv2.data' : [ # OPENCV_OTHER_INSTALL_PATH
86
- ('etc' if os .name == 'nt' else 'share/opencv4 ' ) +
86
+ ('etc' if os .name == 'nt' else 'share/OpenCV ' ) +
87
87
r'/haarcascades/.*\.xml'
88
88
]
89
89
}
@@ -110,8 +110,7 @@ def main():
110
110
"-DBUILD_SHARED_LIBS=OFF" ,
111
111
"-DBUILD_TESTS=OFF" ,
112
112
"-DBUILD_PERF_TESTS=OFF" ,
113
- "-DBUILD_DOCS=OFF" ,
114
- "-DOPENCV_SKIP_PYTHON_LOADER=ON"
113
+ "-DBUILD_DOCS=OFF"
115
114
] + (["-DOPENCV_EXTRA_MODULES_PATH=" + os .path .abspath ("opencv_contrib/modules" )] if build_contrib else [])
116
115
117
116
# OS-specific components
@@ -124,6 +123,7 @@ def main():
124
123
cmake_args .append ("-DWITH_QT=OFF" )
125
124
126
125
if sys .platform .startswith ('linux' ):
126
+ cmake_args .append ("-DOPENCV_SKIP_PYTHON_LOADER=ON" )
127
127
cmake_args .append ("-DWITH_V4L=ON" )
128
128
cmake_args .append ("-DENABLE_PRECOMPILED_HEADERS=OFF" )
129
129
You can’t perform that action at this time.
0 commit comments