hidapi库编译问题记录

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 C compiler default output file name… a.exe
checking for suffix of executables… .exe
checking whether we are cross compiling… no
checking for suffix of object files… o
checking whether we are using the GNU C compiler… yes
checking whether gcc accepts -g… yes
checking for gcc option to accept ISO C89… none needed
checking whether gcc understands -c and -o together… yes
checking dependency style of gcc… gcc3
checking for ar… ar
checking the archiver (ar) interface… ar
./configure: line 3843: LT_INIT: command not found
checking for gcc… (cached) gcc
checking whether we are using the GNU C compiler… (cached) yes
checking whether gcc accepts -g… (cached) yes
checking for gcc option to accept ISO C89… (cached) none needed
checking whether gcc understands -c and -o together… (cached) yes
checking dependency style of gcc… (cached) gcc3
checking for g++… g++
checking whether we are using the GNU C++ compiler… yes
checking whether g++ accepts -g… yes
checking dependency style of g++… gcc3
checking for gcc… gcc
checking whether we are using the GNU Objective C compiler… no
checking whether gcc accepts -g… no
checking dependency style of gcc… gcc3
checking for pkg-config… /cygdrive/c/Strawberry/perl/bin/pkg-config
checking pkg-config is at least version 0.9.0… yes
checking whether make supports nested variables… (cached) yes
checking operating system…
configure: error: HIDAPI is not supported on your operating system yet

./configure: line 3843: LT_INIT: command not found造成操作系统不支持的错误
解决办法:安装libtool autoconf automake,然后在目录上分别执行以下语句:aclocal;libtoolize --force;autoconf;autoheader;automake

你可能感兴趣的:(sofeware,note)