flutterfire_desktop
flutterfire_desktop copied to clipboard
Failed on Linux
Code works on web, I just added these desktop packages and first run on Linux...
Launching lib/main.dart on Linux in debug mode... lib/main.dart:1 CMake Error at /usr/local/share/cmake-3.15/Modules/FindPkgConfig.cmake:458 (message): A required package was not found Call Stack (most recent call first): /usr/local/share/cmake-3.15/Modules/FindPkgConfig.cmake:637 (_pkg_check_modules_internal) flutter/ephemeral/.plugin_symlinks/desktop_webview_auth/linux/CMakeLists.txt:21 (pkg_check_modules)
Exception: Unable to generate build files Exited (sigterm)
Building Linux application... [ +9 ms] <- compile package:pathfinder/main.dart [ +1 ms] executing: [build/linux/x64/debug/] cmake -G Ninja -DCMAKE_BUILD_TYPE=Debug -DFLUTTER_TARGET_PLATFORM=linux-x64 /home/steve/Documents/GitHub/dfc/dashboard/linux [ +55 ms] -- Checking for module 'webkit2gtk-4.0' [ +9 ms] -- No package 'webkit2gtk-4.0' found [ ] -- Configuring incomplete, errors occurred!
Strangely I had reported the same issue to another repo in 2019. I got a new computer since then...
Solutions are here: https://github.com/webview/webview/issues/230
Put this in your docs:
Debian: sudo apt install libwebkit2gtk-4.0-dev
Now I'm getting this: Launching lib/main.dart on Linux in debug mode... lib/main.dart:1 CMake Error at cmake_install.cmake:61 (file): file INSTALL cannot copy file "/home/steve/Documents/GitHub/dfc/dashboard/build/linux/x64/debug/intermediates_do_not_run/dashboard" to "/usr/local/dashboard".
Exception: Build process failed Exited (sigterm)
strangely, flutter clean (twice) fixed that last problem. Now another:
[ERROR:flutter/lib/ui/ui_dart_state.cc(198)] Unhandled Exception: MissingPluginException(No implementation found for method Firebase#initializeCore on channel plugins.flutter.io/firebase_core)
#0 MethodChannel._invokeMethod
package:flutter/…/services/platform_channel.dart:165