1Jan

How To Install Libusb For Pcsx2 Mac

1 Jan 2000admin
How To Install Libusb For Pcsx2 Mac 4,6/5 3007 votes

IMPORTANT: NEC/Renesas uPD720200/uPD720200A USB 3.0 users, please upgrade your drivers to version 2.1.16.0 or later if you are running Windows 7 or earlier version.uPD720201/uPD720202 users should use version 3.x (3.0.23 or later preferred). Older versions of the driver have a bug that prevents libusb from accessing devices.

PCSX2 on mac. How to use a DS3 controller? Hi guys, I'm currently running PCSX2 using a wineskin wrapper, and I was wondering what ways can I use a DS3 controller. I know libusb is how you can do it, but I am not sure how to install it onto the actual wrapper. Are there any other options? The following is a guide on how to install the latest stable version of PCSX2 on Linux. If you want to try the latest unstable builds, please refer to this guide here.

  • Overview
  • Supported Environments
  • How to use libusb on Windows

Overview

About

Jpg to pdf converter offline free download. This project adds Windows platform support to the libusb Open Source library, in order to help developers easily communicate with USB devices on Windows.Currently it supports the WinUSB and HID drivers for generic USB device access as well as the libusb-win32 and libusbK drivers.

Take note libusb-win32 and libusbK are separated projects. libusb-win32 is a Windows only project which provide libusb-0.1 API compatible library for Windows and the associated kernel driver libusb0.sys. libusbK is a Windows only project which provides a new set of API for Windows (supporting WinUSB, libusb0.sys and libusbk.sys) and kernel driver libusbK.sys.

Binary Snapshots

Pre-built binary snapshots are provided in the Sourceforge files directory along with the source code archive. For later versions like 1.0.21 release, they are also in github release page
The pre-built Windows binaries are provided AS IS for your convenience, generated for the following environments:

  • Microsoft Visual Studio and DDK/WDK → MS32(32 bit) and MS64 (64 bit) directories
  • MinGW -> MinGW32 (32 bit) and MinGW64 (64 bit) directories
Note that these archives are provided in the 7z format so you may have to install ​7-zip.

Supported Environments

Supported systems are all Windows platforms, starting with Windows XP, and including 64 bit versions, with the following exceptions:

  • Windows 2003 (Microsoft does not support WinUSB on 32bit/64bit Windows 2003)
  • Windows XP 64 bit (Microsoft does not officially support WinUSB on 64bit Windows XP)
Pcsx2

USB 3.0 Support

libusb supports USB 3.0 controllers and devices on Windows. Proprietary vendor controller drivers for Windows 7 and earlier as well as the Microsoft controller xHCI driver for Windows 8 are supported. If you are not using Windows 8 or later, you will be using vendor driver. Make sure you upgrade to the latest version of the driver if you encounter problems.

If you are using a NEC/Renesas USB 3.0 controller, such as the fairly widespread uPD720200/uPD720200A, remember to make sure that your controller drivers are version 2.1.16.0 or later. Older versions of the drivers are known to have a bug that prevents access to USB devices.

Windows 8.x/10 Support

libusb was tested under Windows 8 and Windows 8.1, for both 32 and 64 bit, and no issues were found.

.NET support

A .NET version of libusb, called LibUsbDotNet, based on libusb 1.0, has been developed by Travis Lee Robinson. If you plan to use libusb in a .NET project, make sure you check out the latest release at github.

How to use libusb on Windows

Driver Installation

If your target device is not HID, you must install a driver before you can communicate with it using libusb. Currently, this means installing one of Microsoft's WinUSB, libusb-win32 or libusbK drivers. Two options are available:

  • Recommended: Use the most recent version of Zadig, an Automated Driver Installer GUI application for WinUSB (recommended), libusb-win32 (not working well, not recommended) and libusbK (only if you hit WinUSB limitations).
  • Alternatively, if you are only interested in WinUSB, you can download the WinUSB driver files and customize the inf file for your device.
  • For version 1.0.21 or later, you can also use usbdk backend. usbdk provides another driver option for libusb Windows backend. For 1.0.21, usbdk is a compile-time option, but it becomes a runtime option from version 1.0.22 onwards, so you need to specify the usbdk backend using something like the following.
