-
Notifications
You must be signed in to change notification settings - Fork 55
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
Facing issue while create snap build #164
Comments
@cadivus see this: `premal@premal:~/Downloads/FileZilla3/bundle$ ./Moon_HRM ./Moon_HRM: /lib/x86_64-linux-gnu/libc.so.6: version |
It does run on Ubuntu 22.04. The workflows run with Ubuntu 22.04 and as you see it works: The problem is that you installed Flutter using Snap, but Snap is an isolated environment. So as you see in your error logs, the dependencies can't be found.
I think that's what I already texted here (#160):
|
no i have installed flutter downloaded from flutter sdk archive. but still it not run on 22.04 |
@patel0712 You exported your logs using snapcraft. Also your error logs show that you are using Snap,
You are still using the Snap version as your logs show. Maybe removing the Snap version helps to always use the other installation. |
but when i run command snapcraft -v can you please check and guide me through snapcraft.yaml file if any issue are there. |
see this: Processing triggers for libgdk-pixbuf2.0-0:amd64 (2.36.11-2) ...
|
Yes, probably. Snapcraft uses Snap. That's why I ask you not to use Snap for running Flutter.
I don't think this project officially supports Snap (and I don't think I broke Snap when upgrading CEF. You could check that by checking out an older version of this repo). |
okay thanks for your support also if you find anything related to this then please let me know on [email protected] |
this is my log file after run
snapcraft -v
command.log.txt
error logs:
-Wl,-rpath,/root/parts/linux-webview-demo/build/build/linux/x64/release/plugins/webview_cef:/root/parts/linux-webview-demo/build/linux/flutter/ephemeral:/r oot/parts/linux-webview-demo/build/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/linux/../third/cef/Release: plugins/webview_cef/libwebview_cef_plugin.so -lflutter_linux_gtk /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgtk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk-3.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpangocairo-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libpango-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libharfbuzz.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libatk-1.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo-gobject.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libcairo.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgdk_pixbuf-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgio-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libgobject-2.0.so /snap/flutter/current/usr/lib/x86_64-linux-gnu/libglib-2.0.so /root/parts/linux-webview-demo/build/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/linux/../third/cef/Release/libcef.so plugins/webview_cef/libcef_dll_wrapper/libcef_dll_wrapper.a -lGL -lX11 -lgmodule-2.0 -lgthread-2.0 -lgtk-3 -lgdk-3 -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lXi && : [ ] /snap/flutter/current/usr/bin/ld: warning: libnss3.so, needed by /root/parts/linux-webview-demo/build/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/linux/../third/cef/Release/libcef.so, not found (try using -rpath or -rpath-link) [ ] /snap/flutter/current/usr/bin/ld: warning: libnssutil3.so, needed by /root/parts/linux-webview-demo/build/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/linux/../third/cef/Release/libcef.so, not found (try using -rpath or -rpath-link) [ ] /snap/flutter/current/usr/bin/ld: warning: libsmime3.so, needed by /root/parts/linux-webview-demo/build/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/linux/../third/cef/Release/libcef.so, not found (try using -rpath or -rpath-link) [ ] /snap/flutter/current/usr/bin/ld: warning: libnspr4.so, needed by /root/parts/linux-webview-demo/build/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/linux/../third/cef/Release/libcef.so, not found (try using -rpath or -rpath-link) [ ] /snap/flutter/current/usr/bin/ld: warning: libasound.so.2, needed by /root/parts/linux-webview-demo/build/linux/flutter/ephemeral/.plugin_symlinks/webview_cef/linux/../third/cef/Release/libcef.so, not found (try using -rpath or -rpath-link)
snapcraft.yaml :
name: linux-webview-demo # Substitute with your app's name
version: '1.0.0' # Your app's version
summary: A short description of your app
description: |
A longer description of your app, detailing what it does.
grade: devel # Use "devel" for development versions
confinement: devmode # Use "devmode" if strict confinement causes issues during testing
base: core18 # Base Snap; core20 is Ubuntu 20.04
architectures:
parts:
linux-webview-demo:
plugin: flutter
source: .
flutter-target: lib/main.dart # Entry point of your Flutter app
build-packages:
- clang
- cmake
- make
- pkg-config
- libgtk-3-dev
- libc6-dev
- libssl-dev
- libwebkit2gtk-4.0-dev
webview-cef:
plugin: nil # Custom plugin configuration
source: . # Point to the root of your project
stage-packages:
- libnss3
- libnss3-dev
- libnspr4
- libnspr4-dev
- libasound2
- libasound2-dev # Development package for ALSA to ensure all symbols are included
organize:
usr/lib/x86_64-linux-gnu/libcef.so: lib/libcef.so
usr/lib/x86_64-linux-gnu/libnss3.so: lib/libnss3.so
usr/lib/x86_64-linux-gnu/libnssutil3.so: lib/libnssutil3.so
usr/lib/x86_64-linux-gnu/libsmime3.so: lib/libsmime3.so
usr/lib/x86_64-linux-gnu/libnspr4.so: lib/libnspr4.so
usr/lib/x86_64-linux-gnu/libasound.so.2: lib/libasound.so.2
apps:
linux-webview-demo: # Substitute with your app's name
environment:
LD_LIBRARY_PATH: "$SNAP/usr/lib/x86_64-linux-gnu:$SNAP/lib/x86_64-linux-gnu:$SNAP/usr/lib:$SNAP/lib"
command: bin/linux-webview-demo # The executable file of your app
extensions: [flutter-stable] # Use Flutter extension to handle dependencies
plugs:
- network
- network-bind
- wayland
- x11
- opengl`
pubspec.yaml :
`name: webview_cef_example
description: Demonstrates how to use the webview_cef plugin.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
environment:
sdk: ">=2.17.1 <3.0.0"
dependencies:
flutter:
sdk: flutter
webview_cef:
path: lib/packages/webview_cef #<======== how i use webview_cef.
cupertino_icons: ^1.0.2
dev_dependencies:
flutter_test:
sdk: flutter
flutter_lints: ^2.0.0
flutter:
uses-material-design: true
The text was updated successfully, but these errors were encountered: