• Happy holidays, folks! Thanks to each and every one of you for being part of the Tom's Hardware community!

Question Error acquires to Build a Face Mask Detector with Raspberry Pi

Jan 29, 2021
3
0
10
when i code "cmake -D CMAKE_BUILD_TYPE=RELEASE \"
this reply posting on screen

"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 a fatal error in future CMake releases.





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

Specify --help for usage, or press the help button on the CMake GUI"
what is the solutions of that plz help me.
 
you getting a make error of course. It says that the directory doesn’t have the text file it’s looking for
 
  • Like
Reactions: yam.0
I think you do it just the way they say. So the backslash goes on line below RELEASE

So type in that command and hit the enter key and put there and let us know how it goes. I don’t have a raspberry pie so I can’t do this with you
 
Last edited by a moderator:
  • Like
Reactions: yam.0
The "cmake "command
Code:
cmake -D CMAKE_BUILD_TYPE=RELEASE \
-D CMAKE_INSTALL_PREFIX=/usr/local \
-D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib/modules \
-D ENABLE_NEON=ON \
-D ENABLE_VFPV3=ON \
-D BUILD_TESTS=OFF \
-D INSTALL_PYTHON_EXAMPLES=OFF \
-D OPENCV_ENABLE_NONFREE=ON \
-D CMAKE_SHARED_LINKER_FLAGS=-latomic \
-D BUILD_EXAMPLES=OFF ..
is a single statement. The '\' symbol means that that line continues on next line, so you're supposed to execute.

The blame should go to the article' author for presenting that code in <sarcasric.>"easy to copy-paste form"</sarcastic>
 
  • Like
Reactions: yam.0