elementary / greeter

Login and Lock Screen greeter for elementary OS and Pantheon, using LightDM
GNU General Public License v3.0
150 stars 39 forks source link

Debian unable to build #601

Closed BigfootN closed 2 years ago

BigfootN commented 2 years ago

Hello,

I am trying to build on Debian (sid) and I am getting the following error:

[1/20] Compiling Vala source ../src/Application.vala ../src/FPrintUtils.vala ../src/MainWindow.vala ../src/PantheonAccountsServicePlugin.va...ts/CapsLockRevealer.vala ../src/Widgets/DateTimeWidget.vala ../src/Widgets/PasswordEntry.vala ../src/Widgets/SessionButton.vala config.vala
FAILED: src/io.elementary.greeter.p/Application.c src/io.elementary.greeter.p/FPrintUtils.c src/io.elementary.greeter.p/MainWindow.c src/io.elementary.greeter.p/PantheonAccountsServicePlugin.c src/io.elementary.greeter.p/PromptText.c src/io.elementary.greeter.p/SettingsDaemon.c src/io.elementary.greeter.p/Settings.c src/io.elementary.greeter.p/SubprocessSupervisor.c src/io.elementary.greeter.p/Cards/BaseCard.c src/io.elementary.greeter.p/Cards/ManualCard.c src/io.elementary.greeter.p/Cards/UserCard.c src/io.elementary.greeter.p/Widgets/BackgroundImage.c src/io.elementary.greeter.p/Widgets/CapsLockRevealer.c src/io.elementary.greeter.p/Widgets/DateTimeWidget.c src/io.elementary.greeter.p/Widgets/PasswordEntry.c src/io.elementary.greeter.p/Widgets/SessionButton.c src/io.elementary.greeter.p/config.c 
valac -C --debug --debug --vapidir '/home/bigfoot/Téléchargements/greeter-6.0.2/vapi' --pkg liblightdm-gobject-1 --pkg libhandy-1 --pkg granite --pkg gtk+-3.0 --pkg glib-2.0 --pkg gobject-2.0 --pkg accountsservice --color=always --directory src/io.elementary.greeter.p --basedir ../src --gresources=../data/greeter.gresource.xml ../src/Application.vala ../src/FPrintUtils.vala ../src/MainWindow.vala ../src/PantheonAccountsServicePlugin.vala ../src/PromptText.vala ../src/SettingsDaemon.vala ../src/Settings.vala ../src/SubprocessSupervisor.vala ../src/Cards/BaseCard.vala ../src/Cards/ManualCard.vala ../src/Cards/UserCard.vala ../src/Widgets/BackgroundImage.vala ../src/Widgets/CapsLockRevealer.vala ../src/Widgets/DateTimeWidget.vala ../src/Widgets/PasswordEntry.vala ../src/Widgets/SessionButton.vala config.vala
error: Package `liblightdm-gobject-1' not found in specified Vala API directories or GObject-Introspection GIR directories
Compilation failed: 1 error(s), 0 warning(s)
[2/20] Linking target compositor/io.elementary.greeter-compositor
ninja: build stopped: subcommand failed.

Just so you know I installed the liblightdm-gobject-1-0 dependency.

Thank you very much in advance for any help.

davidmhewitt commented 2 years ago

Install this: https://packages.debian.org/sid/liblightdm-gobject-dev

BigfootN commented 2 years ago

Thank you for your quick response.

Unfortunately it was already installed, so it didn't really help me. I even tried to completely remove the build directory.

Just so you know this is what I get from the meson build:

The Meson build system
Version: 0.61.2
Source dir: /home/bigfoot/Downloads/greeter-6.0.2
Build dir: /home/bigfoot/Downloads/greeter-6.0.2/build
Build type: native build
Project name: io.elementary.greeter
Project version: 6.0.2
C compiler for the host machine: cc (gcc 11.2.0 "cc (Debian 11.2.0-18) 11.2.0")
C linker for the host machine: cc ld.bfd 2.38
Vala compiler for the host machine: valac (valac 0.55.90)
Host machine cpu family: x86_64
Host machine cpu: x86_64
Message: Path to gnome-settings-daemon: /usr/libexec/
Configuring config.vala using configuration
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Program glib-compile-resources found: YES (/usr/bin/glib-compile-resources)
Found pkg-config: /usr/bin/pkg-config (0.29.2)
Run-time dependency accountsservice found: YES 22.07.5
Run-time dependency gobject-2.0 found: YES 2.70.4
Run-time dependency glib-2.0 found: YES 2.70.4
Run-time dependency gtk+-3.0 found: YES 3.24.31
Run-time dependency granite found: YES 6.2.0
Run-time dependency libhandy-1 found: YES 1.5.90
Run-time dependency liblightdm-gobject-1 found: YES 1.26.0
Run-time dependency gio-2.0 found: YES 2.70.4
Run-time dependency gio-unix-2.0 found: YES 2.70.4
Run-time dependency gmodule-2.0 found: YES 2.70.4
Dependency gtk+-3.0 found: YES 3.24.31 (cached)
Run-time dependency gdk-x11-3.0 found: YES 3.24.31
Run-time dependency gee-0.8 found: YES 0.20.5
Library m found: YES
Library posix found: YES
Did not find CMake 'cmake'
Found CMake: NO
Run-time dependency libmutter-6 found: NO (tried pkgconfig and cmake)
Run-time dependency libmutter-7 found: NO (tried pkgconfig and cmake)
Run-time dependency libmutter-8 found: NO (tried pkgconfig and cmake)
Run-time dependency libmutter-9 found: YES 41.4
Dependency libmutter-9 found: YES 41.4 (cached)
Run-time dependency mutter-cogl-9 found: YES 41.4
Run-time dependency mutter-cogl-pango-9 found: YES 41.4
Run-time dependency mutter-clutter-9 found: YES 41.4
Run-time dependency libmutter-10 found: NO (tried pkgconfig and cmake)
Configuring io.elementary.greeter.desktop.in using configuration
WARNING: Gettext not found, all translation targets will be ignored.
Program desktop-file-validate found: YES (/usr/bin/desktop-file-validate)
Program vapigen found: YES (/usr/bin/vapigen)
Build targets in project: 10
NOTICE: Future-deprecated features used:
 * 0.56.0: {'meson.source_root', 'Dependency.get_pkgconfig_variable'}

io.elementary.greeter 6.0.2

  User defined options
    prefix: /usr

Found ninja-1.10.1 at /usr/bin/ninja
davidmhewitt commented 2 years ago

Then it is this: https://packages.debian.org/sid/lightdm-vala

I don't know why that has been put in package that doesn't have gobject in the title, as that is the name of the library. But it seems to contain the files you need.

BigfootN commented 2 years ago

Thank you very much it works.

Just as a last question, does it mean that lightdm-gobject-* isn't necessary ?

davidmhewitt commented 2 years ago

Those are both necessary too.

The -dev one and the vala one is only needed to build the greeter, the non-dev one is needed to run the greeter.