make[2]: *** No rule to make target zlib', needed by lib/libopencv_imgcodecs.4.6.0.dylib’. Stop.
make[1]: *** [modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs…
I tried to in stall it with brew install zlib, however it is already installed: zlib 1.2.11 is already installed and up-to-date
make[2]: *** No rule to make target `zlib', needed by `lib/libopencv_imgcodecs.4.6.0.dylib'. Stop.
make[1]: *** [modules/imgcodecs/CMakeFiles/opencv_imgcodecs.dir/all] Error 2
make: *** [all] Error 2
Can I maybe delete the files that give the error if they are not fundamental, I know that just deleting files will probably cause corruption more than fixing the issue, but I rarely complied a package before and my knowledge of what does what limited.