1.下载源码后解压.tar -xzvf udev-167.tar.gz (本博客资源有下载)
2.cd udev-16
3.make clean
4.配置:./configure --host=arm-ca9-linux-gnueabihf --prefix=$(pwd)/__install(注意设置此prefix后,会导致uderv启动后不检测机器内部的/etc/udev/init.d/rules目录,要重新将改为prefix=/ 重新编译)
5.make ;报错如下:
checking for gawk... (cached) gawk
checking for arm-ca9-linux-gnueabihf-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for gtkdoc-check... no
checking for gtkdoc-rebase... no
checking for gtkdoc-mkpdf... no
checking whether to build gtk-doc documentation... no
checking for xsltproc... /usr/bin/xsltproc
checking for library containing clock_gettime... none required
checking for gperf... /usr/bin/gperf
checking for GLIB... yes
checking for acl_init in -lacl... no
configure: error: libacl not found
说明:参考