Final batch of HxC USB devices planned

General discussion forum - for all that doesn't fit in any other category.
radio_handbook
Posts: 11
Joined: Sun Mar 15, 2009 2:42 pm

Post by radio_handbook »

Jeff wrote:
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'.
full command used and error message please.
I wish you would include inside the README some kind of BUILD / HOWTO section
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?

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

radio_handbook wrote: 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
for some reasons it seems you don't have all the necessary header in your system.
Try to use the precompiled D2XX driver present in the zip file :

make clean
make hxcfloppyemulator_d2xx

radio_handbook
Posts: 11
Joined: Sun Mar 15, 2009 2:42 pm

Post by radio_handbook »

Jeff wrote:
radio_handbook wrote: 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
for some reasons it seems you don't have all the necessary header in your system.
Try to use the precompiled D2XX driver present in the zip file :

make clean
make hxcfloppyemulator_d2xx
make hxcfloppyemulator_d2xx
gcc -o hxcfloppyemu.o -c hxcfloppyemu.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o floppy_loader.o -c ../common/floppy_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o floppy_utils.o -c ../common/floppy_utils.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o linux_api.o -c linux_api.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
linux_api.c: In function ‘getcurrentdirectory’:
linux_api.c:216: warning: incompatible implicit declaration of built-in function ‘memset’
gcc -o ftdi_d2xxmode.o -c ftdi.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o amiga_track.o -c ../common/plugins/common/amiga_track.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o crc.o -c ../common/plugins/common/crc.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o iso_ibm_track.o -c ../common/plugins/common/iso_ibm_track.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o gcr_track.o -c ../common/plugins/common/gcr_track.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o mfm_file_writer.o -c ../common/mfm_file_writer.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o hfe_file_writer.o -c ../common/hfe_file_writer.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o afi_file_writer.o -c ../common/afi_file_writer.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/afi_file_writer.c: In function ‘adddatablock’:
../common/afi_file_writer.c:94: warning: format not a string literal and no format arguments
gcc -o adf_hd.o -c ../common/libs/adflib/Lib/adf_hd.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_disk.o -c ../common/libs/adflib/Lib/adf_disk.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_raw.o -c ../common/libs/adflib/Lib/adf_raw.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_bitm.o -c ../common/libs/adflib/Lib/adf_bitm.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_dump.o -c ../common/libs/adflib/Lib/adf_dump.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_util.o -c ../common/libs/adflib/Lib/adf_util.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_env.o -c ../common/libs/adflib/Lib/adf_env.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_nativ.o -c ../common/libs/adflib/Lib/adf_nativ.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_dir.o -c ../common/libs/adflib/Lib/adf_dir.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_file.o -c ../common/libs/adflib/Lib/adf_file.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_cache.o -c ../common/libs/adflib/Lib/adf_cache.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_link.o -c ../common/libs/adflib/Lib/adf_link.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_salv.o -c ../common/libs/adflib/Lib/adf_salv.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o copyqm_loader.o -c ../common/plugins/copyqm_loader/copyqm_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/copyqm_loader/copyqm_loader.c: In function ‘CopyQm_libIsValidDiskFile’:
../common/plugins/copyqm_loader/copyqm_loader.c:84: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/copyqm_loader/copyqm_loader.c: In function ‘CopyQm_libLoad_DiskFile’:
../common/plugins/copyqm_loader/copyqm_loader.c:165: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o crctable.o -c ../common/plugins/copyqm_loader/crctable.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_loader.o -c ../common/plugins/adf_loader/adf_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/adf_loader/adf_loader.c: In function ‘ADF_libLoad_DiskFile’:
../common/plugins/adf_loader/adf_loader.c:181: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o adz_loader.o -c ../common/plugins/adz_loader/adz_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o amigadosfs_loader.o -c ../common/plugins/amigadosfs_loader/amigadosfs_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/amigadosfs_loader/amigadosfs_loader.c: In function ‘ScanFile’:
../common/plugins/amigadosfs_loader/amigadosfs_loader.c:230: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o vfile.o -c ../common/libs/xdms/vfile.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o cpcdsk_loader.o -c ../common/plugins/cpcdsk_loader/cpcdsk_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/cpcdsk_loader/cpcdsk_loader.c: In function ‘CPCDSK_libIsValidDiskFile’:
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:90: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c: In function ‘CPCDSK_libLoad_DiskFile’:
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:163: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:190: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:212: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:268: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:308: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o msa_loader.o -c ../common/plugins/msa_loader/msa_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/msa_loader/msa_loader.c: In function ‘MSA_libLoad_DiskFile’:
../common/plugins/msa_loader/msa_loader.c:135: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/msa_loader/msa_loader.c:152: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/msa_loader/msa_loader.c:158: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/msa_loader/msa_loader.c:170: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o msx_loader.o -c ../common/plugins/msx_loader/msx_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/msx_loader/msx_loader.c: In function ‘MSX_libLoad_DiskFile’:
../common/plugins/msx_loader/msx_loader.c:230: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/msx_loader/msx_loader.c:296: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o smc_loader.o -c ../common/plugins/smc_loader/snes_smc_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/smc_loader/snes_smc_loader.c: In function ‘snes_smc_libIsValidDiskFile’:
../common/plugins/smc_loader/snes_smc_loader.c:84: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o st_loader.o -c ../common/plugins/st_loader/st_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/st_loader/st_loader.c: In function ‘ST_libLoad_DiskFile’:
../common/plugins/st_loader/st_loader.c:200: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/st_loader/st_loader.c:274: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o stx_loader.o -c ../common/plugins/stx_loader/stx_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/stx_loader/stx_loader.c: In function ‘STX_libIsValidDiskFile’:
../common/plugins/stx_loader/stx_loader.c:94: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c: In function ‘STX_libLoad_DiskFile’:
../common/plugins/stx_loader/stx_loader.c:267: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
../common/plugins/stx_loader/stx_loader.c:190: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:205: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:262: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:304: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:384: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:396: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:540: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:639: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:644: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:654: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:778: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:892: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o img_loader.o -c ../common/plugins/img_loader/img_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/img_loader/img_loader.c: In function ‘IMG_libLoad_DiskFile’:
../common/plugins/img_loader/img_loader.c:226: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/img_loader/img_loader.c:288: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o dms_loader.o -c ../common/plugins/dms_loader/dms_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o mfm_loader.o -c ../common/plugins/mfm_loader/mfm_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/mfm_loader/mfm_loader.c: In function ‘MFM_libIsValidDiskFile’:
../common/plugins/mfm_loader/mfm_loader.c:88: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/mfm_loader/mfm_loader.c: In function ‘MFM_libLoad_DiskFile’:
../common/plugins/mfm_loader/mfm_loader.c:137: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/mfm_loader/mfm_loader.c:166: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/mfm_loader/mfm_loader.c:196: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o oricdsk_loader.o -c ../common/plugins/oricdsk_loader/oricdsk_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/oricdsk_loader/oricdsk_loader.c: In function ‘OricDSK_libIsValidDiskFile’:
../common/plugins/oricdsk_loader/oricdsk_loader.c:88: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/oricdsk_loader/oricdsk_loader.c: In function ‘OricDSK_libLoad_DiskFile’:
../common/plugins/oricdsk_loader/oricdsk_loader.c:312: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/oricdsk_loader/oricdsk_loader.c:400: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/oricdsk_loader/oricdsk_loader.c:473: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/oricdsk_loader/oricdsk_loader.c:534: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o d64_loader.o -c ../common/plugins/d64_loader/d64_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/d64_loader/d64_loader.c:58:24: error: D64_loader.h: No such file or directory
../common/plugins/d64_loader/d64_loader.c: In function ‘D64_libLoad_DiskFile’:
../common/plugins/d64_loader/d64_loader.c:157: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/d64_loader/d64_loader.c:174: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/d64_loader/d64_loader.c:289: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
make: *** [d64_loader.o] Error 1

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

