Skip to content

Commit 6b52570

Browse files
committed
Merge branch 'main' of github.com:ncsurobotics/SW8S-OpenCVBuild
2 parents f027076 + c7c9531 commit 6b52570

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ TODO
9494
- [GStreamer](https://gstreamer.freedesktop.org/download/): Use the "MSVC development installer" and perform a "complete install"
9595
- [OpenJDK 11](https://adoptium.net/): Make sure `JAVA_HOME` is set to the directory java is installed in (not the bin, the root directory). Alternatively, you can make sure the desired java is in your `PATH`.
9696
- [Apache ANT](https://ant.apache.org/bindownload.cgi): Make sure `ant` is in your path
97-
- [Python 3.8](https://www.python.org/): Make sure `python` or `python3` command is in your `PATH`. Make sure the version you want to use is in the path first (shown first by `where.exe python`)
97+
- [Python 3.8](https://www.python.org/): Make sure the desired python is the first item in your path and is named `python3` not `python` (just rename the exe file).
98+
- NumPy (`python3 -m pip install numpy`)
9899
- Note that the build script requires Windows 10 17063 or later which includes curl and bsdtar
99100
- Run the build
100101
```sh

windows-amd64-pc/buildopencv.cmd

+11-5
Original file line numberDiff line numberDiff line change
@@ -38,22 +38,28 @@ cmake -D OPENCV_EXTRA_MODULES_PATH=../opencv_contrib-%VERSION%/modules ^
3838
-D ENABLE_FAST_MATH=ON ^
3939
-D CUDA_FAST_MATH=%CUDA% ^
4040
-D WITH_CUBLAS=%CUDA% ^
41-
-D WITH_LIBV4L=ON ^
42-
-D WITH_V4L=ON ^
4341
-D WITH_GSTREAMER=ON ^
4442
-D WITH_GSTREAMER_0_10=OFF ^
4543
-D WITH_FFMPEG=ON ^
4644
-D WITH_QT=OFF ^
4745
-D WITH_OPENGL=OFF ^
4846
-D BUILD_opencv_python2=%PYTHON2% ^
4947
-D BUILD_opencv_python3=%PYTHON3% ^
48+
-D OPENCV_PYTHON_INSTALL_PATH=lib/python3.8/site-packages ^
5049
-D BUILD_TESTS=OFF ^
5150
-D BUILD_PERF_TESTS=OFF ^
52-
-D OPENCV_VCSVERSION=$VERSION ^
53-
-D CPACK_PACKAGING_INSTALL_PREFIX=C:\opencv-%VERSION%\ ^
51+
-D OPENCV_VCSVERSION=%VERSION% ^
52+
-DINSTALL_CREATE_DISTRIB=ON ^
53+
-DCMAKE_INSTALL_PREFIX=c:/opencv-%VERSION%/ ^
54+
-DCPACK_NSIS_INSTALL_ROOT=c:\\opencv-%VERSION% ^
55+
-DCPACK_PACKAGE_INSTALL_DIRECTORY= ^
56+
-DCPACK_NSIS_PACKAGE_NAME="OpenCV %VERSION%" ^
57+
-DPYTHON_DEFAULT_AVAILABLE=ON ^
58+
-DBUILD_opencv_world=OFF ^
5459
../opencv-%VERSION%
60+
5561
cmake --build . --config Release
5662

5763

5864
:: Package
59-
cmake --build . --target package
65+
cmake --build . --config Release --target package

0 commit comments

Comments
 (0)