swayfx icon indicating copy to clipboard operation
swayfx copied to clipboard

swayfx fails to build on Arch

Open lolplayer69420 opened this issue 2 years ago • 11 comments
trafficstars

Im trying to install swayfx on Arch Linux, but whether i try to do it by building it manually from source, or i try to install it via AUR, it fails

  • Compiler errors:
../sway/lock.c: En la función ‘destroy_lock_surface’:
../sway/lock.c:69:65: error: ‘struct wlr_session_lock_surface_v1’ no tiene un miembro llamado ‘mapped’
   69 |                         if (other != surf->lock_surface && other->mapped) {
      |                                                                 ^~
../sway/lock.c: En la función ‘handle_new_surface’:
../sway/lock.c:114:44: error: ‘struct <anónimo>’ no tiene un miembro llamado ‘map’
  114 |         wl_signal_add(&lock_surface->events.map, &surf->map);
      |                                            ^
../sway/lock.c:120:50: error: ‘struct <anónimo>’ no tiene un miembro llamado ‘mode’
  120 |         wl_signal_add(&output->wlr_output->events.mode, &surf->output_mode);
      |                                    
  • Steps to reproduce:
meson build/
ninja -C build/
sudo ninja -C build/ install

or

yay -S swayfx 

lolplayer69420 avatar Sep 02 '23 22:09 lolplayer69420

Perhaps check if you have wlroots 0.17 on your system

RicArch97 avatar Sep 02 '23 22:09 RicArch97

Perhaps check if you have wlroots 0.17 on your system

i tried to install it via the AUR, but trying to build swayfx had the same error, so i tried to build and install it directly from the wlroot's git and meson failed with the following errors:

ninja: Entering directory `build/'
ninja: error: '/usr/lib/libwlroots.so', needed by 'sway/sway', missing and no known rule to make it
ninja: Entering directory `build/'
ninja: error: '/usr/lib/libwlroots.so', needed by 'sway/sway', missing and no known rule to make it

lolplayer69420 avatar Sep 02 '23 22:09 lolplayer69420

You need wlroots 0.16 installed, not wlroots-git

ErikReider avatar Sep 03 '23 12:09 ErikReider

You need wlroots 0.16 installed, not wlroots-git

i installed wlroots and i have the same error

lolplayer69420 avatar Sep 03 '23 18:09 lolplayer69420

You need wlroots 0.16 installed, not wlroots-git

i installed wlroots and i have the same error

You likely still have wlroots 0.17 (wlroots-git) installed on your system. This is usually the case when you have compiled it from source at some point. Those files aren't managed by anything other than yourself, so it might still be there. Look for libwlroots.so.12 in /usr/local/lib (and maybe also /usr/lib just to be sure). If it's there, remove it and try again.

RicArch97 avatar Sep 03 '23 18:09 RicArch97

You need wlroots 0.16 installed, not wlroots-git

i installed wlroots and i have the same error

You likely still have wlroots 0.17 (wlroots-git) installed on your system. This is usually the case when you have compiled it from source at some point. Those files aren't managed by anything other than yourself, so it might still be there. Look for libwlroots.so.12 in /usr/local/lib (and maybe also /usr/lib just to be sure). If it's there, remove it and try again.

You need wlroots 0.16 installed, not wlroots-git

i installed wlroots and i have the same error

You likely still have wlroots 0.17 (wlroots-git) installed on your system. This is usually the case when you have compiled it from source at some point. Those files aren't managed by anything other than yourself, so it might still be there. Look for libwlroots.so.12 in /usr/local/lib (and maybe also /usr/lib just to be sure). If it's there, remove it and try again.

same error, i also deleted a file named libwlroots.so.12032 just for being sure

lolplayer69420 avatar Sep 03 '23 18:09 lolplayer69420

When running meson build/ you should see the wlroots version found on your system

ErikReider avatar Dec 16 '23 20:12 ErikReider

now it works, but it doesnt apply any effects like shadows or round corners

lolplayer69420 avatar Dec 18 '23 04:12 lolplayer69420

now it works, but it doesnt apply any effects like shadows or round corners

Run sway --version and paste the output here

ErikReider avatar Dec 18 '23 08:12 ErikReider

sway version 0.3.2-26cdeeb (Dec 6 2023, branch 'master')

lolplayer69420 avatar Dec 19 '23 03:12 lolplayer69420

The problem was that for some reason, it didnt read the config file, launching it with the --config option solved it, but now i have to logout each time i change something in the config file

lolplayer69420 avatar Jan 05 '24 07:01 lolplayer69420