微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

通过 make install 检查库是否安装成功

如何解决通过 make install 检查库是否安装成功

我尝试使用 ./autogen.s - ./configure - make - make install 在 Cygwin 上安装一个库 (RNNoise)。

下面是我得到的结果:

User@LAPTOP-R9ABJF4O /cygdrive/c/Windows/System32/rnnoise
$ ./autogen.sh
Updating build configuration files for rnnoise,please wait....
libtoolize: putting auxiliary files in '.'.
libtoolize: linking file './ltmain.sh'
libtoolize: putting macros in AC_CONfig_MACRO_Dirs,'m4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
configure.ac:19: installing './compile'
configure.ac:22: installing './missing'
Makefile.am: installing './depcomp'

User@LAPTOP-R9ABJF4O /cygdrive/c/Windows/System32/rnnoise
$ ./configure
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 how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
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 the include directive... yes (GNU style)
checking whether make supports nested variables... yes
checking dependency style of gcc... gcc3
checking whether to enable maintainer-specific portions of Makefiles... yes
checking for inline... inline
checking build system type... x86_64-pc-cygwin
checking host system type... x86_64-pc-cygwin
checking how to print strings... printf
checking for a sed that does not truncate output... /usr/bin/sed
checking for fgrep... /usr/bin/grep -F
checking for ld used by gcc... /usr/x86_64-pc-cygwin/bin/ld.exe
checking if the linker (/usr/x86_64-pc-cygwin/bin/ld.exe) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 8192
checking how to convert x86_64-pc-cygwin file names to x86_64-pc-cygwin format... func_convert_file_noop
checking how to convert x86_64-pc-cygwin file names to toolchain format... func_convert_file_noop
checking for /usr/x86_64-pc-cygwin/bin/ld.exe option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for dlltool... dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /usr/bin/dd
checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1
checking for mt... no
checking if : is a manifest tool... no
checking for dlfcn.h... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/x86_64-pc-cygwin/bin/ld.exe) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether make supports nested variables... (cached) yes
checking if gcc supports -pedantic flag... yes
checking if gcc supports -Wall flag... yes
checking if gcc supports -Wextra flag... yes
checking if gcc supports -Wno-sign-compare flag... yes
checking if gcc supports -Wno-parentheses flag... yes
checking if gcc supports -Wno-long-long flag... yes
checking for gcc way to treat warnings as errors... -Werror
checking if gcc supports __attribute__(( visibility("default") ))... yes
checking if gcc supports -fvisibility=hidden... yes
checking for doxygen... no
checking for dot... no
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating rnnoise.pc
config.status: creating rnnoise-uninstalled.pc
config.status: creating doc/Doxyfile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
configure:
------------------------------------------------------------------------
  rnnoise unkNown: Automatic configuration OK.

    Assertions ................... no

    Hidden visibility ............ yes

    API code examples ............ yes
    API documentation ............ yes
------------------------------------------------------------------------


User@LAPTOP-R9ABJF4O /cygdrive/c/Windows/System32/rnnoise
$ make
make  all-am
make[1]: Entering directory '/cygdrive/c/Windows/System32/rnnoise'
make[1]: Leaving directory '/cygdrive/c/Windows/System32/rnnoise'

User@LAPTOP-R9ABJF4O /cygdrive/c/Windows/System32/rnnoise
$ make install
make[1]: Entering directory '/cygdrive/c/Windows/System32/rnnoise'
 /usr/bin/mkdir -p '/usr/local/lib'
 /bin/sh ./libtool   --mode=install /usr/bin/install -c   librnnoise.la '/usr/local/lib'
libtool: install: /usr/bin/install -c .libs/librnnoise.dll.a /usr/local/lib/librnnoise.dll.a
libtool: install: base_file=`basename librnnoise.la`
libtool: install:  dlpath=`/bin/sh 2>&1 -c '. .libs/'librnnoise.la'i; echo cygrnnoise-0.dll'`
libtool: install:  dldir=/usr/local/lib/`dirname ../bin/cygrnnoise-0.dll`
libtool: install:  test -d /usr/local/lib/../bin || mkdir -p /usr/local/lib/../bin
libtool: install:  /usr/bin/install -c .libs/cygrnnoise-0.dll /usr/local/lib/../bin/cygrnnoise-0.dll
libtool: install:  chmod a+x /usr/local/lib/../bin/cygrnnoise-0.dll
libtool: install:  if test -n '' && test -n 'strip --strip-unneeded'; then eval 'strip --strip-unneeded /usr/local/lib/../bin/cygrnnoise-0.dll' || exit 0; fi
libtool: install: /usr/bin/install -c .libs/librnnoise.lai /usr/local/lib/librnnoise.la
libtool: install: /usr/bin/install -c .libs/librnnoise.a /usr/local/lib/librnnoise.a
libtool: install: chmod 644 /usr/local/lib/librnnoise.a
libtool: install: ranlib /usr/local/lib/librnnoise.a
 /usr/bin/mkdir -p '/usr/local/share/doc/rnnoise'
 /usr/bin/install -c -m 644 copYING AUTHORS README '/usr/local/share/doc/rnnoise'
 /usr/bin/mkdir -p '/usr/local/include'
 /usr/bin/install -c -m 644 include/rnnoise.h '/usr/local/include'
 /usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 rnnoise.pc '/usr/local/lib/pkgconfig'
make[1]: Leaving directory '/cygdrive/c/Windows/System32/rnnoise'

似乎一切正常。但是,我找不到图书馆(rnnoise)。我搜索了 pip list 和 imp.find_module('rnnoise')。

库安装成功了吗?我如何知道库的名称或路径?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。