Closed pc-magas closed 1 year ago
As far as I understood the snap
installed flutter fails to build due to version mismatch with GLib
(snap come their their own set of libraries and do not use system's one). In order to be able to build in a later flutter versions you need to manually install the flutter without using snap.
Then install the:
sudo apt-get install libayatana-appindicator3-dev
My approach to install flutter was to use the git version:
Step 1: Place the flutter to a bin folder
mkdir -p `~/.bin/`
cd ~/.bin
git clone https://github.com/flutter/flutter.git -b stable
(An alternative approach keeping the Linux spirit is /opt
folder as well. In my case I opted out though)
Then update the $PATH
environmental variable via placing into the ~/.bashrc
the following line:
export PATH="$PATH:/home/pcmagas/.bin/flutter/bin"
And updated the bash session (Alternatively close and open the terminal):
source ~/.bashrc
Then I installed the nessesary packages:
sudo apt-get install cmake build-essential ninja-build
sudo apt-get install libayatana-appindicator3-dev
I think it is good idea to b mentioned in documentation.
Once I build my minimalistic demo:
Via running:
I get the following error:
The major issue that I have is:
I am using Linux mint 21 with
libayatana-appindicator3-dev
as you mention on documentation. The package comes fromjammy
22.04 ubuntu that repo though:Meaning that I am unable to run the application that uses this package under ubuntu 22.04 and derivative distros. Is there an alternative approach on how I can build and run my flutter application (for development) under ubuntu 22.04?
The ubuntu 22.04 is the latest LTS version hence it may cause many problems in the future for linux app development.
The flutter version I use is the 3.3.7 one:
With:
At
pubspec.yml
.