OPENCV The source directory does not appear to contain CMakeLists.txt.
When trying to compile openCV with cmake on my Mac with M1 chip, i get the following error: CMake Error: The source directory "/Users" does not appear to contain CMakeLists.txt.
Here is the full line of code that i used before getting the error:
cmake
-DCMAKE_SYSTEM_PROCESSOR=arm64
-DCMAKE_OSX_ARCHITECTURES=arm64
-DWITH_OPENJPEG=OFF
-DWITH_IPP=OFF
-D CMAKE_BUILD_TYPE=RELEASE
-D CMAKE_INSTALL_PREFIX=/usr/local
-D OPENCV_EXTRA_MODULES_PATH=/Users/rosalie/tensorflow_macos/arm64/opencv_contrib-4.5.0/modules
-D PYTHON3_EXECUTABLE=opt/homebrew/Caskroom/miniforge/base/envs/cv/bin/python3
-D BUILD_opencv_python2=OFF
-D BUILD_opencv_python3=ON
-D INSTALL_PYTHON_EXAMPLES=ON
-D INSTALL_C_EXAMPLES=OFF
-D OPENCV_ENABLE_NONFREE=ON
-D BUILD_EXAMPLES=ON ..
There are in fact no CMakeLists.txt files in the build folder. How could i fix that to finally be able to compile OpenCV?
Thank you.