I wish you would include inside the README some kind of BUILD / HOWTO sectionJeff wrote:full command used and error message please.radio_handbook wrote: I must admit I was a bit too much impatient. Afterhaving downloaded the sources
and run linux/libftdi*/configure I miss at least the usb.h file to run 'make'.
and also set up the whole build process to be some kind of
./configure && make && make install
However I realized I had to build first the FTDI lib before doing anything else.
So, right after unzipping the sources and the libftdi*tar.gz I went into libftdi directory
and ran ./configure && make
cubase@gx620od:~/FloppyEmu$ rm -rf HxC_Floppy_Emulator_soft_src
cubase@gx620od:~/FloppyEmu$ unzip HxC_Floppy_Emulator_soft_src.zip
Archive: HxC_Floppy_Emulator_soft_src.zip
[...]
cubase@gx620od:~/FloppyEmu$ cd HxC_Floppy_Emulator_soft_src/linux/
cubase@gx620od:~/FloppyEmu/HxC_Floppy_Emulator_soft_src/linux$ tar -zxvf libftdi-0.14.tar.gz
libftdi-0.14/
libftdi-0.14/doc/
libftdi-0.14/doc/Makefile.am
libftdi-0.14/doc/Makefile.in
libftdi-0.14/doc/Doxyfile.in
libftdi-0.14/src/
libftdi-0.14/src/ftdi.c
libftdi-0.14/src/ftdi.h
libftdi-0.14/src/Makefile.am
libftdi-0.14/src/Makefile.in
libftdi-0.14/depcomp
libftdi-0.14/libftdi.pc.in
libftdi-0.14/aclocal.m4
libftdi-0.14/COPYING.LIB
libftdi-0.14/README
libftdi-0.14/ltmain.sh
libftdi-0.14/configure
libftdi-0.14/configure.in
libftdi-0.14/config.guess
libftdi-0.14/install-sh
libftdi-0.14/config.sub
libftdi-0.14/missing
libftdi-0.14/Makefile.am
libftdi-0.14/Makefile.in
libftdi-0.14/config.h.in
libftdi-0.14/libftdi-config.in
libftdi-0.14/libftdi.spec.in
libftdi-0.14/AUTHORS
libftdi-0.14/examples/
libftdi-0.14/examples/simple.c
libftdi-0.14/examples/find_all.c
libftdi-0.14/examples/Makefile.am
libftdi-0.14/examples/Makefile.in
libftdi-0.14/examples/bitbang_ft2232.c
libftdi-0.14/examples/bitbang2.c
libftdi-0.14/examples/bitbang_cbus.c
libftdi-0.14/examples/bitbang.c
libftdi-0.14/ChangeLog
libftdi-0.14/libftdi.spec
cubase@gx620od:~/FloppyEmu/HxC_Floppy_Emulator_soft_src/linux$ cd libftdi-0.14/
cubase@gx620od:~/FloppyEmu/HxC_Floppy_Emulator_soft_src/linux/libftdi-0.14$ ./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... no
checking for mawk... mawk
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... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking for /usr/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 recognize dependent libraries... pass_all
checking how to run the C preprocessor... gcc -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 g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking how to run the C++ preprocessor... g++ -E
checking for g77... no
checking for xlf... no
checking for f77... no
checking for frt... no
checking for pgf77... no
checking for cf77... no
checking for fort77... no
checking for fl32... no
checking for af77... no
checking for xlf90... no
checking for f90... no
checking for pgf90... no
checking for pghpf... no
checking for epcf90... no
checking for gfortran... no
checking for g95... no
checking for xlf95... no
checking for f95... no
checking for fort... no
checking for ifort... no
checking for ifc... no
checking for efc... no
checking for pgf95... no
checking for lf95... no
checking for ftn... no
checking whether we are using the GNU Fortran 77 compiler... no
checking whether accepts -g... no
checking the maximum length of command line arguments... 1572864
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc supports -fno-rtti -fno-exceptions... no
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 whether the gcc linker (/usr/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
configure: creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC
checking if g++ PIC flag -fPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
appending configuration tag "F77" to libtool
checking for libusb-config... /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
./configure: line 19372: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
./configure: line 19373: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
checking if libusb version is >= 0.1.7... ./configure: line 19386: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games: No such file or directory
./configure: line 19388: test: -lt: unary operator expected
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 libftdi.spec
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing default commands
cubase@gx620od:~/FloppyEmu/HxC_Floppy_Emulator_soft_src/linux/libftdi-0.14$ make
make all-recursive
make[1]: Entering directory `/home/cubase/FloppyEmu/HxC_Floppy_Emulator_soft_src/linux/libftdi-0.14'
Making all in src
make[2]: Entering directory `/home/cubase/FloppyEmu/HxC_Floppy_Emulator_soft_src/linux/libftdi-0.14/src'
/bin/bash ../libtool --tag=CC --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.o
ftdi.c:31:17: error: usb.h: No such file or directory
In file included from ftdi.c:35:
ftdi.h:260: error: expected declaration specifiers or '...' before 'usb_dev_handle'
ftdi.c: In function 'ftdi_new':
ftdi.c:121: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c: In function 'ftdi_deinit':
ftdi.c:164: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c:169: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c: In function 'ftdi_free':
ftdi.c:182: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c: At top level:
ftdi.c:191: error: expected declaration specifiers or '...' before 'usb_dev_handle'
ftdi.c: In function 'ftdi_set_usbdev':
ftdi.c:193: error: 'usb' undeclared (first use in this function)
ftdi.c:193: error: (Each undeclared identifier is reported only once
ftdi.c:193: error: for each function it appears in.)
ftdi.c: In function 'ftdi_usb_find_all':
ftdi.c:226: warning: assignment makes pointer from integer without a cast
ftdi.c:226: error: dereferencing pointer to incomplete type
ftdi.c:227: error: dereferencing pointer to incomplete type
ftdi.c:227: error: dereferencing pointer to incomplete type
ftdi.c:228: error: dereferencing pointer to incomplete type
ftdi.c:229: error: dereferencing pointer to incomplete type
ftdi.c: In function 'ftdi_list_free':
ftdi.c:258: warning: incompatible implicit declaration of built-in function 'free'
ftdi.c: In function 'ftdi_usb_get_strings':
ftdi.c:307: warning: assignment makes pointer from integer without a cast
ftdi.c:308: warning: assignment makes pointer from integer without a cast
ftdi.c:311: error: dereferencing pointer to incomplete type
ftdi.c:313: warning: assignment makes pointer from integer without a cast
ftdi.c:318: error: dereferencing pointer to incomplete type
ftdi.c:320: warning: assignment makes pointer from integer without a cast
ftdi.c:325: error: dereferencing pointer to incomplete type
ftdi.c:327: warning: assignment makes pointer from integer without a cast
ftdi.c:332: warning: assignment makes pointer from integer without a cast
ftdi.c: In function 'ftdi_usb_open_dev':
ftdi.c:353: warning: assignment makes pointer from integer without a cast
ftdi.c:371: error: dereferencing pointer to incomplete type
ftdi.c:372: error: dereferencing pointer to incomplete type
ftdi.c:404: error: dereferencing pointer to incomplete type
ftdi.c:404: error: dereferencing pointer to incomplete type
ftdi.c:405: error: dereferencing pointer to incomplete type
ftdi.c:407: error: dereferencing pointer to incomplete type
ftdi.c:409: error: dereferencing pointer to incomplete type
ftdi.c:413: error: dereferencing pointer to incomplete type
ftdi.c: In function 'ftdi_usb_open_desc':
ftdi.c:469: warning: assignment makes pointer from integer without a cast
ftdi.c:469: error: dereferencing pointer to incomplete type
ftdi.c:470: error: dereferencing pointer to incomplete type
ftdi.c:470: error: dereferencing pointer to incomplete type
ftdi.c:471: error: dereferencing pointer to incomplete type
ftdi.c:472: error: dereferencing pointer to incomplete type
ftdi.c:473: warning: assignment makes pointer from integer without a cast
ftdi.c:477: error: dereferencing pointer to incomplete type
ftdi.c:488: error: dereferencing pointer to incomplete type
ftdi.c: In function 'ftdi_read_data_set_chunksize':
ftdi.c:1233: warning: incompatible implicit declaration of built-in function 'realloc'
make[2]: *** [ftdi.lo] Error 1
make[2]: Leaving directory `/home/cubase/FloppyEmu/HxC_Floppy_Emulator_soft_src/linux/libftdi-0.14/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/cubase/FloppyEmu/HxC_Floppy_Emulator_soft_src/linux/libftdi-0.14'
make: *** [all] Error 2
*** UPDATE ***
I found out I also need to download a libusb library.
http://packages.debian.org/search?keywo ... ection=all
Which one should I download?