bleakgrey / tootle

GTK-based Mastodon client for Linux
GNU General Public License v3.0
401 stars 61 forks source link

Getting an erorr when installing Tootle in Manjaro #123

Closed thomasfaller closed 5 years ago

thomasfaller commented 5 years ago

Hey guys, I'm getting the following log when trying to install Tootle (from pacman GUI):

Preparing...
Cloning tootle build files...
Checking tootle dependencies...
Resolving dependencies...
Checking inter-conflicts...

Downloading ninja (1.8.2-1-x86_64)...
Downloading python-mako (1.0.7-3-any)...
Downloading meson (0.49.0-1-any)...
Checking keyring...
Checking integrity...
Loading packages files...
Checking file conflicts...
Checking available disk space...
Installing itstool (1:2.0.2+5+g676f3f7-1)...
Installing yelp-tools (3.28.0-1)...
Installing autoconf-archive (1:2018.03.13-2)...
Installing gnome-common (3.18.0-3)...
Installing python-markupsafe (1.1.0-1)...
Installing python-beaker (1.10.0-2)...
Installing python-mako (1.0.7-3)...
Installing gobject-introspection (1.58.3-1)...
Installing ninja (1.8.2-1)...
Installing meson (0.49.0-1)...
Running post-transaction hooks...
Arming ConditionNeedsUpdate...
Updating the info directory file...
Building tootle...
==> Making package: tootle 0.2.0-1 (Thu 10 Jan 2019 08:07:32 GMT)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading 0.2.0.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100   123    0   123    0     0    363      0 --:--:-- --:--:-- --:--:--   362

100 35508    0 35508    0     0  28868      0 --:--:--  0:00:01 --:--:-- 28868
100  919k    0  919k    0     0   484k      0 --:--:--  0:00:01 --:--:-- 1323k
==> Validating source files with sha256sums...
    0.2.0.tar.gz ... Passed
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Extracting 0.2.0.tar.gz with bsdtar
==> Starting build()...
+ exec meson setup --prefix /usr --libdir /usr/lib --libexecdir /usr/lib --bindir /usr/bin --sbindir /usr/bin --includedir /usr/include --datadir /usr/share --mandir /usr/share/man --infodir /usr/share/info --localedir /usr/share/locale --sysconfdir /etc --localstatedir /var --sharedstatedir /var/lib --buildtype release --auto-features enabled --wrap-mode nofallback -D b_lto=true build
The Meson build system
Version: 0.49.0
Source dir: /var/tmp/pamac-build-thomas/tootle/src/tootle-0.2.0
Build dir: /var/tmp/pamac-build-thomas/tootle/src/tootle-0.2.0/build
Build type: native build
Project name: com.github.bleakgrey.tootle
Project version: undefined
Appending CFLAGS from environment: '-march=x86-64 -mtune=generic -O2 -pipe -fstack-protector-strong -fno-plt'
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Appending CPPFLAGS from environment: '-D_FORTIFY_SOURCE=2'
Native C compiler: cc (gcc 5.5.0 "cc (Homebrew gcc 5.5.0_4) 5.5.0")
Appending LDFLAGS from environment: '-Wl,-O1,--sort-common,--as-needed,-z,relro,-z,now'
Native Vala compiler: valac (valac 0.42.4)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /home/linuxbrew/.linuxbrew/bin/pkg-config (0.29.2)
WARNING: Could not detect glib version, assuming 2.54. You may get build errors if your glib is older.
Found CMake: NO
Dependency gtk+-3.0 found: NO (tried pkgconfig)

meson.build:18:0: ERROR:  Dependency "gtk+-3.0" not found, tried pkgconfig

A full log can be found at /var/tmp/pamac-build-thomas/tootle/src/tootle-0.2.0/build/meson-logs/meson-log.txt
==> ERROR: A failure occurred in build().
    Aborting...

I'm using Manjaro XFCE latest stable kernel. Any thoughts?

bleakgrey commented 5 years ago

Looks like meson can't find GTK3: Dependency gtk+-3.0 found: NO (tried pkgconfig)

You may need to tweak dependency('gtk+-3.0', version: '>=3.22.0'), line in the build.meson file to point to the right dependency.

I think someone has already ported Tootle to Arch, by the way. Did you try searching Tootle in AUR?

waldyrious commented 4 years ago

This seems similar to an issue I had recently. Quoting a comment from the relevant thread:

Homebrew's pkg-config only reports packages installed by Homebrew

For me the solution was to use the distro's pkg-config instead of Homebrew's.