Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"meta/screen.h: No such file or directory" compiling error #12

Open
kqvanity opened this issue Aug 12, 2021 · 10 comments
Open

"meta/screen.h: No such file or directory" compiling error #12

kqvanity opened this issue Aug 12, 2021 · 10 comments

Comments

@kqvanity
Copy link

I installed all the dependencies stated at the docmentation , then tried compiling the application but i was prompted with this error

>> pwd
/home/nixnode/Documents/gala-alt-tab-plus/build

>> cmake ..
-- checking for a minimum Vala version of 0.22
--   found Vala, version 0.48.18
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nixnode/Documents/gala-alt-tab-plus/build

>> make 
[ 25%] Building C object CMakeFiles/gala-alt-tab-plus.dir/src/Main.c.o
/home/nixnode/Documents/gala-alt-tab-plus/build/src/Main.c:32:10: fatal error: meta/screen.h: No such file or directory
   32 | #include <meta/screen.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/gala-alt-tab-plus.dir/build.make:71: CMakeFiles/gala-alt-tab-plus.dir/src/Main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/gala-alt-tab-plus.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
@aral
Copy link

aral commented Aug 15, 2021

@z0xyz I just got the same error. Are you trying to compile this on elementary OS 6 (Odin)?

@aral
Copy link

aral commented Aug 16, 2021

@markstory Do you know which dependency meta/screen.h is from? I found a screen.c in Mutter (which is where all the Meta stuff is from, I think) and it has a screen-private.h. (Was wondering if they made it private in a more recent version or something.) Not sure if I’m even looking in the right place though. The joys of not knowing the frameworks and having a coffeescript-style transformation step in the middle thanks to Vala. sigh Not exactly the sort of thing you can just jump into :)

@aral
Copy link

aral commented Aug 16, 2021

It’s possible that this is the same issue as: elementary/gala#303

Also see: https://gist.github.com/Tireg/dcb264f755d4e83de53f44a4032a9598

(It looks like Meta.Screen was renamed to Meta.Display.)

Also possibly related: solus-project/budgie-desktop#1591

Also: https://gist.github.com/Tireg/f4c6e28258601dedb73aca517d322806

Looks like there were a metric you-know-what tonne of breaking changes in Mutter 3.30 and I can’t seem to find them documented anywhere apart from people’s patches.

@markstory
Copy link
Owner

I don't know the providence of that header file. This repo started off using the code from another project and that dependency was inherited. Those other issues due seem related, but my Vala knowledge is also very low.

@aral
Copy link

aral commented Aug 16, 2021

Thanks @markstory. I’m going to keep looking into it as elementary OS is basically unusable for me with the stock task switcher.

@aral
Copy link

aral commented Aug 17, 2021

@markstory OK, I’ve got it running on Odin but it’s Odin only. I don’t have time right now to also make it work in Hera. I’m thinking of releasing a fork that’s Odin-only and linking here for folks who are on Hera if that’s OK with you. (I also plan on trying to get the elementary OS folks to make it the default task switcher going forward.) And, of course, please feel free to work the updates back here and have a plugin that runs on both.

@markstory
Copy link
Owner

OK, I’ve got it running on Odin but it’s Odin only. I don’t have time right now to also make it work in Hera. I’m thinking of releasing a fork that’s Odin-only and linking here for folks who are on Hera if that’s OK with you.

That is fine. Once your fork is up, I'll update the README here to point folks towards your Odin fork.

@aral
Copy link

aral commented Aug 28, 2021

@markstory Hey Mark, Catts (Calmer Alt-Tab Task Switcher) is live!

https://github.com/small-tech/catts

(And there is a free wallpaper to download too, if you like.) :)

Also, I’ve opened a feature request on the elementary OS Gala issue tracker to hopefully get it included in elementary OS in place of the stock task switcher. If you or anyone else here would like to give that a thumbs up, I’d appreciate it :)

Lots of love + thank you for Gala Alt-Tab Plus without which Catts wouldn’t exist.

💕

@kqvanity
Copy link
Author

kqvanity commented Sep 2, 2021

@aral sorry for the very late reply , but i hadn't check the repo after scouring the web for an alternative .

Are you trying to compile this on elementary OS 6 (Odin)?

yes, i was building it on elementary odin right after i installed it .

Hey Mark, Catts (Calmer Alt-Tab Task Switcher) is live!

i've tried to install your fork instead of gala-switch , aiming for the previous feature of this repo which was its capability of switching between the windows of the same application , but unfortunately gala continue using the aforementioned one .
edit:
i had to uninstall the previous one with ninja -C build uninstall first , before executing gala --replace &

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants