LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 07-23-2007, 08:57 AM   #1
dolphs
Member
 
Registered: Nov 2003
Posts: 43

Rep: Reputation: 15
Question [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:

root@NSLU2:/temp/libftdi-0.10# make
make all-recursive
make[1]: Entering directory `/temp/libftdi-0.10'
Making all in src
make[2]: Entering directory `/temp/libftdi-0.10/src'
/bin/bash ../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo -c -o ftdi.lo ftdi.c
mkdir .libs
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo -c ftdi.c -fPIC -DPIC -o .libs/ftdi.lo
gcc -DHAVE_CONFIG_H -I. -I.. -g -O2 -MT ftdi.lo -MD -MP -MF .deps/ftdi.Tpo -c ftdi.c -o ftdi.o >/dev/null 2>&1
mv -f .libs/ftdi.lo ftdi.lo
mv -f .deps/ftdi.Tpo .deps/ftdi.Plo
/bin/bash ../libtool --mode=link gcc -g -O2 -version-info 10:0:10 -o libftdi.la -rpath /usr/local/lib ftdi.lo -L/usr/lib -lusb
rm -fr .libs/libftdi.la .libs/libftdi.* .libs/libftdi.*
gcc -shared ftdi.lo -L/home/repvik/builds/openslug-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib -L/usr/lib /usr/lib/libusb.so -Wl,-soname -Wl,libftdi.so.0 -o .libs/libftdi.so.0.10.0
/usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: ftdi.lo does not support interworking, whereas .libs/libftdi.so.0.10.0 does
(cd .libs && rm -f libftdi.so.0 && ln -s libftdi.so.0.10.0 libftdi.so.0)
(cd .libs && rm -f libftdi.so && ln -s libftdi.so.0.10.0 libftdi.so)
ar cru .libs/libftdi.a ftdi.o
BusyBox v1.01 (2006.06.09-14:27+0000) multi-call binary

Usage: ar [-o] [-v] [-p] [-t] [-x] ARCHIVE FILES

Extract or list FILES from an ar archive.

Options:
-o preserve original dates
-p extract to stdout
-t list
-x extract
-v verbosely list files processed

make[2]: *** [libftdi.la] Error 1
make[2]: Leaving directory `/temp/libftdi-0.10/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/temp/libftdi-0.10'
make: *** [all] Error 2
 
Old 07-24-2007, 10:43 PM   #2
splunk
Member
 
Registered: Jan 2007
Location: PA, USA
Distribution: Ubuntu Jaunty (9.04)
Posts: 31

Rep: Reputation: 16
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.
 
Old 07-31-2007, 07:23 AM   #3
dolphs
Member
 
Registered: Nov 2003
Posts: 43

Original Poster
Rep: Reputation: 15
Hi, no I am compiling on the NSLU2.

I am getting there but still not satisfactory result.


ls -l `which ar` gives me:
lrwxrwxrwx 1 root root 17 Jul 31 09:23 /usr/bin/ar -> ../../bin/busybox


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...


root@NSLU2:/temp/libftdi-0.10# make
make all-recursive
make[1]: Entering directory `/temp/libftdi-0.10'
Making all in src
make[2]: Entering directory `/temp/libftdi-0.10/src'
/bin/bash ../libtool --mode=link gcc -g -O2 -version-info 10:0:10 -o libftdi.la -rpath /usr/local/lib ftdi.lo -L/usr/lib -lusb
rm -fr .libs/libftdi.la .libs/libftdi.* .libs/libftdi.*
gcc -shared ftdi.lo -L/home/repvik/builds/openslug-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib -L/usr/lib /usr/lib/libusb.so -Wl,-soname -Wl,libftdi.so.0 -o .libs/libftdi.so.0.10.0
/usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: ftdi.lo does not support interworking, whereas .libs/libftdi.so.0.10.0 does
(cd .libs && rm -f libftdi.so.0 && ln -s libftdi.so.0.10.0 libftdi.so.0)
(cd .libs && rm -f libftdi.so && ln -s libftdi.so.0.10.0 libftdi.so)
ar cru .libs/libftdi.a ftdi.o
ranlib .libs/libftdi.a
creating libftdi.la
(cd .libs && rm -f libftdi.la && ln -s ../libftdi.la libftdi.la)
make[2]: Leaving directory `/temp/libftdi-0.10/src'
Making all in examples
make[2]: Entering directory `/temp/libftdi-0.10/examples'
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -MT simple.o -MD -MP -MF .deps/simple.Tpo -c -o simple.o simple.c
mv -f .deps/simple.Tpo .deps/simple.Po
/bin/bash ../libtool --mode=link gcc -g -O2 -no-install -o simple simple.o ../src/libftdi.la -L/usr/lib -lusb
mkdir .libs
gcc -g -O2 -o simple simple.o ../src/.libs/libftdi.so -L/usr/lib -L/home/repvik/builds/openslug-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib /usr/lib/libusb.so -Wl,--rpath -Wl,/temp/libftdi-0.10/src/.libs -Wl,--rpath -Wl,/usr/local/lib
/usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: simple.o does not support interworking, whereas simple does
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -MT bitbang.o -MD -MP -MF .deps/bitbang.Tpo -c -o bitbang.o bitbang.c
mv -f .deps/bitbang.Tpo .deps/bitbang.Po
/bin/bash ../libtool --mode=link gcc -g -O2 -no-install -o bitbang bitbang.o ../src/libftdi.la -L/usr/lib -lusb
gcc -g -O2 -o bitbang bitbang.o ../src/.libs/libftdi.so -L/usr/lib -L/home/repvik/builds/openslug-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib /usr/lib/libusb.so -Wl,--rpath -Wl,/temp/libftdi-0.10/src/.libs -Wl,--rpath -Wl,/usr/local/lib
/usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: bitbang.o does not support interworking, whereas bitbang does
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -MT bitbang2.o -MD -MP -MF .deps/bitbang2.Tpo -c -o bitbang2.o bitbang2.c
mv -f .deps/bitbang2.Tpo .deps/bitbang2.Po
/bin/bash ../libtool --mode=link gcc -g -O2 -no-install -o bitbang2 bitbang2.o ../src/libftdi.la -L/usr/lib -lusb
gcc -g -O2 -o bitbang2 bitbang2.o ../src/.libs/libftdi.so -L/usr/lib -L/home/repvik/builds/openslug-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib /usr/lib/libusb.so -Wl,--rpath -Wl,/temp/libftdi-0.10/src/.libs -Wl,--rpath -Wl,/usr/local/lib
/usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: bitbang2.o does not support interworking, whereas bitbang2 does
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -MT bitbang_ft2232.o -MD -MP -MF .deps/bitbang_ft2232.Tpo -c -o bitbang_ft2232.o bitbang_ft2232.c
mv -f .deps/bitbang_ft2232.Tpo .deps/bitbang_ft2232.Po
/bin/bash ../libtool --mode=link gcc -g -O2 -no-install -o bitbang_ft2232 bitbang_ft2232.o ../src/libftdi.la -L/usr/lib -lusb
gcc -g -O2 -o bitbang_ft2232 bitbang_ft2232.o ../src/.libs/libftdi.so -L/usr/lib -L/home/repvik/builds/openslug-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib /usr/lib/libusb.so -Wl,--rpath -Wl,/temp/libftdi-0.10/src/.libs -Wl,--rpath -Wl,/usr/local/lib
/usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: bitbang_ft2232.o does not support interworking, whereas bitbang_ft2232 does
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -MT bitbang_cbus.o -MD -MP -MF .deps/bitbang_cbus.Tpo -c -o bitbang_cbus.o bitbang_cbus.c
mv -f .deps/bitbang_cbus.Tpo .deps/bitbang_cbus.Po
/bin/bash ../libtool --mode=link gcc -g -O2 -no-install -o bitbang_cbus bitbang_cbus.o ../src/libftdi.la -L/usr/lib -lusb
gcc -g -O2 -o bitbang_cbus bitbang_cbus.o ../src/.libs/libftdi.so -L/usr/lib -L/home/repvik/builds/openslug-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib /usr/lib/libusb.so -Wl,--rpath -Wl,/temp/libftdi-0.10/src/.libs -Wl,--rpath -Wl,/usr/local/lib
/usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: bitbang_cbus.o does not support interworking, whereas bitbang_cbus does
gcc -DHAVE_CONFIG_H -I. -I.. -I../src -g -O2 -MT find_all.o -MD -MP -MF .deps/find_all.Tpo -c -o find_all.o find_all.c
find_all.c: In function `main':
find_all.c:30: warning: passing arg 3 of `ftdi_usb_get_strings' from incompatible pointer type
mv -f .deps/find_all.Tpo .deps/find_all.Po
/bin/bash ../libtool --mode=link gcc -g -O2 -no-install -o find_all find_all.o ../src/libftdi.la -L/usr/lib -lusb
gcc -g -O2 -o find_all find_all.o ../src/.libs/libftdi.so -L/usr/lib -L/home/repvik/builds/openslug-3.10-beta/openslug-nslu2.tmp/staging/armeb-linux/lib /usr/lib/libusb.so -Wl,--rpath -Wl,/temp/libftdi-0.10/src/.libs -Wl,--rpath -Wl,/usr/local/lib
/usr/lib/gcc/armeb-linux/3.4.4/../../../../armeb-linux/bin/ld: Warning: find_all.o does not support interworking, whereas find_all does
make[2]: Leaving directory `/temp/libftdi-0.10/examples'
Making all in doc
make[2]: Entering directory `/temp/libftdi-0.10/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/temp/libftdi-0.10/doc'
make[2]: Entering directory `/temp/libftdi-0.10'
make[2]: Leaving directory `/temp/libftdi-0.10'
make[1]: Leaving directory `/temp/libftdi-0.10'




root@NSLU2:/temp/libftdi-0.10# make install
Making install in src
make[1]: Entering directory `/temp/libftdi-0.10/src'
make[2]: Entering directory `/temp/libftdi-0.10/src'
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"
/bin/bash ../libtool --mode=install /usr/bin/install -c 'libftdi.la' '/usr/local/lib/libftdi.la'
/usr/bin/install -c .libs/libftdi.so.0.10.0 /usr/local/lib/libftdi.so.0.10.0
(cd /usr/local/lib && rm -f libftdi.so.0 && ln -s libftdi.so.0.10.0 libftdi.so.0)
(cd /usr/local/lib && rm -f libftdi.so && ln -s libftdi.so.0.10.0 libftdi.so)
/usr/bin/install -c .libs/libftdi.lai /usr/local/lib/libftdi.la
/usr/bin/install -c .libs/libftdi.a /usr/local/lib/libftdi.a
ranlib /usr/local/lib/libftdi.a
chmod 644 /usr/local/lib/libftdi.a
PATH="$PATH:/sbin" ldconfig -n /usr/local/lib
----------------------------------------------------------------------
Libraries have been installed in:
/usr/local/lib

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'
 
Old 07-31-2007, 07:26 AM   #4
dolphs
Member
 
Registered: Nov 2003
Posts: 43

Original Poster
Rep: Reputation: 15
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
 
Old 07-31-2007, 07:41 AM   #5
dolphs
Member
 
Registered: Nov 2003
Posts: 43

Original Poster
Rep: Reputation: 15
export LD_LIBRARY_PATH=/usr/local/lib and seems to go
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Copying a single file into each directory of a directory tree mlapl1 Linux - Newbie 2 06-27-2007 10:18 PM
How to untar a file in another directory other then current directory. dr_zayus69 Linux - Software 8 05-16-2007 11:01 AM
How to protect a file/directory in your home login directory (RH Linux) jitsenho Linux - Security 9 07-03-2006 11:08 PM
glcd + ftdi + usb tooly Linux - Hardware 1 09-25-2005 11:47 AM
libawt.so: libXp.so.6: cannot open shared object file: No such file or directory man26 *BSD 0 09-10-2004 08:34 AM


All times are GMT -5. The time now is 08:54 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration