Meson 已明确安装,但找不到帐户服务

Meson 已明确安装,但找不到帐户服务

我正在尝试建立万神殿小学迎宾员在 Ubuntu 上,但由于找不到,它在构建阶段不断失败accountsservice但accountsservice显然已经安装好了。。我正在遵循页面上给出的构建说明。

操作系统信息:

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

Meson构建命令行:

meson build --prefix=/usr

介子输出:

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

输出/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

最奇怪的是它accountsservice已经安装到了最新版本。

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.

如果我做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

发生了什么事?明明存在却meson找不到?accountsservice

答案1

来自您的链接:

您需要以下依赖项:

...
libaccountsservice-dev
...

所以sudo apt install accountsservice需要sudo apt install libaccountsservice-dev

相关内容