stewartadam / fwbackups

A feature-rich, user-friendly backup program [bugfixes only]
http://www.diffingo.com/oss/fwbackups/
GNU General Public License v2.0
86 stars 20 forks source link

meson version error on ubuntu 22.04 #15

Closed saiballo closed 1 year ago

saiballo commented 1 year ago

System Details

Issue description

when try to build and install I got this error:

The Meson build system Version: 0.61.2 Source dir: /home/saibal/Scaricati/fwbackups-feature-gtk4 Build dir: /home/saibal/Scaricati/fwbackups-feature-gtk4/_build Build type: native build

meson.build:1:0: ERROR: Meson version is 0.61.2 but project requires >= 0.62.0

I installed last version of meson in ubuntu 22.04 repository. I will try with flatpak

saiballo commented 1 year ago

can't install with flatpak...

error: org.gnome.Platform/x86_64/43 not installed Failed to init: Unable to find runtime org.gnome.Platform version 43

But I have installed it

stewartadam commented 1 year ago

Hm, unfortunately I can't drop to 0.61 as 0.62 introduces better Python detection (the python.install_env we need for MacOS and virtualenvs).

However, the latest meson version can be grabbed from pip:

pip3 install --user -U meson
which meson

It should show ~/.local/bin/meson (if not, call meson using that path directly). I'll install a 22.04 VM tomorrow along side my 22.10 and test further.

stewartadam commented 1 year ago

Just tested on 22.04 and it looks like the older system meson breaks for installing fwbackups as root, so this should remove meson and install the updated version (system-wide) from pip, then install fwbackups:

sudo apt remove meson
sudo apt-get install python3-pip
sudo pip3 install meson
meson setup _build -Dpython.install_env=system
meson install -C _build
stewartadam commented 1 year ago

Let me know if this fixed the issue - If I don't hear back in a few days I'll consider this closed. Thanks!