web-dev-qa-db-fra.com

Meson ne peut pas trouver les comptestservices quand il est clairement installé

J'essaie de construire le panthéon élémentaire Greeter sur Ubuntu, mais cela ne cesse d'échouer au stade de construction car il ne peut pas trouver accountsservice. mais la comptabilité est clairement installée. . Je suis à la suite des instructions de construction données sur la page.

Info OS:

Linux newbie-VirtualBox 5.3.0-40-generic #32~18.04.1-Ubuntu SMP Mon Feb 3 14:05:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

Ligne de commande Meson Build:

meson build --prefix=/usr

Sortie Meson:

newbie@newbie-VirtualBox:~/greeter$ meson build --prefix=/usr
The Meson build system
Version: 0.45.1
Source dir: /home/newbie/greeter
Build dir: /home/newbie/greeter/build
Build type: native build
Project name: io.elementary.greeter
Native C compiler: cc (gcc 7.4.0 "cc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0")
Native Vala compiler: valac (valac 0.40.17)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Native dependency glib-2.0 found: YES 2.56.4

src/meson.build:1:0: ERROR: Native dependency 'accountsservice' not found

A full log can be found at /home/newbie/greeter/build/meson-logs/meson-log.txt

Sortie de /home/newbie/greeter/build/meson-logs/meson-log.txt

Code:
 class MesonSanityCheck : Object { }
Compiler stdout:
 Compilation succeeded - 1 warning(s)

Compiler stderr:
 warning: --output and -o have no effect when -C or --ccode is set

Native Vala compiler: valac (valac 0.40.17)
Build machine cpu family: x86_64
Build machine cpu: x86_64
Found pkg-config: /usr/bin/pkg-config (0.29.1)
Determining dependency 'glib-2.0' with pkg-config executable '/usr/bin/pkg-config'
Native dependency glib-2.0 found: YES 2.56.4
Determining dependency 'accountsservice' with pkg-config executable '/usr/bin/pkg-config'

src/meson.build:1:0: ERROR: Native dependency 'accountsservice' not found

La partie la plus étrange est que accountsservice est déjà installé à sa dernière version.

newbie@newbie-VirtualBox:~/greeter$ Sudo apt install accountsservice 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
accountsservice is already the newest version (0.6.45-1ubuntu1).
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded.

Aussi si je fais un locate accountsservice

/usr/lib/accountsservice
/usr/lib/accountsservice/accounts-daemon
/usr/lib/x86_64-linux-gnu/libaccountsservice.so.0
/usr/lib/x86_64-linux-gnu/libaccountsservice.so.0.0.0
/usr/share/doc/accountsservice
/usr/share/doc/gir1.2-accountsservice-1.0
/usr/share/doc/libaccountsservice0
/usr/share/doc/accountsservice/README
/usr/share/doc/accountsservice/TODO
/usr/share/doc/accountsservice/changelog.Debian.gz
/usr/share/doc/accountsservice/copyright
/usr/share/doc/gir1.2-accountsservice-1.0/changelog.Debian.gz
/usr/share/doc/gir1.2-accountsservice-1.0/copyright
/usr/share/doc/libaccountsservice0/changelog.Debian.gz
/usr/share/doc/libaccountsservice0/copyright
/var/lib/dpkg/info/accountsservice.conffiles
/var/lib/dpkg/info/accountsservice.list
/var/lib/dpkg/info/accountsservice.md5sums
/var/lib/dpkg/info/accountsservice.postinst
/var/lib/dpkg/info/accountsservice.postrm
/var/lib/dpkg/info/accountsservice.prerm
/var/lib/dpkg/info/gir1.2-accountsservice-1.0.list
/var/lib/dpkg/info/gir1.2-accountsservice-1.0.md5sums
/var/lib/dpkg/info/libaccountsservice0:AMD64.list
/var/lib/dpkg/info/libaccountsservice0:AMD64.md5sums
/var/lib/dpkg/info/libaccountsservice0:AMD64.shlibs
/var/lib/dpkg/info/libaccountsservice0:AMD64.symbols
/var/lib/dpkg/info/libaccountsservice0:AMD64.triggers

Qu'est-ce qui se passe? Pourquoi ne peut pas meson trouver accountsservice quand il est clairement présent?

3
ng.newbie

De votre lien:

Vous aurez besoin des dépendances suivantes:

...
libaccountsservice-dev
...

Alors Sudo apt install accountsservice doit être Sudo apt install libaccountsservice-dev.

3
Rinzwind