radio_handbook wrote:
Jeff wrote:
radio_handbook wrote: 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
for some reasons it seems you don't have all the necessary header in your system.
Try to use the precompiled D2XX driver present in the zip file :

make clean
make hxcfloppyemulator_d2xx
make hxcfloppyemulator_d2xx
gcc -o hxcfloppyemu.o -c hxcfloppyemu.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o floppy_loader.o -c ../common/floppy_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o floppy_utils.o -c ../common/floppy_utils.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o linux_api.o -c linux_api.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
linux_api.c: In function ‘getcurrentdirectory’:
linux_api.c:216: warning: incompatible implicit declaration of built-in function ‘memset’
gcc -o ftdi_d2xxmode.o -c ftdi.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o amiga_track.o -c ../common/plugins/common/amiga_track.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o crc.o -c ../common/plugins/common/crc.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o iso_ibm_track.o -c ../common/plugins/common/iso_ibm_track.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o gcr_track.o -c ../common/plugins/common/gcr_track.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o mfm_file_writer.o -c ../common/mfm_file_writer.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o hfe_file_writer.o -c ../common/hfe_file_writer.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o afi_file_writer.o -c ../common/afi_file_writer.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/afi_file_writer.c: In function ‘adddatablock’:
../common/afi_file_writer.c:94: warning: format not a string literal and no format arguments
gcc -o adf_hd.o -c ../common/libs/adflib/Lib/adf_hd.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_disk.o -c ../common/libs/adflib/Lib/adf_disk.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_raw.o -c ../common/libs/adflib/Lib/adf_raw.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_bitm.o -c ../common/libs/adflib/Lib/adf_bitm.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_dump.o -c ../common/libs/adflib/Lib/adf_dump.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_util.o -c ../common/libs/adflib/Lib/adf_util.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_env.o -c ../common/libs/adflib/Lib/adf_env.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_nativ.o -c ../common/libs/adflib/Lib/adf_nativ.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_dir.o -c ../common/libs/adflib/Lib/adf_dir.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_file.o -c ../common/libs/adflib/Lib/adf_file.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_cache.o -c ../common/libs/adflib/Lib/adf_cache.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_link.o -c ../common/libs/adflib/Lib/adf_link.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_salv.o -c ../common/libs/adflib/Lib/adf_salv.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o copyqm_loader.o -c ../common/plugins/copyqm_loader/copyqm_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/copyqm_loader/copyqm_loader.c: In function ‘CopyQm_libIsValidDiskFile’:
../common/plugins/copyqm_loader/copyqm_loader.c:84: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/copyqm_loader/copyqm_loader.c: In function ‘CopyQm_libLoad_DiskFile’:
../common/plugins/copyqm_loader/copyqm_loader.c:165: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o crctable.o -c ../common/plugins/copyqm_loader/crctable.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o adf_loader.o -c ../common/plugins/adf_loader/adf_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/adf_loader/adf_loader.c: In function ‘ADF_libLoad_DiskFile’:
../common/plugins/adf_loader/adf_loader.c:181: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o adz_loader.o -c ../common/plugins/adz_loader/adz_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o amigadosfs_loader.o -c ../common/plugins/amigadosfs_loader/amigadosfs_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/amigadosfs_loader/amigadosfs_loader.c: In function ‘ScanFile’:
../common/plugins/amigadosfs_loader/amigadosfs_loader.c:230: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o vfile.o -c ../common/libs/xdms/vfile.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o cpcdsk_loader.o -c ../common/plugins/cpcdsk_loader/cpcdsk_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/cpcdsk_loader/cpcdsk_loader.c: In function ‘CPCDSK_libIsValidDiskFile’:
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:90: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c: In function ‘CPCDSK_libLoad_DiskFile’:
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:163: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:190: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:212: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:268: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/cpcdsk_loader/cpcdsk_loader.c:308: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o msa_loader.o -c ../common/plugins/msa_loader/msa_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/msa_loader/msa_loader.c: In function ‘MSA_libLoad_DiskFile’:
../common/plugins/msa_loader/msa_loader.c:135: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/msa_loader/msa_loader.c:152: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/msa_loader/msa_loader.c:158: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/msa_loader/msa_loader.c:170: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o msx_loader.o -c ../common/plugins/msx_loader/msx_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/msx_loader/msx_loader.c: In function ‘MSX_libLoad_DiskFile’:
../common/plugins/msx_loader/msx_loader.c:230: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/msx_loader/msx_loader.c:296: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o smc_loader.o -c ../common/plugins/smc_loader/snes_smc_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/smc_loader/snes_smc_loader.c: In function ‘snes_smc_libIsValidDiskFile’:
../common/plugins/smc_loader/snes_smc_loader.c:84: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o st_loader.o -c ../common/plugins/st_loader/st_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/st_loader/st_loader.c: In function ‘ST_libLoad_DiskFile’:
../common/plugins/st_loader/st_loader.c:200: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/st_loader/st_loader.c:274: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o stx_loader.o -c ../common/plugins/stx_loader/stx_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/stx_loader/stx_loader.c: In function ‘STX_libIsValidDiskFile’:
../common/plugins/stx_loader/stx_loader.c:94: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c: In function ‘STX_libLoad_DiskFile’:
../common/plugins/stx_loader/stx_loader.c:267: warning: format ‘%d’ expects type ‘int’, but argument 3 has type ‘long unsigned int’
../common/plugins/stx_loader/stx_loader.c:190: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:205: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:262: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:304: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:384: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:396: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:540: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:639: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:644: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:654: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:778: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/stx_loader/stx_loader.c:892: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o img_loader.o -c ../common/plugins/img_loader/img_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/img_loader/img_loader.c: In function ‘IMG_libLoad_DiskFile’:
../common/plugins/img_loader/img_loader.c:226: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/img_loader/img_loader.c:288: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o dms_loader.o -c ../common/plugins/dms_loader/dms_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o mfm_loader.o -c ../common/plugins/mfm_loader/mfm_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/mfm_loader/mfm_loader.c: In function ‘MFM_libIsValidDiskFile’:
../common/plugins/mfm_loader/mfm_loader.c:88: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/mfm_loader/mfm_loader.c: In function ‘MFM_libLoad_DiskFile’:
../common/plugins/mfm_loader/mfm_loader.c:137: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/mfm_loader/mfm_loader.c:166: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/mfm_loader/mfm_loader.c:196: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o oricdsk_loader.o -c ../common/plugins/oricdsk_loader/oricdsk_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/oricdsk_loader/oricdsk_loader.c: In function ‘OricDSK_libIsValidDiskFile’:
../common/plugins/oricdsk_loader/oricdsk_loader.c:88: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/oricdsk_loader/oricdsk_loader.c: In function ‘OricDSK_libLoad_DiskFile’:
../common/plugins/oricdsk_loader/oricdsk_loader.c:312: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/oricdsk_loader/oricdsk_loader.c:400: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/oricdsk_loader/oricdsk_loader.c:473: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/oricdsk_loader/oricdsk_loader.c:534: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o d64_loader.o -c ../common/plugins/d64_loader/d64_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/d64_loader/d64_loader.c:58:24: error: D64_loader.h: No such file or directory
../common/plugins/d64_loader/d64_loader.c: In function ‘D64_libLoad_DiskFile’:
../common/plugins/d64_loader/d64_loader.c:157: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/d64_loader/d64_loader.c:174: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/d64_loader/d64_loader.c:289: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
make: *** [d64_loader.o] Error 1
ok in d64_loader.c try to change the line
#include "D64_loader.h"
by
#include "d64_loader.h"

