libusb - 配置错误(未安装libudev)

时间:2015-02-04 01:52:15

标签: linux cygwin libusb udev libusb-1.0

我正在尝试使用libusb v1.0.19中的 arm-verifone-linux-gnueabi-gcc 编译器交叉编译Cygwin库,但是在结束时配置调用它会显示此错误:

  

请求udev支持但未安装libudev。

这是我的配置调用:

./configure CC=arm-verifone-linux-gnueabi-gcc --host=arm-linux


checking operating system... Linux
checking for library containing clock_gettime... -lrt
checking libudev.h usability... no
checking libudev.h presence... no
checking for libudev.h... no
configure: error: "udev support requested but libudev not installed"
configure: WARNING: cache variable lt_cv_path_LD contains a newline

错误清楚地表明libudev在我的设置中不可用,所以我尝试谷歌搜索libudev源码,所以我也可以交叉编译它,但不幸的是我找不到源代码。我在哪里可以找到libudev源或如何解决此错误?


更新: 通过运行此配置行,我能够摆脱“udev”错误:

./configure CC=arm-verifone-linux-gnueabi-gcc --host=arm-linux --disable-udev

但是在运行“make”之后,它会显示:

checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating libusb-1.0.pc
config.status: creating Makefile
config.status: creating libusb/Makefile
config.status: creating examples/Makefile
config.status: creating tests/Makefile
config.status: creating doc/Makefile
config.status: creating doc/doxygen.cfg
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure: WARNING: cache variable lt_cv_path_LD contains a newline

user@g480 /usr/src/libusb-1.0.19
$ make
Makefile:264: *** missing separator.  Stop.

我该如何解决这个问题?

1 个答案:

答案 0 :(得分:-1)

./configure --host=arm-verifone-linux-gnueabi