0

I've upgraded to elementary os 6 yesterday , and when tried to compile a [gala window switcher][1] i was prompted with this error .

>> cmake -DCMAKE_INSTALL_PREFIX=/usr ..
-- The C compiler identification is GNU 9.3.0
-- The CXX compiler identification is GNU 9.3.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Vala: /usr/bin/valac  
-- checking for a minimum Vala version of 0.22
--   found Vala, version 0.48.18
-- Found PkgConfig: /usr/bin/pkg-config (found version "0.29.1") 
-- Checking for modules 'gala;granite;libwnck-3.0'
--   Found gala, version 6.0.0
--   Found granite, version 6.1.0
--   Found libwnck-3.0, version 3.36.0
-- GSettings schemas will be installed locally.
-- GSettings shemas will be compiled.
-- GSettings schemas will be installed into /usr/share/glib-2.0/schemas/
-- Configuring done
-- Generating done
-- Build files have been written to: /home/nixnode/Documents/gala-elementary-alt-tab-switcher/build

   >> make 
        [ 12%] Generating src/Main.c, src/Widgets/RoundedActor.c, src/Widgets/RoundedText.c, src/Widgets/WindowPreviewActor.c, src/Settings.c, src/Utils.c
        /home/nixnode/Documents/gala-elementary-alt-tab-switcher/src/Main.vala:654.4-654.48: warning: `Gdk.Display.get_device_manager' has been deprecated since 3.20.
        /home/nixnode/Documents/gala-elementary-alt-tab-switcher/src/Main.vala:654.4-654.70: warning: `Gdk.DeviceManager.get_client_pointer' has been deprecated since 3.20
        /home/nixnode/Documents/gala-elementary-alt-tab-switcher/src/Main.vala:520.3-520.27: warning: method `Gala.Plugins.ElementaryAltTab.Main.close_window' never used
                private void close_window ()
                ^^^^^^^^^^^^^^^^^^^^^^^^^
        /home/nixnode/Documents/gala-elementary-alt-tab-switcher/src/Main.vala:525.8-525.13: warning: local variable `screen' declared but never used
                    var screen = current_window.get_screen ();
                        ^^^^^^
        Compilation succeeded - 4 warning(s)
        Scanning dependencies of target gala-elementary-alt-tab
        [ 25%] Building C object CMakeFiles/gala-elementary-alt-tab.dir/src/Main.c.o
        In file included from /home/nixnode/Documents/gala-elementary-alt-tab-switcher/build/src/Main.c:32:
        /usr/include/granite/granite.h:2074:1: warning: ‘GraniteTextStyle’ is deprecated [-Wdeprecated-declarations]
         2074 | gchar* granite_text_style_get_stylesheet (GraniteTextStyle self,
              | ^~~~~
        /usr/include/granite/granite.h:567:15: note: declared here
          567 | typedef enum  {
              |               ^
        /usr/include/granite/granite.h:2095:1: warning: ‘GraniteTextStyle’ is deprecated [-Wdeprecated-declarations]
         2095 | void granite_widgets_utils_apply_text_style_to_label (GraniteTextStyle text_style,
              | ^~~~
        /usr/include/granite/granite.h:567:15: note: declared here
          567 | typedef enum  {
              |               ^
        /home/nixnode/Documents/gala-elementary-alt-tab-switcher/build/src/Main.c:35:10: fatal error: meta/screen.h: No such file or directory
           35 | #include <meta/screen.h>
              |          ^~~~~~~~~~~~~~~
        compilation terminated.
        make[2]: *** [CMakeFiles/gala-elementary-alt-tab.dir/build.make:87: CMakeFiles/gala-elementary-alt-tab.dir/src/Main.c.o] Error 1
        make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/gala-elementary-alt-tab.dir/all] Error 2
        make: *** [Makefile:141: all] Error 2
    
    After doing some research all i was able to understand is that i should enable deprecated with valac .
    <br>If anyone is knowledgeable about presumably vala or have an idea about the root of the problem 
    
      [1]: https://github.com/p0pye/gala-elementary-alt-tab-switcher

>> make 
[ 12%] Building C object CMakeFiles/gala-elementary-alt-tab.dir/src/Main.c.o
In file included from /home/sinful/Documents/gala-elementary-alt-tab-switcher/build/src/Main.c:32:
/usr/include/granite/granite.h:2074:1: warning: ‘GraniteTextStyle’ is deprecated [-Wdeprecated-declarations]
 2074 | gchar* granite_text_style_get_stylesheet (GraniteTextStyle self,
      | ^~~~~
/usr/include/granite/granite.h:567:15: note: declared here
  567 | typedef enum  {
      |               ^
/usr/include/granite/granite.h:2095:1: warning: ‘GraniteTextStyle’ is deprecated [-Wdeprecated-declarations]
 2095 | void granite_widgets_utils_apply_text_style_to_label (GraniteTextStyle text_style,
      | ^~~~
/usr/include/granite/granite.h:567:15: note: declared here
  567 | typedef enum  {
      |               ^
/home/sinful/Documents/gala-elementary-alt-tab-switcher/build/src/Main.c:35:10: fatal error: meta/screen.h: No such file or directory
   35 | #include <meta/screen.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [CMakeFiles/gala-elementary-alt-tab.dir/build.make:87: CMakeFiles/gala-elementary-alt-tab.dir/src/Main.c.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:76: CMakeFiles/gala-elementary-alt-tab.dir/all] Error 2
make: *** [Makefile:141: all] Error 2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.