Open GrishinSergeyAl opened 3 years ago
Hi @GrishinSergeyLexpharma, could you please try the snap from edge to see if the issue is now resolved:
snap refresh flutter --edge
I tried, i965_drv_video.so file appeared. But flutter doesn't want to work on snaps.
$ flutter run
Launching lib/main.dart on Linux in debug mode...
Building Linux application...
libGL error: MESA-LOADER: failed to open swrast (search paths /snap/flutter/current/usr/lib/x86_64-linux-gnu/dri)
libGL error: failed to load driver: swrast
** (test1:7689): WARNING **: Failed to start Flutter renderer: Unable to create GL context
If I change bootstrap.sh then flutter works
#export LIBGL_DRIVERS_PATH=$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri
export LIBGL_DRIVERS_PATH=/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri
I tried, i965_drv_video.so file appeared. But flutter doesn't want to work on snaps.
$ flutter run Launching lib/main.dart on Linux in debug mode... Building Linux application... libGL error: MESA-LOADER: failed to open swrast (search paths /snap/flutter/current/usr/lib/x86_64-linux-gnu/dri) libGL error: failed to load driver: swrast ** (test1:7689): WARNING **: Failed to start Flutter renderer: Unable to create GL context
If I change bootstrap.sh then flutter works
#export LIBGL_DRIVERS_PATH=$SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri export LIBGL_DRIVERS_PATH=/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/dri
Hi! still having this issue. can you elaborate about bootstrap.sh
fix? where can I find this file?
Steps to Reproduce
I am trying to use Flutter for linux and I have a problem launching the program from Idea
I'm using a standard file bootstrap.sh
The LIBGL_DRIVERS_PATH variable gets the path "/snap/flutter/current/usr/lib/x86_64-linux-gnu/". Directory content is different from directory /usr/lib/x86_64-linux-gnu/dri/ . There is not enough file /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
If you put in a variable LIBGL_DRIVERS_PATH = /usr/lib/x86_64-linux-gnu/dri/ , then Idea launches the file. But, unfortunately, over time, botstrap.sh becomes standard again.