Flutter运行Linux-desktop应用问题记录

1.配置应用支持linux
命令flutter config --enable-linux-desktop
或者flutter create —platforms=Linux .
2.下载软件包依赖
Audi apt-get install clang cmake ninja-build pkg-config libgtk-3-dev
3.在项目目录/Linux下cmakelists.txt文件中
project(runner LANGUAGES CXX)
之前加
set(CMAKE_CXX_COMPILER “/use/bin/g++”
flutter clean
flutter run
ok正常运行

你可能感兴趣的:(android,linux,flutter)