此时您可能会出现下面的错误: Package opencv was not found in the pkg-config search path. Perhaps you should add the directory containing `opencv.pc’ to the PKG_CONFIG_PATH environment variable No package ‘opencv’ found
voiddrawText(Mat & image) { putText(image, "Hello OpenCV", Point(20, 50), FONT_HERSHEY_COMPLEX, 1, // font face and scale Scalar(255, 255, 255), // white 1, LINE_AA); // line thickness and type }
dyld[72956]: Library not loaded: libssl.1.1.dylib Referenced from: /Users/您的用户名/Program/Clion-workplace/test/cmake-build-debug/cty Reason: tried: 'libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file), '/Users/chentianyi/Program/Clion-workplace/test/cmake-build-debug/libssl.1.1.dylib' (no such file), '/usr/local/lib/libssl.1.1.dylib' (no such file), '/usr/lib/libssl.1.1.dylib' (no such file)