ziutek / ftdi

Go binding for libFTDI
Other
25 stars 14 forks source link

Issue getting package #12

Open ARao0123 opened 3 years ago

ARao0123 commented 3 years ago

Hi, I'm trying to run a go get command and I see this issue:

go get github.com/ziutek/ftdi
# pkg-config --cflags  -- libftdi1
Package libftdi1 was not found in the pkg-config search path.
Perhaps you should add the directory containing `libftdi1.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libftdi1' found
pkg-config: exit status 1

Any idea what is causing this?

ziutek commented 3 years ago

Try instal libftdi-dev or libftdi1-dev packages (debian, ubuntu).

tclarke commented 3 years ago

libftdi1 is not the correct pkgconfig name. It should be just libftdi Workaround is ln -s /usr/lib/pkgconfig/libftdi.pc /usr/lib/pkgconfig/libftdi1.pc