交叉编译glib时找不到libmount

交叉编译glib时找不到libmount

我正在尝试为 gstreamer 交叉编译 glib,但在 Ubuntu 16.04 终端中遇到以下错误:

checking for LIBMOUNT... no
checking libmount/libmount.h usability... no
checking libmount/libmount.h presence... no
checking for libmount/libmount.h... no
configure: error: *** Could not find libmount

非常感谢社区的任何建议。

答案1

--enable-libmount=no我更愿意将其添加为注释,但除非您确实需要 libmount 来执行某些操作,否则通过传递给configure 来禁用它会更容易。

答案2

您需要带有标头的库...以 -dev 结尾的包名称包含标头

apt-get install libmount-dev

这将为您提供缺少的标头...以验证问题

dpkg -L libmount-dev

#  ... output

/.
/usr
/usr/include
/usr/include/libmount
/usr/include/libmount/libmount.h
/usr/lib
/usr/lib/x86_64-linux-gnu
/usr/lib/x86_64-linux-gnu/libmount.a
/usr/lib/x86_64-linux-gnu/pkgconfig
/usr/lib/x86_64-linux-gnu/pkgconfig/mount.pc
/usr/share
/usr/share/doc
/usr/share/doc/libmount-dev
/usr/share/doc/libmount-dev/copyright
/usr/lib/x86_64-linux-gnu/libmount.so
/usr/share/doc/libmount-dev/changelog.Debian.gz

答案3

您需要交叉编译libmount并使其可供交叉编译器使用(大概cross-pkg-config)。

相关内容