You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a flutter app setup with Drift. I'm running on linux using the snap install of flutter.
When I build the app I get the following error message:
CMake Error at flutter/ephemeral/.plugin_symlinks/sqlite3_flutter_libs/linux/CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.14 or higher is required. You are running version 3.10.2
I made a bit of research and found that using the snap install of flutter I cannot upgrade the cmake version used for the build. That's mentioned in the following ticket: flutter/flutter#100183
I tried to manually decrease the cmake requirement in the cmakefile but that's also failing with error
CMake Error at flutter/ephemeral/.plugin_symlinks/sqlite3_flutter_libs/linux/CMakeLists.txt:9 (include):
include could not find load file:
FetchContent
CMake Error at flutter/ephemeral/.plugin_symlinks/sqlite3_flutter_libs/linux/CMakeLists.txt:20 (FetchContent_Declare):
Unknown CMake command "FetchContent_Declare".
Exception: Unable to generate build files
So I suppose that cmake 3.14 is really required here. I have absolutely no knowledge on how cmake works, but I was wondering if it would be possible to make some changes to lower the minimum requirement of cmake is order to support the default flutter installation on linux?
Thanks
The text was updated successfully, but these errors were encountered:
Unfortunately, we really need that cmake version. I'm not too familiar with all the depths of cmake either, but I think there's no good way around FetchContent which we need to download the native sqlite3 dependency. If anyone is aware of one, I'm happy to take a look at that and lower our minimum required version.
Nice find with the updated snap and the new base snap though! Hopefully this won't be a problem much longer then :)
Hi,
I've got a flutter app setup with Drift. I'm running on linux using the snap install of flutter.
When I build the app I get the following error message:
I made a bit of research and found that using the snap install of flutter I cannot upgrade the cmake version used for the build. That's mentioned in the following ticket: flutter/flutter#100183
I tried to manually decrease the cmake requirement in the cmakefile but that's also failing with error
So I suppose that cmake 3.14 is really required here. I have absolutely no knowledge on how cmake works, but I was wondering if it would be possible to make some changes to lower the minimum requirement of cmake is order to support the default flutter installation on linux?
Thanks
The text was updated successfully, but these errors were encountered: