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():
8383 ['python/([^/]+/){1,2}cv2[^/]*%(ext)s' % {'ext' : re .escape (sysconfig .get_config_var ('SO' ))}],
8484
8585 'cv2.data' : [ # OPENCV_OTHER_INSTALL_PATH
86- ('etc' if os .name == 'nt' else 'share/opencv4 ' ) +
86+ ('etc' if os .name == 'nt' else 'share/OpenCV ' ) +
8787 r'/haarcascades/.*\.xml'
8888 ]
8989 }
@@ -110,8 +110,7 @@ def main():
110110 "-DBUILD_SHARED_LIBS=OFF" ,
111111 "-DBUILD_TESTS=OFF" ,
112112 "-DBUILD_PERF_TESTS=OFF" ,
113- "-DBUILD_DOCS=OFF" ,
114- "-DOPENCV_SKIP_PYTHON_LOADER=ON"
113+ "-DBUILD_DOCS=OFF"
115114 ] + (["-DOPENCV_EXTRA_MODULES_PATH=" + os .path .abspath ("opencv_contrib/modules" )] if build_contrib else [])
116115
117116 # OS-specific components
@@ -124,6 +123,7 @@ def main():
124123 cmake_args .append ("-DWITH_QT=OFF" )
125124
126125 if sys .platform .startswith ('linux' ):
126+ cmake_args .append ("-DOPENCV_SKIP_PYTHON_LOADER=ON" )
127127 cmake_args .append ("-DWITH_V4L=ON" )
128128 cmake_args .append ("-DENABLE_PRECOMPILED_HEADERS=OFF" )
129129
You can’t perform that action at this time.
0 commit comments