[openslug3.10beta] ftdi.h no such file or directory
Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
[openslug3.10beta] ftdi.h no such file or directory
Hi, I am running openslug 3.10BETA on my NSLU2 and want to compile the latest " libftdi-0.10 " since I am unable to find stable packages at ipkgfind website.
Unfortunately on make I get the following errors, can one please assist so I can compile please? Cheers!
./configure - then everything looks fine to me:
root@NSLU2:/temp/libftdi-0.10# ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
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 for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... armv5teb-unknown-linux-gnu
checking host system type... armv5teb-unknown-linux-gnu
checking for ld used by GCC... /usr/armeb-linux/bin/ld
checking if the linker (/usr/armeb-linux/bin/ld) is GNU ld... yes
checking for /usr/armeb-linux/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -B
checking whether ln -s works... yes
checking how to recognise dependant libraries... file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )
checking command to parse /usr/bin/nm -B output... ok
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 dlfcn.h usability... yes
checking dlfcn.h presence... yes
checking for dlfcn.h... yes
checking for file... /usr/bin/file
checking for ranlib... ranlib
checking for strip... strip
checking for objdir... .libs
checking for gcc option to produce PIC... -fPIC
checking if gcc PIC flag -fPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.lo... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking whether the linker (/usr/armeb-linux/bin/ld) supports shared libraries... yes
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... yes
checking whether -lc should be explicitly linked in... no
creating libtool
checking for libusb-config... /usr/bin/libusb-config
checking if libusb version is >= 0.1.7... yes
checking for doxygen... no
configure: creating ./config.status
config.status: creating libftdi-config
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing default commands
configure: creating ./config.status
config.status: creating libftdi-config
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating examples/Makefile
config.status: creating doc/Doxyfile
config.status: creating doc/Makefile
config.status: creating libftdi.pc
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
Next I start making (make) and the following error occurs:
Are you compiling this on the NSLU2? If not on, you need to specify the architecture of the NSLU2 when you run ./configure along with some other info about the NSLU2 architecture.
So added "ln -sf /usr/armeb-linux/bin/ar /usr/bin/ar" which starts indeed compiling though after make and make install I get the following output and still not satisfactory result...
If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
- add LIBDIR to the `LD_LIBRARY_PATH' environment variable
during execution
- add LIBDIR to the `LD_RUN_PATH' environment variable
during linking
- use the `-Wl,--rpath -Wl,LIBDIR' linker flag
- have your system administrator add LIBDIR to `/etc/ld.so.conf'
See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.
----------------------------------------------------------------------
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"
/usr/bin/install -c -m 644 'ftdi.h' '/usr/local/include/ftdi.h'
make[2]: Leaving directory `/temp/libftdi-0.10/src'
make[1]: Leaving directory `/temp/libftdi-0.10/src'
Making install in examples
make[1]: Entering directory `/temp/libftdi-0.10/examples'
make[2]: Entering directory `/temp/libftdi-0.10/examples'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'simple' '/usr/local/bin/simple'
/usr/bin/install -c simple /usr/local/bin/simple
/bin/bash ../libtool --mode=install /usr/bin/install -c 'bitbang' '/usr/local/bin/bitbang'
/usr/bin/install -c bitbang /usr/local/bin/bitbang
/bin/bash ../libtool --mode=install /usr/bin/install -c 'bitbang2' '/usr/local/bin/bitbang2'
/usr/bin/install -c bitbang2 /usr/local/bin/bitbang2
/bin/bash ../libtool --mode=install /usr/bin/install -c 'bitbang_ft2232' '/usr/local/bin/bitbang_ft2232'
/usr/bin/install -c bitbang_ft2232 /usr/local/bin/bitbang_ft2232
/bin/bash ../libtool --mode=install /usr/bin/install -c 'bitbang_cbus' '/usr/local/bin/bitbang_cbus'
/usr/bin/install -c bitbang_cbus /usr/local/bin/bitbang_cbus
/bin/bash ../libtool --mode=install /usr/bin/install -c 'find_all' '/usr/local/bin/find_all'
/usr/bin/install -c find_all /usr/local/bin/find_all
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/temp/libftdi-0.10/examples'
make[1]: Leaving directory `/temp/libftdi-0.10/examples'
Making install in doc
make[1]: Entering directory `/temp/libftdi-0.10/doc'
make[2]: Entering directory `/temp/libftdi-0.10/doc'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/temp/libftdi-0.10/doc'
make[1]: Leaving directory `/temp/libftdi-0.10/doc'
make[1]: Entering directory `/temp/libftdi-0.10'
make[2]: Entering directory `/temp/libftdi-0.10'
test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
/usr/bin/install -c 'libftdi-config' '/usr/local/bin/libftdi-config'
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig"
/usr/bin/install -c -m 644 'libftdi.pc' '/usr/local/lib/pkgconfig/libftdi.pc'
make[2]: Leaving directory `/temp/libftdi-0.10'
make[1]: Leaving directory `/temp/libftdi-0.10'
root@NSLU2:/temp/smusbutil# make
gcc -lftdi -o smusbutil smusbutil.c
/usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: /tmp/ccJAUqJI.o does not support interworking, whereas smusbutil does
root@NSLU2:/temp/smusbutil# ./smusbutil
./smusbutil: error while loading shared libraries: libftdi.so.0: cannot open shared object file: No such file or directory
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.