RISC-V MCU中文社区

【求助】 使用msys2 mingw64编译nuclei openocd源码出错

发表于 NucleiStudio讨论专区 2024-04-30 14:41:51
0
1099
0

git clone https://github.com/riscv-mcu/riscv-openocd.git 源码,msys2安装了相关依赖包,下载了FTDI的驱动包CDM-v2.12.36.4-WHQL-Certified,拷贝目录下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:\msys64\home\Administrator\build\nuclei-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:\msys64\home\Administrator\build\nuclei-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:\msys64\home\Administrator\build\nuclei-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:\msys64\home\Administrator\build\nuclei-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:\msys64\home\Administrator\build\nuclei-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:\msys64\home\Administrator\build\nuclei-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:\msys64\home\Administrator\build\nuclei-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:\msys64\home\Administrator\build\nuclei-riscv-openocd/build/../src/jtag/drivers/mpsse.c:467:(.text+0x1269): undefined reference to `__imp_FT_SetTimeouts'

 请问怎么解决这个错误呢?

    

喜欢0
用户评论
yuxin

yuxin 实名认证

懒的都不写签名

积分
问答
粉丝
关注
  • RV-STAR 开发板
  • RISC-V处理器设计系列课程
  • 培养RISC-V大学土壤 共建RISC-V教育生态
RV-STAR 开发板