(Edit : same mistake in d88_loader.c)
(Edit2 : redownload the lastest HxC_Floppy_Emulator_soft_src.zip, i have just updated it)

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

And don't forget this about the D2XX driver:

http://www.ftdichip.com/Drivers/D2XX/Linux/README.dat
7. Add the following line to /etc/fstab:

none /proc/bus/usb usbdevfs defaults,devmode=0666 0 0

There have been reports that you may need to use the following command for some distros

none /proc/bus/usb usbdevfs defaults,mode=0666 0 0 (use usbfs in 2.6 kernels)



8. Remount all in the fstab file

mount -a



If you have problems with this check with usbview (search on the internet for application

or it can be sent to you by ftdi) to check the usb file system is mounted properly.



Other problems will be related to the ftdi_sio driver loading -

1.you must unload this driver (and usbserial) if it is attached to your device ("rmmod ftdi_sio" and "rmmod usbserial"as root user).
after this start the emulator with this command :
sudo ./hxcfloppyemulator_d2xx your_floppy_disk_image

radio_handbook
Posts: 11
Joined: Sun Mar 15, 2009 2:42 pm

Post by radio_handbook »

I have downloaded again the sources from
https://hxc2001.com/floppy_drive_emulat ... ft_src.zip

Then I did the following:

$ rm -r HxC_Floppy_Emulator_soft_src
$ unzip HxC_Floppy_Emulator_soft_src
$ cd HxC_Floppy_Emulator_soft_src
$ ed linux/Makefile
11206
2p
#CC=gcc
2s/^.//
2p
CC=gcc
1p
CC=i386-pc-linux-gcc
1d
1p
CC=gcc
w
11183
q
$ grep -En '#include.*D((64|88))' $(find . -name '*[.][hc]')
./common/plugins/d64_loader/d64_loader.c:58:#include "D64_loader.h"
./common/plugins/d88_loader/d88_loader.c:58:#include "D88_loader.h"
./common/plugins/d88_loader/d88_loader.c:59:#include "D88_format.h"
$ ed ./common/plugins/d64_loader/d64_loader.c
8685
58p
#include "D64_loader.h"
58s/D64/d64/
58p
#include "d64_loader.h"
w
8685
q
$ ed ./common/plugins/d88_loader/d88_loader.c
11135
58,59p
#include "D88_loader.h"
#include "D88_format.h"
58,59s/D88/d88/
58,59p
#include "d88_loader.h"
#include "d88_format.h"
w
11135
q
$ make clean
rm -rf *.o
$ make hxcfloppyemulator_d2xx
gcc -o hxcfloppyemu.o -c hxcfloppyemu.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o floppy_loader.o -c ../common/floppy_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o floppy_utils.o -c ../common/floppy_utils.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o linux_api.o -c linux_api.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
linux_api.c: In function ‘getcurrentdirectory’:
linux_api.c:216: warning: incompatible implicit declaration of built-in function ‘memset’
gcc -o ftdi_d2xxmode.o -c ftdi.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
gcc -o amiga_track.o -c ../common/plugins/common/amiga_track.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
[...]

../common/plugins/ti99pc99_loader/ti99pc99_loader.c: In function ‘TI99PC99_libLoad_DiskFile’:
../common/plugins/ti99pc99_loader/ti99pc99_loader.c:379: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
gcc -o apridisk_loader.o -c ../common/plugins/apridisk_loader/apridisk_loader.c -O3 -I . -I ../common/ -I ../common/includes -I ../common/ftdi_floppyemulator
../common/plugins/apridisk_loader/apridisk_loader.c:58:29: error: ApriDisk_loader.h: No such file or directory
../common/plugins/apridisk_loader/apridisk_loader.c:59:29: error: ApriDisk_format.h: No such file or directory
../common/plugins/apridisk_loader/apridisk_loader.c: In function ‘ApriDisk_libIsValidDiskFile’:
../common/plugins/apridisk_loader/apridisk_loader.c:81: error: ‘APRIDISK_HeaderString’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:81: error: (Each undeclared identifier is reported only once
../common/plugins/apridisk_loader/apridisk_loader.c:81: error: for each function it appears in.)
../common/plugins/apridisk_loader/apridisk_loader.c:78: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
../common/plugins/apridisk_loader/apridisk_loader.c: In function ‘ApriDisk_libLoad_DiskFile’:
../common/plugins/apridisk_loader/apridisk_loader.c:103: error: ‘apridisk_data_record’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:103: error: ‘data_record’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:104: error: ‘apridisk_compressed_data’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:104: error: ‘compressed_dataitem’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:140: error: ‘APRIDISK_HeaderString’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:173: error: expected expression before ‘)’ token
../common/plugins/apridisk_loader/apridisk_loader.c:178: error: ‘DATA_RECORD_DELETED’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:186: error: ‘DATA_RECORD_SECTOR’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:216: error: ‘DATA_NOT_COMPRESSED’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:227: error: ‘DATA_COMPRESSED’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:228: error: expected expression before ‘)’ token
../common/plugins/apridisk_loader/apridisk_loader.c:256: error: ‘DATA_RECORD_COMMENT’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:264: error: ‘DATA_RECORD_CREATOR’ undeclared (first use in this function)
../common/plugins/apridisk_loader/apridisk_loader.c:353: error: expected expression before ‘)’ token
../common/plugins/apridisk_loader/apridisk_loader.c:135: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result
make: *** [apridisk_loader.o] Error 1

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

radio_handbook wrote:I have downloaded again the sources from
https://hxc2001.com/floppy_drive_emulat ... ft_src.zip

no you didn't. please flush your browser cache before downloading.

grep commands are useless now since bad includes are corrected.

radio_handbook
Posts: 11
Joined: Sun Mar 15, 2009 2:42 pm

Post by radio_handbook »

Jeff wrote:
radio_handbook wrote:I have downloaded again the sources from
https://hxc2001.com/floppy_drive_emulat ... ft_src.zip

no you didn't. please flush your browser cache before downloading.

grep commands are useless now since bad includes are corrected.

Now the "make hxcfloppyemulator_d2xx" step succeeds.
Building the FTDI lib still fails though.

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

you don't need libftdi since you are using D2XX ftdi driver...

radio_handbook
Posts: 11
Joined: Sun Mar 15, 2009 2:42 pm

Post by radio_handbook »

Jeff wrote:you don't need libftdi since you are using D2XX ftdi driver...
$ ./hxcfloppyemulator_d2xx
./hxcfloppyemulator_d2xx: error while loading shared libraries: libcapsimage.so.2: cannot open shared object file: No such file or directory

Ok... means I actually have the driver working ? Should I just run the executable like that?
Where could I get that shared library?

Thanks again for your patience and support.

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

radio_handbook wrote:
Jeff wrote:you don't need libftdi since you are using D2XX ftdi driver...
$ ./hxcfloppyemulator_d2xx
./hxcfloppyemulator_d2xx: error while loading shared libraries: libcapsimage.so.2: cannot open shared object file: No such file or directory

Ok... means I actually have the driver working ? Should I just run the executable like that?
Where could I get that shared library?

Thanks again for your patience and support.
the library are already in the executable (static compilation).

just read this post :
http://torlus.com/floppy/forum/viewtopi ... =2064#2064
Jeff wrote:And don't forget this about the D2XX driver:

http://www.ftdichip.com/Drivers/D2XX/Linux/README.dat
7. Add the following line to /etc/fstab:

none /proc/bus/usb usbdevfs defaults,devmode=0666 0 0

There have been reports that you may need to use the following command for some distros

none /proc/bus/usb usbdevfs defaults,mode=0666 0 0 (use usbfs in 2.6 kernels)



8. Remount all in the fstab file

mount -a



If you have problems with this check with usbview (search on the internet for application

or it can be sent to you by ftdi) to check the usb file system is mounted properly.



Other problems will be related to the ftdi_sio driver loading -

