安装 WFDB 软件包时出错:make[1]: 离开目录 '/home/Administrator/wfdb-10.7.0/lib' make: *** [Makefile:307: install] 错误 2

问题描述 投票:0回答:2

我需要使用WFDB内的一些应用程序(如rdsamp)来读取WFDB数据库内的信号文件(.dat文件记录)。 我按照 https://archive.physionet.org/physiotools/wfdb-windows-quick-start.shtml 中的步骤操作 文档说我们需要安装 cygwin 来支持 WFDB 包安装。 我的系统是 64 位 Windows 机器,我从 http://cygwin.com/setup-x86_64.exe .

安装了 cygwin

安装 cygwin 时选择以下软件包。 来自开发类别:gcc-core、gcc-fortran、make 来自 Libs 类别:libcurl-devel、libexpat-devel 来自网络类别:curl

后来从 cygwin 终端下载并提取了 wfdb 数据库:-

curl https://physionet.org/physiotools/wfdb.tar.gz | tar xvz
cd wfdb-10.m.n


然后从 cygwin 终端中的 wfdb-10.m.n 目录,执行以下步骤:-

./configure

not printing whole output here.. snippet:-
Summary:

wfdb-10.7.0-cygwin is now ready to be compiled using 'gcc'.
The WFDB library will be compiled as a dynamic library with NETFILES
 access via libcurl, and it will be installed in '/usr/local/bin'.
The WFDB library .h files will be installed in '/usr/local/include/wfdb'.
The WFDB applications will be linked to dynamic system libraries, and
 they will be installed in '/usr/local/bin'.
$ make install
cd lib;      make clean; make install
make[1]: Entering directory '/home/Administrator/wfdb-10.7.0/lib'
rm -f wfdbinit.o annot.o signal.o calib.o wfdbio.o libwfdb.* *.dll *~
make[1]: Leaving directory '/home/Administrator/wfdb-10.7.0/lib'
make[1]: Entering directory '/home/Administrator/wfdb-10.7.0/lib'
make clean          # force recompilation since config may have changed
make[2]: Entering directory '/home/Administrator/wfdb-10.7.0/lib'
rm -f wfdbinit.o annot.o signal.o calib.o wfdbio.o libwfdb.* *.dll *~
make[2]: Leaving directory '/home/Administrator/wfdb-10.7.0/lib'
make all
make[2]: Entering directory '/home/Administrator/wfdb-10.7.0/lib'
make setup
make[3]: Entering directory '/home/Administrator/wfdb-10.7.0/lib'
sed "s+DBDIR+/usr/local/database+" <wfdblib.h0 >wfdblib.h
make[3]: Leaving directory '/home/Administrator/wfdb-10.7.0/lib'
make wfdbinit.o annot.o signal.o calib.o wfdbio.o
make[3]: Entering directory '/home/Administrator/wfdb-10.7.0/lib'
gcc -Wno-implicit -Wformat  -g -O -DWFDB_MAJOR=10 -DWFDB_MINOR=7 -DWFDB_RELEASE=0 -DWFDB_LARGETIME -DNOVALUES_H `curl-config --cflags`  -I/usr/local/include   -c -o wfdbinit.o wfdbinit.c
make[3]: *** [<builtin>: wfdbinit.o] Error 1
make[3]: Leaving directory '/home/Administrator/wfdb-10.7.0/lib'
make[2]: *** [Makefile:240: all] Error 2
make[2]: Leaving directory '/home/Administrator/wfdb-10.7.0/lib'
make[1]: *** [Makefile:246: install] Error 2
make[1]: Leaving directory '/home/Administrator/wfdb-10.7.0/lib'
make: *** [Makefile:307: install] Error 2

我可以知道这里出了什么问题吗?

python cmake makefile cygwin gnu-make
2个回答
0
投票

Makefile 有一些非常奇怪的动作

  1. 安装过程中的清理是一个非常奇怪的动作。从各种 Makefile 中删除它

  2. 用标准条替换 exestrip - 否则将尝试剥离

    *.exe.exe

  3. 它正在

    /bin/cygwin1.dll
     上安装 
    /usr/local
    的副本 删除它,也
    cygz.dll

    这就是您看到的错误的原因


0
投票

我也遇到同样的问题。 你解决了吗?

© www.soinside.com 2019 - 2024. All rights reserved.