-
-
Notifications
You must be signed in to change notification settings - Fork 939
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
Install Flame audio package crash project if you run with linux #1836
Comments
That is this issue: bluefireteam/audioplayers#1197 If I remember correctly Ubuntu based distros bundle a ridiculously old cmake version. |
nmarafo I think you should install flutter manually instead of using snap if you are using a Linux distro thats because snap doesn't have proper CMake support. |
Thank you very much for the reply. I'll try to do the manual installation to see if that fixes it. |
I think that you should also be able to get it working by install it from snap too if you manually set the channel: |
Thanks Lukas, but it didn't work for me... I tried to install Flutter manually but it keeps getting the path of the old installation. I hope it will be fixed when I upgrade to Ubuntu 22... |
Did you make sure that it was fully uninstalled first? |
I followed these steps:
but doesn't work |
I'm not fully aware of how snap works, but shouldn't you set the channel before you install, otherwise you'll just install the same version again? |
If I uninstall flutter before updating I get the message I have reinstalled flutter again with Also refresh channell and install flutter... Maybe it's related to this issue?... |
@nmarafo could you try again now? Since canonical/flutter-snap#61 is merged I'm hoping that it would work now. |
Hi @spydon, after refresh with
flutter doctor it's OK. Actually I'm working with Ubuntu 22.04.1 LTS |
Since the channel has been merged now I don't think you should need to do that step. |
Hey @nmarafo, on going to that particlular line in CMakeLists.txt, I found out that it was a gstreamer issue. Installing that in my system fixed this CMakeError. |
Hi, @AmarNathH, thanks for your answer, If you are talking about install gstreamer I install this on my Ubuntu 22
but doesnt work. Where is the CMakeLists.txt issue? |
Hey @nmarafo
You can see that there is an error at line 25 of CMakeLists, opening it and going to that line, you will able to find which package is missing. |
In my console appear:
I have all gstreamer packages installed. |
At this point you got that CMakeLists error right? I am using the snap version of flutter, I've build it manually. |
Can you run |
In my system I have
If in flutter/ephemeral/.plugin_symlinks/audioplayers_linux/linux/CMakeLists.txt I change
to
I get this out:
|
Are you still running the Flutter snap package? Because they are the ones bundling old versions of cmake, so it doesn't matter if you have a newer version installed on your system. |
Thanks all for your answers.... |
Current bug behaviour
Installing the flame_audio package from pub.dev causes a crash if you run the project on linux.
It works again when uninstalling the package.
Expected behaviour
install the package normally.
Steps to reproduce
Flutter doctor output
More environment information
Log information
The text was updated successfully, but these errors were encountered: