View Full Version : Wine and USB 2.0 Support
brokencrystal
February 14th, 2008, 11:57 PM
Does anyone know if the team is working on a version of wine with USB support? I would like to get my Microsoft Zune to work under Linux. If I could get the Zune software installed under Wine and have access to my USB 2.0 ports, this just might work... If they are not currently working on this... Can I put in a request and where?
BlackSwordD2
June 20th, 2008, 04:31 AM
here instructions of how to vote for apps in Wine
http://appdb.winehq.org/help/?sTopic=voting
Faud
June 20th, 2008, 09:17 PM
If you look at their newsletter usb support is one of the things that they are looking at working on.
Gina
March 2nd, 2009, 09:10 AM
Any advamce on this? Does anyone know? A link would be helpful - a search on USB seems to turn up pretty much everything but connecting to USB devices in Wine!
Hugh Mulqueen
December 30th, 2009, 07:03 AM
any update on this? Apearently its possible with the patches there by Alexander Morozov applied; In the following website:
http://wiki.winehq.org/USB
Anybody give it a go? I'd imagine if you have to go into the wine registry and fix and apply patches it would be fairly difficult.
-Ender
December 30th, 2009, 10:34 PM
I tried about a month ago, but unfortunately I couldn't get the patches to work.
HeadHunter00
January 10th, 2010, 02:46 PM
any update on this? Apearently its possible with the patches there by Alexander Morozov applied; In the following website:
http://wiki.winehq.org/USB
Anybody give it a go? I'd imagine if you have to go into the wine registry and fix and apply patches it would be fairly difficult.
Wonderful job. It works.
-Ender
January 11th, 2010, 09:48 PM
Was there anything special that you had to do to get it to work, or did you just follow those instructions verbatim?
Edit:
I saw that he modified the text files that need to be applied, but I can't download them as they don't seem to be up anymore. So, could you upload the copies of these two files since I can't access them:
ftp://ftp.etersoft.ru/pub/people/amorozov/0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt
ftp://ftp.etersoft.ru/pub/people/amorozov/0002-Re-generate-some-files.txt
futaris
March 16th, 2010, 11:29 PM
git clone git://source.winehq.org/git/wine.git ~/wine-git
cd ~/wine-git
sudo apt-get build-dep wine
sudo apt-get install libusb-1.0-0-dev
git branch usb-1.1.28 wine-1.1.28
git checkout usb-1.1.28
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.1.28/0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.1.28/0002-Re-generate-some-files.txt
git am 0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt 0002-Re-generate-some-files.txt
./tools/make_makefiles
./configure
make depend
make
make install
That should work.
nuffy
March 21st, 2010, 05:08 AM
Hi futaris,
I started to implement your instructions....everything was going fine until I entered 'git branch usb-1.1.28 wine-1.1.28' where I got this error message 'fatal: Not a git repository (or any of the parent directories): .git'
Where has it gone wrong??
Thanx........nuffy
tippitoes
March 28th, 2010, 05:00 PM
Hi nuffy,
I also followed futaris' instructions and had the same error message, but was able to proceed if I typed:
cd ~/wine-git
However, I got right through to the last command no problem, but for "make install" it spits out a whole page of stuff. One part being:
make [2]: Nothing to be done for 'all'.
And the last line being:
make: *** [dlls/_install_] Error 2
Any help from anyone would be greatly appreciated!
muncy
April 5th, 2010, 04:02 PM
I got the same error as tippitoes when I put in the last line BUT when I put a usb device in now I get a D drive in wine. Open this and I can read what is on the device.
In other words. It works!
joeoshawa
April 24th, 2010, 03:34 AM
First off I have noticed that alot of people cannot get samsungs pc studio working in wine. I have it working it says pc studio 3 everything seems to work however i cannot connect to the phone due to you guessed it no usb support in wine. i tried the above all all went well till make this is the error i get
make[2]: Entering directory `/home/joe/wine-git/dlls/usbhub.sys'
gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -g -O2 -o usbhub.o usbhub.c
usbhub.c:26:20: error: libusb.h: No such file or directory
usbhub.c:74: error: expected specifier-qualifier-list before ‘libusb_device’
usbhub.c: In function ‘usbhub_ioctl’:
usbhub.c:139: error: ‘uint8_t’ undeclared (first use in this function)
usbhub.c:139: error: (Each undeclared identifier is reported only once
usbhub.c:139: error: for each function it appears in.)
usbhub.c:139: error: expected ‘;’ before ‘bus_number’
usbhub.c:158: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:158: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:158: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:159: warning: implicit declaration of function ‘libusb_get_bus_number’
usbhub.c:159: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:159: error: ‘bus_number’ undeclared (first use in this function)
usbhub.c:162: error: storage size of ‘desc’ isn’t known
usbhub.c:164: warning: implicit declaration of function ‘libusb_get_device_descriptor’
usbhub.c:164: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:162: warning: unused variable ‘desc’
usbhub.c:196: error: expected ‘;’ before ‘bus_number’
usbhub.c:210: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:210: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:210: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:211: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘usbhub_internal_ioctl’:
usbhub.c:327: error: ‘libusb_device_handle’ undeclared (first use in this function)
usbhub.c:327: error: ‘husb’ undeclared (first use in this function)
usbhub.c:331: warning: implicit declaration of function ‘libusb_open’
usbhub.c:331: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:338: warning: implicit declaration of function ‘libusb_set_configuration’
usbhub.c:344: warning: implicit declaration of function ‘libusb_get_active_config_descriptor’
usbhub.c:344: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:354: error: dereferencing pointer to incomplete type
usbhub.c:355: error: dereferencing pointer to incomplete type
usbhub.c:356: error: dereferencing pointer to incomplete type
usbhub.c:357: error: dereferencing pointer to incomplete type
usbhub.c:359: error: dereferencing pointer to incomplete type
usbhub.c:363: error: dereferencing pointer to incomplete type
usbhub.c:365: error: dereferencing pointer to incomplete type
usbhub.c:367: error: dereferencing pointer to incomplete type
usbhub.c:369: error: dereferencing pointer to incomplete type
usbhub.c:371: error: dereferencing pointer to incomplete type
usbhub.c:372: error: dereferencing pointer to incomplete type
usbhub.c:377: warning: implicit declaration of function ‘libusb_free_config_descriptor’
usbhub.c:380: warning: implicit declaration of function ‘libusb_close’
usbhub.c:392: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:396: warning: implicit declaration of function ‘libusb_claim_interface’
usbhub.c:400: warning: implicit declaration of function ‘libusb_set_interface_alt_setting’
usbhub.c:403: warning: implicit declaration of function ‘libusb_release_interface’
usbhub.c:422: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:431: warning: implicit declaration of function ‘libusb_bulk_transfer’
usbhub.c:473: error: storage size of ‘desc’ isn’t known
usbhub.c:475: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:473: warning: unused variable ‘desc’
usbhub.c:492: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:496: error: dereferencing pointer to incomplete type
usbhub.c:497: error: dereferencing pointer to incomplete type
usbhub.c:497: error: dereferencing pointer to incomplete type
usbhub.c:498: error: dereferencing pointer to incomplete type
usbhub.c:500: error: dereferencing pointer to incomplete type
usbhub.c:504: error: dereferencing pointer to incomplete type
usbhub.c:505: error: dereferencing pointer to incomplete type
usbhub.c:505: error: dereferencing pointer to incomplete type
usbhub.c:506: error: dereferencing pointer to incomplete type
usbhub.c:508: error: dereferencing pointer to incomplete type
usbhub.c:512: error: dereferencing pointer to incomplete type
usbhub.c:513: error: dereferencing pointer to incomplete type
usbhub.c:514: error: dereferencing pointer to incomplete type
usbhub.c:525: warning: ISO C90 forbids mixed declarations and code
usbhub.c:527: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:529: warning: implicit declaration of function ‘libusb_get_string_descriptor’
usbhub.c:545: warning: ISO C90 forbids mixed declarations and code
usbhub.c:556: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:558: warning: implicit declaration of function ‘libusb_control_transfer’
usbhub.c:559: error: ‘LIBUSB_REQUEST_GET_STATUS’ undeclared (first use in this function)
usbhub.c:575: warning: ISO C90 forbids mixed declarations and code
usbhub.c:589: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘create_root_hub_device’:
usbhub.c:1226: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘enum_reg_usb_devices’:
usbhub.c:1316: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘register_usb_device’:
usbhub.c:1406: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘start_device_drivers’:
usbhub.c:1442: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘enum_usb_devices’:
usbhub.c:1464: error: ‘libusb_device’ undeclared (first use in this function)
usbhub.c:1464: error: ‘devs’ undeclared (first use in this function)
usbhub.c:1464: error: ‘dev’ undeclared (first use in this function)
usbhub.c:1464: warning: left-hand operand of comma expression has no effect
usbhub.c:1465: error: storage size of ‘desc’ isn’t known
usbhub.c:1465: warning: ISO C90 forbids mixed declarations and code
usbhub.c:1483: warning: implicit declaration of function ‘libusb_init’
usbhub.c:1488: warning: implicit declaration of function ‘libusb_get_device_list’
usbhub.c:1490: warning: implicit declaration of function ‘libusb_exit’
usbhub.c:1500: warning: implicit declaration of function ‘libusb_ref_device’
usbhub.c:1501: warning: implicit declaration of function ‘libusb_get_device_address’
usbhub.c:1509: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:1512: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:1520: warning: implicit declaration of function ‘libusb_free_device_list’
usbhub.c:1465: warning: unused variable ‘desc’
make[2]: *** [usbhub.o] Error 1
make[2]: Leaving directory `/home/joe/wine-git/dlls/usbhub.sys'
make[1]: *** [usbhub.sys] Error 2
make[1]: Leaving directory `/home/joe/wine-git/dlls'
make: *** [dlls] Error 2
now i had a look around and i noticed the first error libusb.h someone mentioned that it is usb.h is the file it is looking for. I am still a newbie so sorry for any newbie errors i have made but could someone please help me out here i was exstaic to learn the program works when you make sure you download the one for xp it would be perfect if i could get usb support working in wine and delete winblows altogether this is the only thing stopping me. I still cannot get the sph-m540 working in linux but if the t456 works i can just transfer the memory card. thanks in advance.
joeoshawa
April 25th, 2010, 02:05 PM
I really need this to work does anyone have any ideas please.
joeoshawa
May 2nd, 2010, 07:32 AM
Upgrade to ubuntu 10.4 haven't checked if wine works but when i plug the phone in it automatically connects and downloads all the pics. Seems 10.4 comes with a program that does it. Great job btw. Now if i could only get someone to respond to my postings life would be grand. At least a read your crappy posting you suck would be a responce.
muncy
May 2nd, 2010, 07:59 AM
Glad you got it sorted. I know it is frustrating when nobody replies to your post but I didn't want to get your hopes up by seeing that you had a reply then finding it just said 'Sorry - no idea'
snnicky
June 22nd, 2010, 03:44 PM
I tried update the patches made by Alexander Morozov for wine 1.1.28 to be applicable to wine 1.2 rc4. That compiles for me. Please try the patch http://snnicky.com/wine-1.2-rc4/0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt. I combined 2 Alexander's patches into one.
Declan Moriarty
July 6th, 2010, 12:15 PM
I have Just installed Wine version 1.1.42 Beta on Ubuntu 10.04 and USB 2.0 works. I put a USB Stick in and it was assigned the G: drive and Notepad was able to access the files. I haven't done any patches to Wine.
loveice
July 28th, 2010, 01:11 AM
First off I have noticed that alot of people cannot get samsungs pc studio working in wine. I have it working it says pc studio 3 everything seems to work however i cannot connect to the phone due to you guessed it no usb support in wine. i tried the above all all went well till make this is the error i get
make[2]: Entering directory `/home/joe/wine-git/dlls/usbhub.sys'
gcc -m32 -c -I. -I. -I../../include -I../../include -D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wdeclaration-after-statement -Wwrite-strings -Wtype-limits -Wpointer-arith -g -O2 -o usbhub.o usbhub.c
usbhub.c:26:20: error: libusb.h: No such file or directory
usbhub.c:74: error: expected specifier-qualifier-list before ‘libusb_device’
usbhub.c: In function ‘usbhub_ioctl’:
usbhub.c:139: error: ‘uint8_t’ undeclared (first use in this function)
usbhub.c:139: error: (Each undeclared identifier is reported only once
usbhub.c:139: error: for each function it appears in.)
usbhub.c:139: error: expected ‘;’ before ‘bus_number’
usbhub.c:158: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:158: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:158: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:159: warning: implicit declaration of function ‘libusb_get_bus_number’
usbhub.c:159: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:159: error: ‘bus_number’ undeclared (first use in this function)
usbhub.c:162: error: storage size of ‘desc’ isn’t known
usbhub.c:164: warning: implicit declaration of function ‘libusb_get_device_descriptor’
usbhub.c:164: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:162: warning: unused variable ‘desc’
usbhub.c:196: error: expected ‘;’ before ‘bus_number’
usbhub.c:210: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:210: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:210: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:211: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘usbhub_internal_ioctl’:
usbhub.c:327: error: ‘libusb_device_handle’ undeclared (first use in this function)
usbhub.c:327: error: ‘husb’ undeclared (first use in this function)
usbhub.c:331: warning: implicit declaration of function ‘libusb_open’
usbhub.c:331: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:338: warning: implicit declaration of function ‘libusb_set_configuration’
usbhub.c:344: warning: implicit declaration of function ‘libusb_get_active_config_descriptor’
usbhub.c:344: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:354: error: dereferencing pointer to incomplete type
usbhub.c:355: error: dereferencing pointer to incomplete type
usbhub.c:356: error: dereferencing pointer to incomplete type
usbhub.c:357: error: dereferencing pointer to incomplete type
usbhub.c:359: error: dereferencing pointer to incomplete type
usbhub.c:363: error: dereferencing pointer to incomplete type
usbhub.c:365: error: dereferencing pointer to incomplete type
usbhub.c:367: error: dereferencing pointer to incomplete type
usbhub.c:369: error: dereferencing pointer to incomplete type
usbhub.c:371: error: dereferencing pointer to incomplete type
usbhub.c:372: error: dereferencing pointer to incomplete type
usbhub.c:377: warning: implicit declaration of function ‘libusb_free_config_descriptor’
usbhub.c:380: warning: implicit declaration of function ‘libusb_close’
usbhub.c:392: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:396: warning: implicit declaration of function ‘libusb_claim_interface’
usbhub.c:400: warning: implicit declaration of function ‘libusb_set_interface_alt_setting’
usbhub.c:403: warning: implicit declaration of function ‘libusb_release_interface’
usbhub.c:422: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:431: warning: implicit declaration of function ‘libusb_bulk_transfer’
usbhub.c:473: error: storage size of ‘desc’ isn’t known
usbhub.c:475: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:473: warning: unused variable ‘desc’
usbhub.c:492: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:496: error: dereferencing pointer to incomplete type
usbhub.c:497: error: dereferencing pointer to incomplete type
usbhub.c:497: error: dereferencing pointer to incomplete type
usbhub.c:498: error: dereferencing pointer to incomplete type
usbhub.c:500: error: dereferencing pointer to incomplete type
usbhub.c:504: error: dereferencing pointer to incomplete type
usbhub.c:505: error: dereferencing pointer to incomplete type
usbhub.c:505: error: dereferencing pointer to incomplete type
usbhub.c:506: error: dereferencing pointer to incomplete type
usbhub.c:508: error: dereferencing pointer to incomplete type
usbhub.c:512: error: dereferencing pointer to incomplete type
usbhub.c:513: error: dereferencing pointer to incomplete type
usbhub.c:514: error: dereferencing pointer to incomplete type
usbhub.c:525: warning: ISO C90 forbids mixed declarations and code
usbhub.c:527: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:529: warning: implicit declaration of function ‘libusb_get_string_descriptor’
usbhub.c:545: warning: ISO C90 forbids mixed declarations and code
usbhub.c:556: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:558: warning: implicit declaration of function ‘libusb_control_transfer’
usbhub.c:559: error: ‘LIBUSB_REQUEST_GET_STATUS’ undeclared (first use in this function)
usbhub.c:575: warning: ISO C90 forbids mixed declarations and code
usbhub.c:589: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘create_root_hub_device’:
usbhub.c:1226: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘enum_reg_usb_devices’:
usbhub.c:1316: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘register_usb_device’:
usbhub.c:1406: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘start_device_drivers’:
usbhub.c:1442: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c: In function ‘enum_usb_devices’:
usbhub.c:1464: error: ‘libusb_device’ undeclared (first use in this function)
usbhub.c:1464: error: ‘devs’ undeclared (first use in this function)
usbhub.c:1464: error: ‘dev’ undeclared (first use in this function)
usbhub.c:1464: warning: left-hand operand of comma expression has no effect
usbhub.c:1465: error: storage size of ‘desc’ isn’t known
usbhub.c:1465: warning: ISO C90 forbids mixed declarations and code
usbhub.c:1483: warning: implicit declaration of function ‘libusb_init’
usbhub.c:1488: warning: implicit declaration of function ‘libusb_get_device_list’
usbhub.c:1490: warning: implicit declaration of function ‘libusb_exit’
usbhub.c:1500: warning: implicit declaration of function ‘libusb_ref_device’
usbhub.c:1501: warning: implicit declaration of function ‘libusb_get_device_address’
usbhub.c:1509: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:1512: error: ‘struct DeviceInstance’ has no member named ‘dev’
usbhub.c:1520: warning: implicit declaration of function ‘libusb_free_device_list’
usbhub.c:1465: warning: unused variable ‘desc’
make[2]: *** [usbhub.o] Error 1
make[2]: Leaving directory `/home/joe/wine-git/dlls/usbhub.sys'
make[1]: *** [usbhub.sys] Error 2
make[1]: Leaving directory `/home/joe/wine-git/dlls'
make: *** [dlls] Error 2
now i had a look around and i noticed the first error libusb.h someone mentioned that it is usb.h is the file it is looking for. I am still a newbie so sorry for any newbie errors i have made but could someone please help me out here i was exstaic to learn the program works when you make sure you download the one for xp it would be perfect if i could get usb support working in wine and delete winblows altogether this is the only thing stopping me. I still cannot get the sph-m540 working in linux but if the t456 works i can just transfer the memory card. thanks in advance.
diff --git a/dlls/usbhub.sys/usbhub.c b/dlls/usbhub.sys/usbhub.c
index 8568b9c..3454473 100644
--- a/dlls/usbhub.sys/usbhub.c
+++ b/dlls/usbhub.sys/usbhub.c
@@ -22,6 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
+#undef HAVE_LIBUSB_H
#ifdef HAVE_LIBUSB_H
#include <libusb.h>
#elif defined(HAVE_USB_H)
MrVas
November 7th, 2010, 12:25 PM
Thank you all for the hints to get me where I needed to get (Wine with USB support). The notes below are based on building Wine on a virtual 32-bit Ubuntu 9.10 (Karmic Koala) system running in a VirtualBox session on 64-bit Ubuntu 10.04 (Lucid Lynx).
cd ~
mkdir wine-git
cd wine-git
sudo apt-get build-dep wine
git clone git://source.winehq.org/git/wine.git .
git checkout wine-1.3.3
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.3.3/*.txt
git am *.txt
You may have noticed that I skipped installing Ubuntu's libusb-1.0.0-dev package. I did this on purpose, since that package is old and does not work with Wine/USB patches provided by Alexander Morozov. Download the latest libusb package and build it from scratch:mkdir ~/libusb
cd ~/libusb
wget http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2/download
tar jxvf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
./configure
./make
sudo ./make install
Create symbolic links for newly installed libusb:
sudo ln -s /usr/local/lib/libusb-1* /lib
Now you should be able to start building the Makefile for Wine:
cd ~/wine-git
./tools/make_makefiles
./configure
Verify that libusb is being used:
grep libusb config.log
..and now build Wine.
make depend && make
Enjoy!!!
Vas
PS. Here are other links that helped me:
http://forum.winehq.org/viewtopic.php?t=9663&view=previous
http://forum.winehq.org/viewtopic.php?t=9463
http://wiki.winehq.org/WineOn64bit
sysghost
November 7th, 2010, 08:24 PM
Thank you all for the hints to get me where I needed to get (Wine with USB support). The notes below are based on building Wine on a virtual 32-bit Ubuntu 9.10 (Karmic Koala) system running in a VirtualBox session on 64-bit Ubuntu 10.04 (Lucid Lynx).
cd ~
mkdir wine-git
cd wine-git
sudo apt-get build-dep wine
git clone git://source.winehq.org/git/wine.git .
git checkout wine-1.3.3
wget ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.3.3/*.txt
git am *.txt
You may have noticed that I skipped installing Ubuntu's libusb-1.0.0-dev package. I did this on purpose, since that package is old and does not work with Wine/USB patches provided by Alexander Morozov. Download the latest libusb package and build it from scratch:mkdir ~/libusb
cd ~/libusb
wget http://sourceforge.net/projects/libusb/files/libusb-1.0/libusb-1.0.8/libusb-1.0.8.tar.bz2/download
tar jxvf libusb-1.0.8.tar.bz2
cd libusb-1.0.8
./configure
./make
sudo ./make install
Create symbolic links for newly installed libusb:
sudo ln -s /usr/local/lib/libusb-1* /lib
Now you should be able to start building the Makefile for Wine:
cd ~/wine-git
./tools/make_makefiles
./configure
Verify that libusb is being used:
grep libusb config.log
..and now build Wine.
make depend && make
Enjoy!!!
Vas
PS. Here are other links that helped me:
http://forum.winehq.org/viewtopic.php?t=9663&view=previous
http://forum.winehq.org/viewtopic.php?t=9463
http://wiki.winehq.org/WineOn64bit
A few minor corrections / spellings:
wget from sourceforge: remove the "/download" at the end. Else wget catches the wrong content.
"./make" should be "make"
libusb: no need to create symbolic links, they're already there.
Otherwise a nice guide. Thanks.
BushMissile
January 4th, 2011, 12:55 PM
I hate to sound like a newbie but do I need to run a "make install" after MrVas's instructions? Or does the "make depend && make" command cover that?
r2ramos
January 16th, 2011, 03:53 PM
Followed the instructions and installed the patched wine via playonlinux according to this (http://www.playonlinux.com/en/topic-2273-Custom_wine_version_a_PlayonLinux.html). POL recognizes the wine version (supposedly patched). Still dont know how to use usb; cant see the device im plugging with wine.
Any help?
philnice
January 18th, 2011, 01:36 AM
I have compiled wine 1.3.10 with usb patches to use with my hercules mp3e2 console and still, i don't know how to check wether or not is working.
I beleive there are a few things to be done from this point, but for this we 'll need some help.
So, ubuntu gurus, bring the light to us..!
marin123
January 21st, 2011, 12:43 PM
ok, so i followed build instructions (a bit altered) and successfully built wine 1.3.11 with usb patches.
the problem is that every time i run program in wine i get error message that wine failed to load Usbhub.sys, but i have the right path in registry and a file in c drive. i want to try load windows' usbhub.sys but i have 64 bit windows and get error message that 64 bit app cannot be loaded.
now i'm waiting for a friend to send me proper files and then i will see what happens.
after i get usbhub working, i will need to work on driver location for mass storage.
cross your fingers guys :) and i hope someone will get inspired by this and make something ridiculous, like making this to work :D
philnice
January 21st, 2011, 03:32 PM
marin123, good luck! :D i only know a few things, perhaps you need to load 32bit version of the sys. file you need first? just a thought. Also, any suggestion, on a way to check if my installation is work or not? hercules mp3e2 does give me some error report in the log file viewer, but nothing from wine.
Lastly, getting this to work isn't an easy task. Otherwise, there would be packages precompiled for every wine version available. Many guys around here had put a lot of effort on this, but with no luck.
It is up to wine developers to finally deal with amorozov's patches or whatever, and add usb support. I think they keep rescheduling this.
philnice
January 25th, 2011, 09:13 PM
Well, all of you who seeking for usb support in wine, may want to read the release criteria for version 1.4, and smile...! :D
http://wiki.winehq.org/WineReleaseCriteria
marin123
January 26th, 2011, 08:56 AM
Well, all of you who seeking for usb support in wine, may want to read the release criteria for version 1.4, and smile...! :D
http://wiki.winehq.org/WineReleaseCriteria
i have already read that, but we will have to wait and see will it happen and will it work.
if it does, then:
sudo apt-get install wine1.4
sudo apt-get remove windows
:D
philnice
January 26th, 2011, 01:12 PM
marin123 wrote:
"sudo apt-get install wine1.4
sudo apt-get remove windows" :lolflag:
Seriously, perhaps this could be the main reason for any delays in wine - usb support...
Evil Wayz
May 23rd, 2011, 02:20 PM
git clone git://source.winehq.org/git/wine.git .
git checkout wine-1.3.3
When I get to here, this is what happens;
wolf@server:~/wine-git$ git clone git://source.winehq.org/git/wine.git .
Cloning into ....
source.winehq.org[0: 209.46.25.134]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
wolf@server:~/wine-git$ git clone git://source.winehq.org/git/wine.git
Cloning into wine...
source.winehq.org[0: 209.46.25.134]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
wolf@server:~/wine-git$ git checkout wine-1.3.3
fatal: Not a git repository (or any of the parent directories): .git
philnice
May 23rd, 2011, 04:35 PM
When I get to here, this is what happens;
wolf@server:~/wine-git$ git clone git://source.winehq.org/git/wine.git .
Cloning into ....
source.winehq.org[0: 209.46.25.134]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
wolf@server:~/wine-git$ git clone git://source.winehq.org/git/wine.git
Cloning into wine...
source.winehq.org[0: 209.46.25.134]: errno=Connection refused
fatal: unable to connect a socket (Connection refused)
wolf@server:~/wine-git$ git checkout wine-1.3.3
fatal: Not a git repository (or any of the parent directories): .git
This is what you entered above: git clone git://source.winehq.org/git/wine.git .
And this is how it should be: git clone git://source.winehq.org/git/wine.git ~/wine-git
vBulletin® v3.8.4, Copyright ©2000-2012, Jelsoft Enterprises Ltd.