WillPower3309 / swayfx

SwayFX: Sway, but with eye candy!
MIT License
1.3k stars 48 forks source link

meson error: Invalid version, need 'wlroots' ['>=0.16.0'] found '0.15.1' #124

Closed nwg-piotr closed 1 year ago

nwg-piotr commented 1 year ago

I've just installed the latest AUR package on my testing laptop and it went well. On my main machine meson build ends up in:

swayfx-0.2/meson.build:55:0: ERROR: Dependency lookup for wlroots with method 'pkgconfig' failed: Invalid version, need 'wlroots' ['>=0.16.0'] found '0.15.1'.

wlroots version on the system is 0.16.2. What am I missing?

meson-log.txt

eli-schwartz commented 1 year ago
Pkg-config binary for 1 is cached.
Determining dependency 'wlroots' with pkg-config executable '/sbin/pkg-config'
env[PKG_CONFIG_PATH]: /usr/lib/wlroots0.15/pkgconfig
Called `/sbin/pkg-config --modversion wlroots` -> 0
stdout:
0.15.1

Where does this wlroots0.15 come from, and why is it in the $PKG_CONFIG_PATH before you ran meson?

nwg-piotr commented 1 year ago

Probably from some old sway local build. Delete it?

ErikReider commented 1 year ago

You'll need to install / upgrade wlroots to 0.16.2. There should be a wlroots0.15 package for packages that still require the old version :)

nwg-piotr commented 1 year ago

I'll check at home. Honestly, I don't remember installing wlroots0.15.

ErikReider commented 1 year ago

I'll check at home. Honestly, I don't remember installing wlroots0.15.

wlroots0.15 is only for outdated packages like cage that still requires 0.15. Shouldn't interfere with the regular one. 0.16.2 is needed :)

nwg-piotr commented 1 year ago

As I said, I have 0.16.2 installed.

tyush commented 1 year ago

Had same issue. I had both wlroots0.15 and wlroots installed.

Solved by forcefully removing wlroot0.15 and then updating swayfx.

yay -R --assume-installed wlroots0.15=0.15.1 --assume-installed libwlroots.so=10-64 wlroots0.15 && yay -S swayfx

Something in the build process is preferring wlroots0.15 over wlroots, even if both are installed.

I'd imagine it's something about line 56 in the PKGBUILD, but I haven't the slightest clue about how makepkg works.

export PKG_CONFIG_PATH='/usr/lib/wlroots0.15/pkgconfig'
nwg-piotr commented 1 year ago

I'd imagine it's something about line 56 in the PKGBUILD,

I tried changing it to 0.16, to no avail.

Will try your solution tonight. Thank you!

ErikReider commented 1 year ago

I'd imagine it's something about line 56 in the PKGBUILD, but I haven't the slightest clue about how makepkg works.

export PKG_CONFIG_PATH='/usr/lib/wlroots0.15/pkgconfig'

Good catch! That's exactly it. Must've missed it. Thanks :)

nwg-piotr commented 1 year ago

I both used the yay command adviced by @tyush, and removed line 56. Now I end up in this.

ErikReider commented 1 year ago

@nwg-piotr Must be one of your dependencies that's messing with the build. You're running Arch right?

ErikReider commented 1 year ago

Are you able to build regular sway?

Clone https://github.com/archlinux/svntogit-community/tree/packages/sway and run makepkg -si in the PKGBUILD directory

nwg-piotr commented 1 year ago
$ git clone https://github.com/archlinux/svntogit-community/tree/packages/sway
Cloning into 'sway'...
fatal: repository 'https://github.com/archlinux/svntogit-community/tree/packages/sway/' not found

However, I managed to build with wlroots 0.16.2 cloned as a subproject.

ErikReider commented 1 year ago
$ git clone https://github.com/archlinux/svntogit-community/tree/packages/sway
Cloning into 'sway'...
fatal: repository 'https://github.com/archlinux/svntogit-community/tree/packages/sway/' not found

That's the url to the git repo 😂

However, I managed to build with wlroots 0.16.2 cloned as a subproject.

Strange

nwg-piotr commented 1 year ago

image

ErikReider commented 1 year ago

The aur package should be updated now :)

nwg-piotr commented 1 year ago

The aur package should be updated now :)

On my machine it still doesn't install:

image

Surely it must be something wrong w/ my environment, as on the other laptop (clean Arch + nwg-shell install) everything goes well.

nwg-piotr commented 1 year ago

Closing as this looks like a problem with my machine, not the software itself.