Version USB - Soft sur linux

General discussion forum - for all that doesn't fit in any other category.
Post Reply
Giants92
Posts: 156
Joined: Mon Oct 30, 2006 1:19 pm
Location: 78
Contact:

Version USB - Soft sur linux

Post by Giants92 »

Yup,

Je me rappel d'un post ou on avait déja posé la question mais je ne le trouve plus.
Donc on la repose :

Serait t'il possible d'avoir une version du soft pour le chargement des disquettes pour la version USB sous linux ?

Je viens d'essayer avec wine sous ubuntu, il ne detecte pas de driver pour le controluer ftdi, logique
On recupere le driver pour windows et on le copie dans l'arbo windows recreer par wine
On recupere au passage le driver pour linux et on l'install comme precisé dans la doc (avec une petite variante pour la ligne dans fstab)

sous linux, le controleur est bien reconnue (usbview et lsusb c'est nickel)
Par contre... avec wine, rien a faire.

Cela aurait trop beau, Zut
___________

_________/ Fondateur \___________
[AmigaMOD - Ordinosaure - CPC-Hardware]
[___http://sasfepu78.dyndns.org/_____]
Jeff
Site Admin
Posts: 8094
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Re: Version USB - Soft sur linux

Post by Jeff »

Giants92 wrote:Yup,

Je me rappel d'un post ou on avait déja posé la question mais je ne le trouve plus.
Donc on la repose :

Serait t'il possible d'avoir une version du soft pour le chargement des disquettes pour la version USB sous linux ?

Je viens d'essayer avec wine sous ubuntu, il ne detecte pas de driver pour le controluer ftdi, logique
On recupere le driver pour windows et on le copie dans l'arbo windows recreer par wine
On recupere au passage le driver pour linux et on l'install comme precisé dans la doc (avec une petite variante pour la ligne dans fstab)

sous linux, le controleur est bien reconnue (usbview et lsusb c'est nickel)
Par contre... avec wine, rien a faire.

Cela aurait trop beau, Zut
L'application a déjà été porté pour linux, du moins en ligne de commande :

download les sources : https://hxc2001.com/floppy_drive_emulat ... ft_src.zip
va dans linux, extrait/compiles et install libftdi.tar.gz puis compiles l'application et voila !
Giants92
Posts: 156
Joined: Mon Oct 30, 2006 1:19 pm
Location: 78
Contact:

Post by Giants92 »

Yup

Pas de soucie particulier pour compiler libftdi
Par contre sur l'appli HxC, impossible d'avoir une sortie correct au niveau du make

...
.....
........
/usr/local/lib/libftdi.so.1: undefined reference to `usb_release_interface'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_strerror'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_find_busses'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_claim_interface'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_find_devices'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_set_configuration'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_get_busses'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_bulk_write'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_init'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_control_msg'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_get_string_simple'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_bulk_read'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_open'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_detach_kernel_driver_np'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_close'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [hxcfloppyemulator] Erreur 1


ls -l /usr/local/lib/libftdi.so.1
lrwxrwxrwx 1 root root 17 2009-01-04 11:09 /usr/local/lib/libftdi.so.1 -> libftdi.so.1.14.0


J'ai zapé un truc ?
___________

_________/ Fondateur \___________
[AmigaMOD - Ordinosaure - CPC-Hardware]
[___http://sasfepu78.dyndns.org/_____]
Jeff
Site Admin
Posts: 8094
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

Giants92 wrote:Yup

Pas de soucie particulier pour compiler libftdi
Par contre sur l'appli HxC, impossible d'avoir une sortie correct au niveau du make

...
.....
........
/usr/local/lib/libftdi.so.1: undefined reference to `usb_release_interface'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_strerror'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_find_busses'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_claim_interface'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_find_devices'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_set_configuration'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_get_busses'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_bulk_write'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_init'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_control_msg'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_get_string_simple'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_bulk_read'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_open'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_detach_kernel_driver_np'
/usr/local/lib/libftdi.so.1: undefined reference to `usb_close'
collect2: ld a retourné 1 code d'état d'exécution
make: *** [hxcfloppyemulator] Erreur 1


ls -l /usr/local/lib/libftdi.so.1
lrwxrwxrwx 1 root root 17 2009-01-04 11:09 /usr/local/lib/libftdi.so.1 -> libftdi.so.1.14.0


J'ai zapé un truc ?

rajoutes -lusb a la ligne "LDFLAGS=-lc -lm -ldl -lpthread" dans le makefile pour voir.
c'est quoi comme distrib ? et version de noyau?
Giants92
Posts: 156
Joined: Mon Oct 30, 2006 1:19 pm
Location: 78
Contact:

Post by Giants92 »

une ubuntu toute fraiche avec un noyau 2.6.27-9


/home/giants/Documents/HxC_Floppy_Emulator_soft_src/linux# grep LDFLAGS Makefile
LDFLAGS=-lc -lm -ldl -lpthread -lusb
$(CC) -o $@ $^ $(LDFLAGS)
/home/giants/Documents/HxC_Floppy_Emulator_soft_src/linux# make all
make: Rien à faire pour « all ».


/home/giants/Documents/HxC_Floppy_Emulator_soft_src/linux# ./hxcfloppyemulator
./hxcfloppyemulator: error while loading shared libraries: libcapsimage.so.2: cannot open shared object file: No such file or directory

cp libcapsimage.so.2.0 libcapsimage.so.2

ls -l libcapsimage.so.2
-rw-r--r-- 1 root root 53456 2009-01-04 18:04 libcapsimage.so.2

# ./hxcfloppyemulator
./hxcfloppyemulator: error while loading shared libraries: libcapsimage.so.2: cannot open shared object file: No such file or directory
___________

_________/ Fondateur \___________
[AmigaMOD - Ordinosaure - CPC-Hardware]
[___http://sasfepu78.dyndns.org/_____]
Jeff
Site Admin
Posts: 8094
Joined: Fri Oct 20, 2006 12:12 am
Location: Paris
Contact:

Post by Jeff »

Giants92 wrote:une ubuntu toute fraiche avec un noyau 2.6.27-9


/home/giants/Documents/HxC_Floppy_Emulator_soft_src/linux# grep LDFLAGS Makefile
LDFLAGS=-lc -lm -ldl -lpthread -lusb
$(CC) -o $@ $^ $(LDFLAGS)
/home/giants/Documents/HxC_Floppy_Emulator_soft_src/linux# make all
make: Rien à faire pour « all ».


/home/giants/Documents/HxC_Floppy_Emulator_soft_src/linux# ./hxcfloppyemulator
./hxcfloppyemulator: error while loading shared libraries: libcapsimage.so.2: cannot open shared object file: No such file or directory

cp libcapsimage.so.2.0 libcapsimage.so.2

ls -l libcapsimage.so.2
-rw-r--r-- 1 root root 53456 2009-01-04 18:04 libcapsimage.so.2

# ./hxcfloppyemulator
./hxcfloppyemulator: error while loading shared libraries: libcapsimage.so.2: cannot open shared object file: No such file or directory
il faut placer cette lib (libcapsimage.so.2) dans /lib.

et sous ubuntu executes l'application avec sudo sinon tu risques d'avoir un pb (problème d'autorisation d'accès a l'usb)
Giants92
Posts: 156
Joined: Mon Oct 30, 2006 1:19 pm
Location: 78
Contact:

Post by Giants92 »

Yup,

J'ai pas mis le prompt mais je suis connecté en tant que root

Effectivement, en plaçant la librairie caps dans le fs /lib cha marche mieuu :)

HxC Floppy Emulator
Starting HxCFloppyEmulator...
Syntax: ./hxcfloppyemulator [image-file]


Je viens tous juste d'essayer, ca fonctionne NICKEL
Merci m'iseur !
___________

_________/ Fondateur \___________
[AmigaMOD - Ordinosaure - CPC-Hardware]
[___http://sasfepu78.dyndns.org/_____]
Post Reply