Note that if you install the libusb-win32 driver manually, you will also need to install the libusbK DLL, as all libusb-win32 accesses are done through it. One way to install/update libusbK.dll is to install libusbk development kit (libusbK-x.x.x.x-setup.exe from Sourceforge site and choose to update the system files during the installation. However the support of libusb-win32/libusb0.sys (especially the filter mode) is not working well now, therefore you should not use libusb-win32/libusb0.sys for now.

Development Considerations

The handling of composite devices under Windows is done with multiple drivers, that are children of the usbccgp.sys driver (Composite Generic Parent), as this is the default for the OS. For more info, see '2. How Windows handles a composite device' at http://forum.silabs.com/ubbthreads.php?ubb=showflat&Number=39797. If needed, it is also possible to replace the composite parent driver to access the device.

Because Windows does not provide a native poll() function, and cygwin is the only development environment that provides such a call, the use of libusb file descriptors with poll() on cygwin is NOT supported. In a future version of libusb, we should provide better handling of native Windows events, but this will require a redesign of the libusb API, so it probably won't occur before libusb 2.0.

Known Restrictions

  • WinUSB cannot be used to send an actual reset command to an USB device. This is a limitation of WinUSB.
  • WinUSB and libusbK cannot be used to set a device configuration that is different from the first one. This is a limitation of KMDF USB I/O Target.
  • WinUSB does not support multiple concurrent applications (as per the MSDN documentation).
  • WinUSB does not support isochronous transfers under Windows XP/Vista/7/8. WinUSB under Windows 8.1 or later supports isochronous transfer. Take note as of now libusb Windows only supports isochronous transfer using the usbdk backend (version 1.0.21 and later). libusb-1.0.22 adds isochronous support using libsubK driver. Future version will add isochronous transfer for WinUSB (Windows 8.1/10 or later).
  • With WinUSB, when LIBUSB_RECIPIENT_INTERFACE is used for the transfer, the WinUSB DLL forces the low byte of wIndex to the interface number, regardless of what you set it to.
    • This is not a real limitation though, please refer to the OSR threads. From Tim Roberts answer in that thread:
    • One can also argue that this is a security measure. The USB spec requires that the low byte of wIndex be set to the interface number when the recipient is set to 'interface'. Devices that use that field for other purposes are broken.
  • HID keyboards and mice cannot be accessed using the native HID driver as Windows reserves exclusive access to them.
  • Multiple HID top level collections are currently not supported (only the first top level collection will be used).
  • The HID Report Descriptors provided by libusb are recomposed and may present minor differences from the actual ones, as the Windows HID API does not allow to read them directly from the device.
  • Because there is no native poll() on Windows, the ability to return externally pollable file descriptors on Windows libusb_get_pollfd() returns an error.
  • If you use a composite device, and plan to install a libusb compatible driver for any of the interfaces, you should ensure that your driver package adds a Device Interface GUID in the registry, as proper enumeration of composite devices in libusb depends on it. This is typically achieved by adding something like the following in your inf:
    HKR,DeviceInterfaceGUIDs,0x00010000,{12345678-1234-1234-1234-123456789ABC}
    This is in particular a problem with libusb-win32's inf-wizard which will be deprecated by libusb-win32 project. Please use Zadig instead.
  • libusb0.sys and libusbk.sys access is done through the libusbK DLL, therefore, if you plan to use the libusb-win32/libusb0.sys or libusbK/libusbk.sys driver in libusb, you must have that library installed. If using a recent version of Zadig, you should not have to do anything, at it will install the library for you. However the support of libusb0.sys is not ready, therefore you should not use libusb-win32/libusb0.sys for now.

Development Links

  • How to Use WinUSB to Communicate with a USB Device & WinUSB (Winusb.sys) Installation.
    Note that the inf file given in the howto has a typo. If you don't change SourceDisksFiles.NTamd64 to SourceDisksFiles.amd64, the driver installation will fail to copy the required DLLs on 64 bit systems..
  • Microsoft's USB Core Team Blog (including resources on instrumenting the USB stack in Windows 7)
  • additionalinformation about Windows Co-Installers
06-23-2016, 01:48 AM (This post was last modified: 06-23-2016, 02:07 AM by Sonatina.)
From what I have found across the internet while trying to get PCSX2-CE running using Wineskin, many people have had a lot of difficulty getting it working. I myself could not make Wineskin work and honestly, you are unlikely to get any help using wineskin here due to the infrequency of replies and lack of anyone that actually knows what they're doing.
My solution: CrossOver
CrossOver is a PAID wine-based program by a group of people called CodeWeavers. It is much, much easier to use than Wineskin, and still cheaper and easier on your computer than programs such as Bootcamp. Besides they have an educational discount so if you're a student or teacher at any educational level, they'll take 30% off. I suggest that you start off with the 14-day trial version, however, to make sure you get everything up and running on your machine before paying anything.
How to get PCSX2 working on your Mac using CrossOver:
Step 1: Install CrossOver
Download and install CrossOver onto your Mac. I recommend that you start out with the free trial version so that you can be sure this method will get PCSX2 working on your machine. This worked for me, but PCSX2 is a finicky beasty.
Get the free trial version here:
https://www.codeweavers.com/products/cro..c/download
Get CrossOver full version here:
https://www.codeweavers.com/store2?utm_e..2Fdownload
*Note:* If you are eligible for the educational pricing, all you have to do is ask them, but you can't get the discount after you purchase the software. Ask for educational pricing by following the link below and sending a message to their sales team. Be sure to include the name of your educational institution and the nature of your affiliation (student, teacher, administrator, etc.)
https://www.codeweavers.com/about/contact-us#sales
Step 2: Download PCSX2 1.0.0 for Windows
Version 1.0.0 is the latest PCSX2 version that works using CrossOver. Get the Standalone Installer here:
http://pcsx2.net/download/category/39-pcsx2-v1-0-0.html
Step 3: Download DirectX 11
DirectX is a software designed by Microsoft that is required by PCSX2 in order to correctly display game video. DirectX is free, and while it comes standard on Windows, you can get it here:
http://getintopc.com/softwares/developme..-download/
Step 4: Install PCSX2 Using CrossOver
-Open CrossOver and select the Install a Windows Application button.
-Under 'Select an Appication to Install' type in 'PCSX2 1.0.0' and double click where it lists 'PCSX2 1.0.0 Unlisted Application' and hit Continue.
-Under 'Select Installer' click 'Choose Installer File' and choose the PCSX2 1.0.0 setup .exe that you downloaded in step 2. Click Continue.
-Under 'Select Bottle' Choose Windows Vista and name the bottle 'PCSX2 1.0.0.' Click Continue. Click Continue.
-Under 'Install and Finish,' click Install.
-A window will pop up prompting you to install PCSX2. Follow its instructions. Change the location for PCSX2 to somewhere that you will be able to find easily. Install C++ when it prompts you. Near the end of the installation process, a window will pop up claiming that dxwebinstall.exe (or dxwesetup.exe) has encountered an error and needs to close. This is okay. Just close the error window, and allow PCSX2 to finish the installation.
-After PCSX2 is installed, close the installer window and allow CrossOver to finish. Click 'Done.'
-Go to the location where you chose to install PCSX2 1.0.0. Open the PCSX2 1.0.0 folder and within it create a new folder called 'bios.' Place your legally obtained bios within this folder. For more info on bios and how to get them from your PS2, look elsewhere in this forum.
Step 5: Install DirectX 11 Using Crossover
-Open CrossOver and select the Install a Windows Application button.
-Under 'Select an Application to Install' type in 'DirectX 11' and double click where it lists 'DirectX 11 Unlisted Application' and hit Continue. Do not install DirectX 9 or any of the other Direct X applications that come up when you start to type the name.
-Under 'Select Installer' click 'Choose Installer File' and choose the Getintopc DirectX 11 .exe file that you downloaded in Step 3. Click Continue.
-Under 'Select Bottle' Choose the bottle you made in Step 4, 'PCSX2 1.0.0.' If you don't install DirectX and PCSX2 within the same bottle, your PCSX2 will not have video and only audio will play when you run an ISO. Click Continue.
-Under 'Install and Finish,' click Install.
-A window will pop up prompting you to install DirectX. Follow its instructions.
-After DirectX is installed, close the installer window and allow CrossOver to finish. Click 'Done.'
Step 6: Open PCSX2 through CrossOver
-Open Crossover and open the PCSX2 app located within your PCSX2 bottle.
-Configure PCSX2 1.0.0 using the Official Guide Video that you can find here:
https://www.youtube.com/watch?v=plo8rMytBNg
You are now ready to play your legally obtained ISO's. Happy Gaming!
*Note:* I will be recieving email notifications of any comments posted to this thread, so I should be able to respond to any questions you may have reguarding PCSX2 via CrossOver.