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

Failed on Linux #86

Open
sgehrman opened this issue Jun 27, 2022 · 4 comments
Open

Failed on Linux #86

sgehrman opened this issue Jun 27, 2022 · 4 comments

Comments

@sgehrman
Copy link

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)

@sgehrman
Copy link
Author

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!

@sgehrman
Copy link
Author

sgehrman commented Jun 27, 2022

Strangely I had reported the same issue to another repo in 2019. I got a new computer since then...

Solutions are here:
webview/webview#230

Put this in your docs:

Debian: sudo apt install libwebkit2gtk-4.0-dev

@sgehrman
Copy link
Author

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)

@sgehrman sgehrman reopened this Jun 27, 2022
@sgehrman
Copy link
Author

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

#1 MethodChannel.invokeListMethod
package:flutter/…/services/platform_channel.dart:353

#2 MethodChannelFirebase._initializeCore
package:firebase_core_platform_interface/…/method_channel/method_channel_firebase.dart:31

#3 MethodChannelFirebase.initializeApp
package:firebase_core_platform_interface/…/method_channel/method_channel_firebase.dart:73

#4 Firebase.initializeApp
package:firebase_core/src/firebase.dart:40

#5 Main.start
package:shared_ui/src/main.dart:31

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

No branches or pull requests

2 participants