Ask Your Question
0

cmake build error on raspbian raspberry pi 4

asked 2019-09-17 10:38:09 -0600

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

edit retag flag offensive close merge delete

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 ( 2019-09-17 14:53:17 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2019-09-18 19:33:09 -0600

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

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-09-17 10:38:09 -0600

Seen: 2,211 times

Last updated: Sep 17 '19