Run CMake for OpenCV 4
(cv) pi@raspberrypi:~/opencv/build $ cmake -D CMAKE_BUILD_TYPE=RELEASE \
CMake Error: The source directory "/home/pi/opencv/build/CMAKE_BUILD_TYPE=RELEASE" does not exist. Specify --help for usage, or press the help button on the CMake GUI. (cv) pi@raspberrypi:~/opencv/build $ -D CMAKE_INSTALL_PREFIX=/usr/local \
bash: -D: 未找到命令 (cv) pi@raspberrypi:~/opencv/build $ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
bash: -D: 未找到命令 (cv) pi@raspberrypi:~/opencv/build $ -D ENABLE_NEON=ON \
bash: -D: 未找到命令 (cv) pi@raspberrypi:~/opencv/build $ -D ENABLE_VFPV3=ON \
bash: -D: 未找到命令 (cv) pi@raspberrypi:~/opencv/build $ -D BUILD_TESTS=OFF \
bash: -D: 未找到命令 (cv) pi@raspberrypi:~/opencv/build $ -D OPENCV_ENABLE_NONFREE=ON \
bash: -D: 未找到命令 (cv) pi@raspberrypi:~/opencv/build $ -D INSTALL_PYTHON_EXAMPLES=OFF \
bash: -D: 未找到命令
to the non-chinese rest of the world:
未找到命令
means: command not found.-D
(seems your shell does not like it)\
(cv) pi@raspberrypi:~/opencv/build $ cmake -D CMAKE_BUILD_TYPE=RELEASE CMake Error: The source directory "/home/pi/opencv/build/CMAKE_BUILD_TYPE=RELEASE" does not exist. Specify --help for usage, or press the help button on the CMake GUI. I tried, but it does not work. It seems the "build" field is empty.