RedHatter / diodon-plugins

A set of plugins for the gnome clipboard manager Diodon.
19 stars 10 forks source link

Build fails, missing Vala API packages (Ubuntu 22.04.2) #23

Open w-sky opened 1 year ago

w-sky commented 1 year ago

Hello, I recently tried again to compile the plugins for me but did not succeed. Configuration was ok I guess, but when trying to compile it seems that it is missing many packages from Vala API directories.

$ ./waf configure --libdir /usr/lib/x86_64-linux-gnu/
Setting top to                           : /home/w-sky/diodon-plugins 
Setting out to                           : /home/w-sky/diodon-plugins/_build_ 
Checking for 'c_bgxlc' (c compiler)      : not found 
Checking for 'gcc' (c compiler)          : /usr/bin/gcc 
Checking for program python              : /usr/bin/python 
Checking for program glib-genmarshal     : /usr/bin/glib-genmarshal 
Checking for program perl                : /usr/bin/perl 
Checking for 'glib-mkenums'              : /usr/bin/glib-mkenums 
Checking for program glib-compile-schemas : /usr/bin/glib-compile-schemas 
Checking for program valac-0.16           : not found 
Checking for program valac                : /usr/bin/valac 
Checking for valac version >= (0, 16, 0)  : (0, 56, 0) 
Checking for program pkg-config           : /usr/bin/pkg-config 
Checking for 'diodon' >= 1.6.0            : yes 
Checking for 'libpeas-1.0' >= 1.1.0       : yes 
Checking for 'libpeas-gtk-1.0' >= 1.1.0   : yes 
'configure' finished successfully (0.117s)
$ ./waf build
Waf: Entering directory `/home/w-sky/diodon-plugins/_build_'
[ 1/23] valac: plugins/paste-all/paste-all.vala -> _build_/plugins/paste-all/paste-all.h _build_/plugins/paste-all/paste-all.vapi _build_/plugins/paste-all/paste-all.deps _build_/plugins/paste-all/paste-all.c
[ 2/23] glib_validate_schema: plugins/paste-all/net.launchpad.Diodon.PasteAll.gschema.xml -> _build_/plugins/paste-all/net.launchpad.Diodon.PasteAll.gschema.xml.valid
[ 3/23] valac: plugins/edit/edit.vala -> _build_/plugins/edit/edit.h _build_/plugins/edit/edit.vapi _build_/plugins/edit/edit.deps _build_/plugins/edit/edit.c
[ 4/23] valac: plugins/features/clipboard-menu-item.vala plugins/features/features.vala plugins/features/filter.vala plugins/features/pinned-items.vala -> _build_/plugins/features/features.h _build_/plugins/features/features.vapi _build_/plugins/features/features.deps _build_/plugins/features/clipboard-menu-item.c _build_/plugins/features/features.c _build_/plugins/features/filter.c _build_/plugins/features/pinned-items.c
[ 5/23] glib_validate_schema: plugins/features/net.launchpad.Diodon.Features.gschema.xml -> _build_/plugins/features/net.launchpad.Diodon.Features.gschema.xml.valid
[ 6/23] valac: plugins/numbers/numbers.vala -> _build_/plugins/numbers/numbers.h _build_/plugins/numbers/numbers.vapi _build_/plugins/numbers/numbers.deps _build_/plugins/numbers/numbers.c
error: Package `glib-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `glib-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gobject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gobject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Loaded package `/usr/share/vala/vapi/diodon.vapi'
error: Package Loaded package `/usr/share/vala/vapi/diodon.vapi'
`gtk+-3.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Loaded package `/home/w-sky/diodon-plugins/vapi/libpeas-1.0.vapi'
Loaded package `/home/w-sky/diodon-plugins/vapi/libpeas-gtk-1.0.vapi'
error: Package `gtk+-3.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Loaded package `/home/w-sky/diodon-plugins/vapi/libpeas-1.0.vapi'
Loaded package `/home/w-sky/diodon-plugins/vapi/libpeas-gtk-1.0.vapi'
error: Package `glib-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gobject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Loaded package `/usr/share/vala/vapi/diodon.vapi'
error: Package `gtk+-3.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Loaded package `/home/w-sky/diodon-plugins/vapi/libpeas-1.0.vapi'
Loaded package `/home/w-sky/diodon-plugins/vapi/libpeas-gtk-1.0.vapi'
error: Package `glib-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
error: Package `gobject-2.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Loaded package `/usr/share/vala/vapi/diodon.vapi'
error: Package `gtk+-3.0' not found in specified Vala API directories or GObject-Introspection GIR directories
Loaded package `/home/w-sky/diodon-plugins/vapi/libpeas-1.0.vapi'
Loaded package `/home/w-sky/diodon-plugins/vapi/libpeas-gtk-1.0.vapi'
Waf: Leaving directory `/home/w-sky/diodon-plugins/_build_'
Build failed
 -> task in 'edit' failed (exit status 1): 
    {task 140030396860304: valac edit.vala -> edit.h,edit.vapi,edit.deps,edit.c}
''
 -> task in 'paste-all' failed (exit status 1): 
    {task 140030397267088: valac paste-all.vala -> paste-all.h,paste-all.vapi,paste-all.deps,paste-all.c}
''
 -> task in 'features' failed (exit status 1): 
    {task 140030396860688: valac clipboard-menu-item.vala,features.vala,filter.vala,pinned-items.vala -> features.h,features.vapi,features.deps,clipboard-menu-item.c,features.c,filter.c,pinned-items.c}
''
 -> task in 'numbers' failed (exit status 1): 
    {task 140030396862288: valac numbers.vala -> numbers.h,numbers.vapi,numbers.deps,numbers.c}
''
Wittedintegral2 commented 8 months ago

installing "valac-0.56-vapi" from software manager fixed this for me