First time here? Check out the FAQ!

Ask Your Question
0

cmake build error on raspbian raspberry pi 4

asked Sep 17 '19

https://projects-raspberry.com/home-s...

Code $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON .. - Please advise did i missed out anything

CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the current working directory, but note that this warning will become fatal error in future CMake releases

CMake Error: The Source directory "home/pi" does not appear to contain CMakeLists.txt

Preview: (hide)

Comments

error is CMake Error: The Source directory "home/pi" does not appear to contain CMakeLists.txt. that's the error. Use this page to build opencv

LBerger gravatar imageLBerger (Sep 17 '19)edit

1 answer

Sort by » oldest newest most voted
1

answered Sep 19 '19

palumbo gravatar image

at the end of your cmake args list, you need to specify the opencv folder location, so add:

../../opencv

to the end of your CLI args.

note: if your opencv folder is named with its version number i.e. opencv-4.0.0, then it'd be"

../../opencv-4.0.0

Preview: (hide)

Question Tools

1 follower

Stats

Asked: Sep 17 '19

Seen: 2,279 times

Last updated: Sep 17 '19