Skip to content
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

error: missing fdtdi1 library #43

Open
markmitton opened this issue Feb 11, 2021 · 2 comments
Open

error: missing fdtdi1 library #43

markmitton opened this issue Feb 11, 2021 · 2 comments

Comments

@markmitton
Copy link

markmitton commented Feb 11, 2021

I am unable to configure and build this library. The ./configure script complains that the libftdi1 library is missing but ldconfig reports the loaded library. I built and installed the FTDI library from here http://developer.intra2net.com/libftdi

root@iot2000:/opt/libmpsse/src# ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for size_t... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking libftdi1/ftdi.h usability... yes
checking libftdi1/ftdi.h presence... yes
checking for libftdi1/ftdi.h... yes
checking for ftdi_init in -lftdi1... no
error: missing libftdi1 library
root@iot2000:/opt/libmpsse/src# ldconfig -p | grep ftdi1
libftdi1.so.2 (libc6) => /usr/local/lib/libftdi1.so.2
libftdi1.so (libc6) => /usr/local/lib/libftdi1.so

Any thoughts as to what I could do to get the ./configure script to correctly detect the library?

Thanks

@l29ah
Copy link

l29ah commented Feb 12, 2021

Have you tried building https://github.com/l29ah/libmpsse
?

@markmitton
Copy link
Author

Hi I29ah,

Thanks, I did and get the same result:

checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... no
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/i586-poky-linux/bin/ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking libftdi1/ftdi.h usability... yes
checking libftdi1/ftdi.h presence... yes
checking for libftdi1/ftdi.h... yes
checking for ftdi_init in -lftdi1... no
checking for ftdi_init in -lftdi... no
configure: error: missing libftdi library

root@iot2000:/opt/libmpsse/src# ldconfig -p | grep ftdi
libftdi1.so.2 (libc6) => /usr/local/lib/libftdi1.so.2
libftdi1.so (libc6) => /usr/local/lib/libftdi1.so

Do you know if the configure script uses a different mechanism to check if the library is installed/usable?

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants