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

Error: CMake 3.18 or higher is required on Linux #109

Closed
YancyHsu opened this issue Jun 21, 2024 · 6 comments
Closed

Error: CMake 3.18 or higher is required on Linux #109

YancyHsu opened this issue Jun 21, 2024 · 6 comments

Comments

@YancyHsu
Copy link

cmake_minimum_required(VERSION 3.18)

my system cmake version is :
linux cmd>> cmake --version
result>> cmake version 3.29.6

but when run this line above, it throws:
CMake 3.18 or higher is required. You are running version 3.16.3

i add this line in this CmakeLists.txt, it shows:
add in CmakeLists.txt>> message(WARNING "----${CMAKE_VERSION}")
result>> ----3.16.3

i cant find what is wrong

@YancyHsu
Copy link
Author

add in CmakeLists.txt>> message(WARNING "----${CMAKE_ROOT}")
then I got:

----/snap/flutter/145/usr/share/cmake-3.16

so the flutter itself use 3.16

@rainyl
Copy link
Owner

rainyl commented Jun 21, 2024

Download and install flutter manually, do not use snap.

@rainyl rainyl changed the title CMake 3.18 or higher is required. CMake 3.18 or higher is required on Linux Jun 21, 2024
@rainyl rainyl changed the title CMake 3.18 or higher is required on Linux Error: CMake 3.18 or higher is required on Linux Jun 21, 2024
@rainyl
Copy link
Owner

rainyl commented Jun 21, 2024

It requires a minimum cmake verson of 3.18 because file(ARCHIVE_EXTRACT) is only available since 3.18, https://cmake.org/cmake/help/latest/command/file.html#archive-extract

@YancyHsu
Copy link
Author

It requires a minimum cmake verson of 3.18 because file(ARCHIVE_EXTRACT) is only available since 3.18, https://cmake.org/cmake/help/latest/command/file.html#archive-extract

get it, tks

@rainyl
Copy link
Owner

rainyl commented Jun 21, 2024

Never mind, I have published v1.0.10+1 with #107 fixed, you can now use it to setup manually if you still want to use snap-installed flutter, remember to set OPENCV_DART_DISABLE_AUTO_BUILD environment variable.

@YancyHsu
Copy link
Author

It requires a minimum cmake verson of 3.18 because file(ARCHIVE_EXTRACT) is only available since 3.18, https://cmake.org/cmake/help/latest/command/file.html#archive-extract

it works, and tips tell me install ninja, gtk, pkg-config, clang

@YancyHsu YancyHsu reopened this Jun 21, 2024
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

2 participants