Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 45

Thread: Wine and USB 2.0 Support

  1. #11
    Join Date
    Mar 2010
    Beans
    1

    Re: Wine and USB 2.0 Support

    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!

  2. #12
    Join Date
    Oct 2009
    Beans
    22

    Re: Wine and USB 2.0 Support

    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!

  3. #13
    Join Date
    Mar 2010
    Beans
    44

    Re: Wine and USB 2.0 Support

    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.
    Gigabyte GA-M61PME-S2P
    MD Athlon(tm) 64 X2 Dual Core Processor 5200+, 2700 MHz
    nVidia GeForce 8400 GS
    Hitachi HDT72101 1tb hdd

  4. #14
    Join Date
    Mar 2010
    Beans
    44

    Re: Wine and USB 2.0 Support

    I really need this to work does anyone have any ideas please.
    Gigabyte GA-M61PME-S2P
    MD Athlon(tm) 64 X2 Dual Core Processor 5200+, 2700 MHz
    nVidia GeForce 8400 GS
    Hitachi HDT72101 1tb hdd

  5. #15
    Join Date
    Mar 2010
    Beans
    44

    Re: Wine and USB 2.0 Support

    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.
    Gigabyte GA-M61PME-S2P
    MD Athlon(tm) 64 X2 Dual Core Processor 5200+, 2700 MHz
    nVidia GeForce 8400 GS
    Hitachi HDT72101 1tb hdd

  6. #16
    Join Date
    Oct 2009
    Beans
    22

    Re: Wine and USB 2.0 Support

    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'

  7. #17
    Join Date
    Jun 2010
    Beans
    2

    Re: Wine and USB 2.0 Support

    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...USB-tokens.txt. I combined 2 Alexander's patches into one.

  8. #18
    Join Date
    Aug 2006
    Beans
    33

    Re: Wine and USB 2.0 Support

    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.

  9. #19
    Join Date
    Jul 2010
    Beans
    1

    Re: Wine and USB 2.0 Support

    Quote Originally Posted by joeoshawa View Post
    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)

  10. #20
    Join Date
    Apr 2010
    Beans
    11

    Re: Wine and USB 2.0 Support

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

    Code:
    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:
    Code:
    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:
    Code:
    sudo ln -s /usr/local/lib/libusb-1* /lib
    Now you should be able to start building the Makefile for Wine:
    Code:
    cd ~/wine-git
    ./tools/make_makefiles
    ./configure
    Verify that libusb is being used:
    Code:
    grep libusb config.log
    ..and now build Wine.
    Code:
    make depend && make
    Enjoy!!!

    Vas

    PS. Here are other links that helped me:

    http://forum.winehq.org/viewtopic.ph...&view=previous
    http://forum.winehq.org/viewtopic.php?t=9463
    http://wiki.winehq.org/WineOn64bit

Page 2 of 5 FirstFirst 1234 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •