-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiling error on Ubuntu 20.04 #3
Comments
Hi, can you try compiling the latest version? |
@fuger222 Thx for the update , I could comiple the driver now. But when trying to initialize the driver, the following error shows up : main.c:87:main | errno: 11 | Platform cable not found or already initialized I have checked the usb cable was recognized by the OS: [ 346.502040] usb 1-1.1: new high-speed USB device number 5 using xhci_hcd What might cause this problem ? |
lsusb shows the following info: pc@pc:~/Download/libxpc$ sudo lsusb |
@doonny This is meant to be a warning, not an actual error message. Cables with an FTDI chip are completely "plug and play", they don't require any kind of initialization, so you can safely ignore the first one. |
As for why |
Thx for the reply, other functions does not work either. |
Hi, I am trying to build this tool on Ubuntu 20.04, I have install libftdi1-dev libusb-1.0-0-dev, and when compiling, the following error shows up:
gcc -oxpc obj/main.o libxpc.a -lusb-1.0 -lftdi1 -fsanitize=address
obj/main.o: In function
_Init': /home/fpga/Downloads/libxpc/main.c:15: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/main.c:15: undefined reference to
strerrorname_np' obj/main.o: In function
main':/home/fpga/Downloads/libxpc/main.c:22: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/main.c:22: undefined reference to
strerrorname_np'/home/fpga/Downloads/libxpc/main.c:48: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/main.c:48: undefined reference to
strerrorname_np'/home/fpga/Downloads/libxpc/main.c:52: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/main.c:52: undefined reference to
strerrorname_np'/home/fpga/Downloads/libxpc/main.c:87: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/main.c:87: undefined reference to
strerrorname_np'libxpc.a(driver.o): In function
XPC_Disable': /home/fpga/Downloads/libxpc/driver.c:17: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:17: undefined reference to
strerrorname_np' libxpc.a(driver.o): In function
XPC_Enable':/home/fpga/Downloads/libxpc/driver.c:21: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:21: undefined reference to
strerrorname_np'libxpc.a(driver.o): In function
XPC_SetClock': /home/fpga/Downloads/libxpc/driver.c:27: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:27: undefined reference to
strerrorname_np' libxpc.a(driver.o): In function
XPC_ReadCPLDVersion':/home/fpga/Downloads/libxpc/driver.c:37: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:37: undefined reference to
strerrorname_np'libxpc.a(driver.o): In function
XPC_ReadFirmwareVersion': /home/fpga/Downloads/libxpc/driver.c:41: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:41: undefined reference to
strerrorname_np' libxpc.a(driver.o): In function
XPC_JTAGTransfer':/home/fpga/Downloads/libxpc/driver.c:45: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:45: undefined reference to
strerrorname_np'/home/fpga/Downloads/libxpc/driver.c:52: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:52: undefined reference to
strerrorname_np'/home/fpga/Downloads/libxpc/driver.c:60: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:60: undefined reference to
strerrorname_np'libxpc.a(driver.o): In function
XPC_Connect': /home/fpga/Downloads/libxpc/driver.c:91: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:91: undefined reference to
strerrorname_np' libxpc.a(driver.o): In function
XPC_Initialize':/home/fpga/Downloads/libxpc/driver.c:102: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:102: undefined reference to
strerrorname_np'/home/fpga/Downloads/libxpc/driver.c:106: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:106: undefined reference to
strerrorname_np'libxpc.a(driver.o): In function
XPC_InitializeFTDI': /home/fpga/Downloads/libxpc/driver.c:123: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:123: undefined reference to
strerrorname_np' libxpc.a(driver.o): In function
JTAG_Flush':/home/fpga/Downloads/libxpc/driver.c:192: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:192: undefined reference to
strerrorname_np'/home/fpga/Downloads/libxpc/driver.c:195: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:195: undefined reference to
strerrorname_np'libxpc.a(driver.o): In function
JTAG_Enqueue': /home/fpga/Downloads/libxpc/driver.c:228: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:228: undefined reference to
strerrorname_np' /home/fpga/Downloads/libxpc/driver.c:234: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:234: undefined reference to
strerrorname_np' libxpc.a(driver.o): In function
JTAG_WriteInstructionRegisterBits':/home/fpga/Downloads/libxpc/driver.c:270: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:270: undefined reference to
strerrorname_np'libxpc.a(driver.o): In function
JTAG_ReadWriteDataRegisterBitsFTDI': /home/fpga/Downloads/libxpc/driver.c:294: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:294: undefined reference to
strerrorname_np' /home/fpga/Downloads/libxpc/driver.c:300: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:300: undefined reference to
strerrorname_np' /home/fpga/Downloads/libxpc/driver.c:302: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/driver.c:302: undefined reference to
strerrorname_np' libxpc.a(driver.o): In function
JTAG_ReadWriteDataRegisterFTDI':/home/fpga/Downloads/libxpc/driver.c:309: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:309: undefined reference to
strerrorname_np'/home/fpga/Downloads/libxpc/driver.c:312: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:312: undefined reference to
strerrorname_np'/home/fpga/Downloads/libxpc/driver.c:324: undefined reference to
strerrordesc_np' /home/fpga/Downloads/libxpc/driver.c:324: undefined reference to
strerrorname_np'libxpc.a(dlc9lp.o): In function
XPC_CypressFX2WriteRAM': /home/fpga/Downloads/libxpc/dlc9lp.c:7: undefined reference to
strerrordesc_np'/home/fpga/Downloads/libxpc/dlc9lp.c:7: undefined reference to `strerrorname_np'
collect2: error: ld returned 1 exit status
Makefile:6: recipe for target 'xpc' failed
make: *** [xpc] Error 1
Can you help ? Thx
The text was updated successfully, but these errors were encountered: