git clone
https://github.com/riscv-mcu/riscv-openocd.git 源码,msys2安装了相关依赖包,下载了FTDI的驱动包CDM-v2.12.36.4-WHQL-Cer
tified,拷贝目录下Static/amd64/ftd2xx.lib库文件到mingw64/lib目录下,执行以下命令
./bootstrap
./configure --disable-werror --enable-ftd2xx
make
提示错误如下:只列了部分,都是mpsse.c函数里调用ftd2xx驱动函数接口的问题
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: src/.libs/libopenocd.a(libocdjtagdrivers_la-mpsse.o): in function `open_matching_device':C:msys64homeAdministratorbuildnuclei-riscv-openocdbuild/../src/jtag/drivers/mpsse.c:358:(.text+0xc71): undefined reference to `__imp_FT_CreateDeviceInfoList'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64homeAdministratorbuildnuclei-riscv-openocd/build/../src/jtag/drivers/mpsse.c:488:(.text+0xd7d): undefined reference to `__imp_FT_SetBitMode'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64homeAdministratorbuildnuclei-riscv-openocd/build/../src/jtag/drivers/mpsse.c:489:(.text+0xd87): undefined reference to `__imp_FT_Close'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64homeAdministratorbuildnuclei-riscv-openocd/build/../src/jtag/drivers/mpsse.c:380:(.text+0x10b8): undefined referenc to `__imp_FT_CreateDeviceInfoList'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64homeAdministratorbuildnuclei-riscv-openocd/build/../src/jtag/drivers/mpsse.c:449:(.text+0x1215): undefined reference to `__imp_FT_Open'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64homeAdministratorbuildnuclei-riscv-openocd/build/../src/jtag/drivers/mpsse.c:457:(.text+0x1227): undefined reference to `__imp_FT_ResetDevice'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64homeAdministratorbuildnuclei-riscv-openocd/build/../src/jtag/drivers/mpsse.c:460:(.text+0x123a): undefined reference to `__imp_FT_SetUSBParameters'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64homeAdministratorbuildnuclei-riscv-openocd/build/../src/jtag/drivers/mpsse.c:461:(.text+0x1256): undefined reference to `__imp_FT_SetChars'
C:/msys64/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: C:msys64homeAdministratorbuildnuclei-riscv-openocd/build/../src/jtag/drivers/mpsse.c:467:(.text+0x1269): undefined reference to `__imp_FT_SetTimeouts'
请问怎么解决这个错误呢?