This repository was archived by the owner on Jun 10, 2025. It is now read-only.
Description It won't build without the CH347 library.
./bootstrap
./configure --enable-wlinke --enable-ch347 --program-prefix=/opt/openocdhacks/ --disable-werror
make
Error:
...
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I./src -I./src -DPKGDATADIR=\"/usr/local/share/openocd\" -DBINDIR=\"/usr/local/bin\" -DFD_SETSIZE=128 -I./jimtcl -I./jimtcl -isystem /usr/include/libusb-1.0 -I/usr/include/libftdi1 -I/usr/include/libusb-1.0 -I/usr/include/hidapi -I/usr/include/libusb-1.0 -I./src/jtag/drivers/libjaylink/libjaylink -I./src/jtag/drivers/libjaylink -Wall -Wstrict-prototypes -Wformat-security -Wshadow -Wextra -Wno-unused-parameter -Wbad-function-cast -Wcast-align -Wredundant-decls -Wpointer-arith -Wundef -Wno-error=deprecated-declarations -DFD_SETSIZE=128 -g -O2 -MT src/jtag/drivers/libocdjtagdrivers_la-ch347.lo -MD -MP -MF src/jtag/drivers/.deps/libocdjtagdrivers_la-ch347.Tpo -c src/jtag/drivers/ch347.c -o src/jtag/drivers/libocdjtagdrivers_la-ch347.o
src/jtag/drivers/ch347.c:118:10: fatal error: CH347LIB.h: No such file or directory
118 | #include <CH347LIB.h>
A possible workaround is to explicitly disable the ch347 support.
./configure --enable-wlinke --disable-ch347 --program-prefix=/opt/openocdhacks/ --disable-werror
Reactions are currently unavailable
It won't build without the CH347 library.
Error:
A possible workaround is to explicitly disable the ch347 support.