1.you must unload this driver (and usbserial) if it is attached to your device ("rmmod ftdi_sio" and "rmmod usbserial"as root user).
after this start the emulator with this command :
sudo ./hxcfloppyemulator_d2xx your_floppy_disk_image
Last time EDIT: if have just add some control key in the linux client software. so i recommend you to download it again, and rebuild it.
https://hxc2001.com/floppy_drive_emulat ... ft_src.zip
(don't forget to flush your browser cache ;-) )

bitman
Posts: 2
Joined: Thu Feb 25, 2010 12:34 pm

HxC on Debian Linux Lenny

Post by bitman »

Hi,

since yesterday I also own one of these great HxC devices and I successfully tested it under WinXP.
Now I want to use it under my usual operating system Debian Linux Lenny.

I managed to build the executable following the hints in this this thread.
Then I copied and prepared the libcapsimage.so.2.0 shared lib:

Code: Select all

a2600:/usr/lib# su -
a2600:/usr/lib# cp libcapsimage.so.2.0 /usr/lib/libcapsimage.so.2.0
a2600:/usr/lib# chmod 644 /usr/lib/libcapsimage.so.2.0
a2600:/usr/lib# chown root:root /usr/lib/libcapsimage.so.2.0
a2600:/usr/lib# ln -s libcapsimage.so.2.0 libcapsimage.so.2

lrwxrwxrwx 1 root root    19 2010-02-25 10:22 libcapsimage.so.2 -> libcapsimage.so.2.0
-rw-r--r-- 1 root root 53456 2008-05-12 23:40 libcapsimage.so.2.0
When I start the executable and give it a filename of an adf file (that worked with HxC when I tested in WinXP) as parameter, I see the following output:

Code: Select all

bitman@a2600 $ ./hxcfloppyemulator_d2xx test.adf 
HxC Floppy Emulator : USB Floppy image file loader
Copyright (C) 2006-2009 Jean-Francois DEL NERO
This program comes with ABSOLUTELY NO WARRANTY
This is free software, and you are welcome to redistribute it
under certain conditions;

Starting HxCFloppyEmulator...
Loading test.adf
DMS_libIsValidDiskFile test.adf
non DMS file !
libIsValidDiskFile n0 return -2
ADZ_libIsValidDiskFile test.adf
non ADZ file !
libIsValidDiskFile n1 return -2
ADF_libIsValidDiskFile test.adf
ADF file !
file loader found!
ADF_libLoad_DiskFile test.adf
track file successfully loaded and encoded!
Cannot change the process priority!!!
Starting CPLDFloppyEmulator Hw manager...
Loading ftd2xx.dll...
thread ftdichiplistener
Device ok !
USB HxCFloppyEmulator :Convert track data...
USB Track 0 Size: 25736 bytes
USB Track 1 Size: 25736 bytes
USB Track 2 Size: 25736 bytes
USB Track 3 Size: 25736 bytes
USB Track 4 Size: 25736 bytes
USB Track 5 Size: 25736 bytes
USB Track 6 Size: 25736 bytes
USB Track 7 Size: 25736 bytes
USB Track 8 Size: 25736 bytes
USB Track 9 Size: 25736 bytes
USB Track 10 Size: 25736 bytes
USB Track 11 Size: 25736 bytes
USB Track 12 Size: 25736 bytes
USB Track 13 Size: 25736 bytes
USB Track 14 Size: 25736 bytes
USB Track 15 Size: 25736 bytes
USB Track 16 Size: 25736 bytes
USB Track 17 Size: 25736 bytes
USB Track 18 Size: 25736 bytes
USB Track 19 Size: 25736 bytes
USB Track 20 Size: 25736 bytes
USB Track 21 Size: 25736 bytes
USB Track 22 Size: 25736 bytes
USB Track 23 Size: 25736 bytes
USB Track 24 Size: 25736 bytes
USB Track 25 Size: 25736 bytes
USB Track 26 Size: 25736 bytes
USB Track 27 Size: 25736 bytes
USB Track 28 Size: 25736 bytes
USB Track 29 Size: 25736 bytes
USB Track 30 Size: 25736 bytes
USB Track 31 Size: 25736 bytes
USB Track 32 Size: 25736 bytes
USB Track 33 Size: 25736 bytes
USB Track 34 Size: 25736 bytes
USB Track 35 Size: 25736 bytes
USB Track 36 Size: 25736 bytes
USB Track 37 Size: 25736 bytes
USB Track 38 Size: 25736 bytes
USB Track 39 Size: 25736 bytes
USB Track 40 Size: 25736 bytes
USB Track 41 Size: 25736 bytes
USB Track 42 Size: 25736 bytes
USB Track 43 Size: 25736 bytes
USB Track 44 Size: 25736 bytes
USB Track 45 Size: 25736 bytes
USB Track 46 Size: 25736 bytes
USB Track 47 Size: 25736 bytes
USB Track 48 Size: 25736 bytes
USB Track 49 Size: 25736 bytes
USB Track 50 Size: 25736 bytes
USB Track 51 Size: 25736 bytes
USB Track 52 Size: 25736 bytes
USB Track 53 Size: 25736 bytes
USB Track 54 Size: 25736 bytes
USB Track 55 Size: 25736 bytes
USB Track 56 Size: 25736 bytes
USB Track 57 Size: 25736 bytes
USB Track 58 Size: 25736 bytes
USB Track 59 Size: 25736 bytes
USB Track 60 Size: 25736 bytes
USB Track 61 Size: 25736 bytes
USB Track 62 Size: 25736 bytes
USB Track 63 Size: 25736 bytes
USB Track 64 Size: 25736 bytes
USB Track 65 Size: 25736 bytes
USB Track 66 Size: 25736 bytes
USB Track 67 Size: 25736 bytes
USB Track 68 Size: 25736 bytes
USB Track 69 Size: 25736 bytes
USB Track 70 Size: 25736 bytes
USB Track 71 Size: 25736 bytes
USB Track 72 Size: 25736 bytes
USB Track 73 Size: 25736 bytes
USB Track 74 Size: 25736 bytes
USB Track 75 Size: 25736 bytes
USB Track 76 Size: 25736 bytes
USB Track 77 Size: 25736 bytes
USB Track 78 Size: 25736 bytes
USB Track 79 Size: 25736 bytes
Starting emulation...

Control keys : 0,1,2,3=Change select line +,-=change usb packet size q=quit
This looks fine so far, but when I restart the Amiga500 I see the normal Workbench v1.3 Logo that is shown when no Disk is inserted.

Cableling is okay since I did not change it after tests in WinXP.

Did I missed something?
any idea ?

bitman

EDIT:

hmm, I found out that it is only a permissions issue. I was able to get it work when I run the command as root user.

So the only thing I need to know is, which device do I have to make available for other system users and where must I configure it ?

Jeff
Site Admin
Posts: 8093
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: HxC on Debian Linux Lenny

Post by Jeff »

bitman wrote:
EDIT:

hmm, I found out that it is only a permissions issue. I was able to get it work when I run the command as root user.

So the only thing I need to know is, which device do I have to make available for other system users and where must I configure it ?

i don't know but look around the usb device entry point.

Post Reply