Run CMake for OpenCV 4

asked 2019-07-09 20:16:47 -0600

(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: 未找到命令

edit retag flag offensive close merge delete

Comments

to the non-chinese rest of the world: 未找到命令 means: command not found.

  • try without additional space after -D (seems your shell does not like it)
  • try to put the whole cmake cmd on a single, long line, without breaking it with \
berak gravatar imageberak ( 2019-07-09 23:48:31 -0600 )edit

(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.

andersenhuang2016@gmail.com gravatar image[email protected] ( 2019-07-10 09:51:55 -0600 )edit