Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation failure , CMake Error < 3.5 , But the current version is 4.0.0-rc3 #1287

Open
Zengqincheng opened this issue Mar 8, 2025 · 0 comments

Comments

@Zengqincheng
Copy link

Zengqincheng commented Mar 8, 2025

The current environment is window11, Use win build opencv.cmd to install ,
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/thread_utils.c.obj
[ 15%] Building C object 3rdparty/libwebp/CMakeFiles/libwebp.dir/src/utils/utils.c.obj
[ 15%] Linking C static library ..\lib\liblibwebp.a
[ 15%] Built target libwebp
[ 15%] Linking CXX static library ..\lib\liblibprotobuf.a
[ 15%] Built target libprotobuf
Makefile:164: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

C:\opencv\build>mingw32-make install
[ 0%] Built target opencv_dnn_plugins
[ 0%] Built target opencv_highgui_plugins
[ 1%] Generate opencv4.pc
CMake Error at C:/opencv/opencv-4.11.0/cmake/OpenCVGenPkgconfig.cmake:113 (cmake_minimum_required):
Compatibility with CMake < 3.5 has been removed from CMake.

Update the VERSION argument value. Or, use the ... syntax
to tell CMake that the project requires at least but has been updated
to work with policies introduced by or earlier.

Or, add -DCMAKE_POLICY_VERSION_MINIMUM=3.5 to try configuring anyway.

CMakeFiles\gen-pkgconfig.dir\build.make:70: recipe for target 'unix-install/opencv4.pc' failed
mingw32-make[2]: *** [unix-install/opencv4.pc] Error 1
CMakeFiles\Makefile2:4314: recipe for target 'CMakeFiles/gen-pkgconfig.dir/all' failed
mingw32-make[1]: *** [CMakeFiles/gen-pkgconfig.dir/all] Error 2
Makefile:164: recipe for target 'all' failed
mingw32-make: *** [all] Error 2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant