sysboard icon indicating copy to clipboard operation
sysboard copied to clipboard

compile error: get_children not declared

Open throwaway-nolsh opened this issue 10 months ago • 5 comments

hi, i would like to try out your osk, because it seems really simple and nice to use

i cant do that though, because when i try to compile sysboard i get these errors:

[2/15] Compiling src/main.o
[3/15] Compiling src/config_parser.o
[4/15] Linking sysboard
[5/15] Creating src/input-method-unstable-v2.h
[6/15] Creating src/virtual-keyboard-unstable-v1.h
[7/15] Creating src/input-method-unstable-v2.c
[8/15] Compiling src/input-method-unstable-v2.o
[9/15] Creating src/virtual-keyboard-unstable-v1.c
[10/15] Compiling src/virtual-keyboard-unstable-v1.o
[11/15] Compiling src/css.o
[12/15] Compiling src/key.o
[13/15] Compiling src/layout.o
src/layout.cpp: In member function 'void layout::handle_keycode(key*, const bool&)':
src/layout.cpp:129:34: error: 'get_children' was not declared in this scope; did you mean g_type_children'?
  129 |                 for (auto& row : get_children()) {
      |                                  ^~~~~~~~~~~~
      |                                  g_type_children
src/layout.cpp:175:33: error: 'get_children' was not declared in this scope; did you mean g_type_children'?
  175 |                 auto children = get_children();
      |                                 ^~~~~~~~~~~~
      |                                 g_type_children
make: *** [Makefile:64: src/layout.o] Error 1

im not super versed when it comes to compile errors and before i try messing around in the code, i wanted to ask

if it matters, im on void linux and compiled gtk4-layer-shell myself with meson setup -Dintrospection=true -Ddocs=false -Dvapi=false --prefix=/usr build

thank you :)

throwaway-nolsh avatar Feb 06 '25 14:02 throwaway-nolsh

just adding onto this, i got it to compile by commenting out the 2 code blocks containing anything related to get_children, which means i now dont have shifted symbols but oh well, it does work

i also had to manually copy libsysboard.so into /usr/lib/, else it couldnt find the library

throwaway-nolsh avatar Feb 06 '25 14:02 throwaway-nolsh

@throwaway-squared You need the latest version of gtkmm 4.0 As for installation you should run sudo make install or temporarily run the program with LD_LIBRARY_PATH=/path/to/libsysboard sysboard

System64fumo avatar Feb 06 '25 17:02 System64fumo

hi, i just tried compiling again for fun, i still get the same error ive got gtkmm4-devel version 4.12.0_1 installed.

so the error probably shouldnt arise from a dependancy problem

throwaway-nolsh avatar Apr 07 '25 21:04 throwaway-nolsh

Latest is 4.18.0-2 though, The error is most definitely a dependency problem.

System64fumo avatar Apr 07 '25 22:04 System64fumo

oh i see, my bad

ill try with that version then

throwaway-nolsh avatar Apr 08 '25 05:04 throwaway-nolsh

@throwaway-nolsh Any updates? I would like to close this issue..

System64fumo avatar Aug 31 '25 03:08 System64fumo

hi, im sorry man i forgot about doing that and im currently away from my linux devices

ill write this down so i dont forget and ill comment next saturday

sorry for making you wait

throwaway-nolsh avatar Aug 31 '25 07:08 throwaway-nolsh

okay, it compiles without issue now and gtk4-layer-shell is now available from repositories so its even easier

closing this now, thanks for your patience :)

although there does seem to be another problem now so ill open an issue for that

throwaway-nolsh avatar Sep 05 '25 16:09 throwaway-nolsh