Skip to content

Commit

Permalink
Windows WITH_OPENCL=ON, for opencv-rust
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminwan committed Jul 21, 2024
1 parent f17b1b9 commit f0fd214
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,4 @@ OpenCV在OCR中只是做图像的读取保存、编解码、缩放等,可以

## 其它说明

- 从4.9.0开始修改WITH_OPENCL=ON
- 4.9.0 Windows WITH_OPENCL=ON, for opencv-rust
2 changes: 2 additions & 0 deletions build-opencv4-win.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@ if ($BuildJava)
$genArgs += ('-DBUILD_opencv_java=ON');
$genArgs += ('-DBUILD_opencv_flann=ON');
}
#for opencv-rust
$genArgs += ('-DWITH_OPENCL=ON');

$OutPutPath = "build-$VsArch-$VsVer-$VsCRT"

Expand Down
2 changes: 1 addition & 1 deletion opencv4_cmake_options.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
-DWITH_GDCM=OFF
-DWITH_V4L=OFF
-DWITH_CLP=OFF
-DWITH_OPENCL=ON
-DWITH_OPENCL=OFF
-DWITH_OPENCL_SVM=OFF
-DWITH_ITT=OFF
-DWITH_PROTOBUF=OFF
Expand Down

0 comments on commit f0fd214

Please sign in to comment.