hidapi库编译问题记录

本文记录了在编译hidapi-master包时遇到的问题及解决方案。首先,运行./bootstrap时因缺少aclocal导致错误,通过安装automake解决。接着,在./configure阶段出现LT_INIT命令未找到的问题,这导致了‘HIDAPI is not supported on your operating system yet’的错误。解决方法是安装libtool, autoconf, automake,并在目录下执行aclocal, libtoolize, autoconf, autoheader和automake等命令。" 109789569,10234984,C语言三数排序:普通方法与不交换变量进阶技巧,"['算法', 'c语言']
摘要由CSDN通过智能技术生成

1、下载hidapi-master包后,运行./bootstrap,出现以下问题
autoreconf: Entering directory `.’
autoreconf: configure.in: not using Gettext
autoreconf: running: aclocal --output=aclocal.m4t
Can’t exec “aclocal”: No such file or directory at /usr/local/share/autoconf/Autom4te
解决办法:安装下载automake后,再执行即可。
a、apt-cyg install automake,此步要保证apt-cyg安装程序可用
b、在cygwin setup中安装

2、yt@DESKTOP-5JK89QM /cygdrive/c/hidapi-master
$ ./configure
checking for a BSD-compatible install… /usr/bin/install -c
checking whether build environment is sane… yes
checking for a thread-safe mkdir -p… /usr/bin/mkdir -p
checking for gawk… gawk
checking whether make sets $(MAKE)… yes
checking whether make supports nested variables… yes
checking whether make supports the include directive… yes (GNU style)
checking for gcc… gcc
checking whether the C compiler works… yes
checking for

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值