Compiling Wine with USB suport

Open forum for end-user questions about Wine. Before asking questions, check out the Wiki as a first step.
Forum Rules
Locked
bindkeeper
Newbie
Newbie
Posts: 1
Joined: Sat Jun 26, 2010 10:29 am

Compiling Wine with USB suport

Post by bindkeeper »

Hi,
I want to compile wine with USB support so I could use my AverTV Volar GO on Linux.

I am using Ubuntu 10.4 Lucid Lynx.

I started with the http://wiki.winehq.org/USB.

This are the steps that I did:
1)installed libcurl3-dev and curl.
2)downloaded and compiled git 1.7.1 from source.
3)cloned wine.
4)downloaded the patches from "ftp://ftp.etersoft.ru/pub/people/amorozov/usb/1.1.28/" into wine-git directory.
4)then "git am *.txt" returned with the following error:

Code: Select all

	Applying: Add support of native Windows drivers for USB tokens.
	error: patch failed: configure.ac:61
	error: configure.ac: patch does not apply
	error: patch failed: dlls/mountmgr.sys/device.c:860
	error: dlls/mountmgr.sys/device.c: patch does not apply
	error: patch failed: dlls/mountmgr.sys/mountmgr.c:352
	error: dlls/mountmgr.sys/mountmgr.c: patch does not apply
	error: patch failed: dlls/ntoskrnl.exe/Makefile.in:4
	error: dlls/ntoskrnl.exe/Makefile.in: patch does not apply
	error: patch failed: dlls/ntoskrnl.exe/ntoskrnl.c:121
	error: dlls/ntoskrnl.exe/ntoskrnl.c: patch does not apply
	error: patch failed: dlls/ntoskrnl.exe/ntoskrnl.exe.spec:323
	error: dlls/ntoskrnl.exe/ntoskrnl.exe.spec: patch does not apply
	error: dlls/usbd.sys/Makefile.in: already exists in index
	error: dlls/usbd.sys/usbd.c: already exists in index
	error: dlls/usbd.sys/usbd.sys.spec: already exists in index
	error: patch failed: include/cfgmgr32.h:97
	error: include/cfgmgr32.h: patch does not apply
	error: patch failed: include/ddk/usb.h:82
	error: include/ddk/usb.h: patch does not apply
	error: patch failed: include/ddk/wdm.h:1014
	error: include/ddk/wdm.h: patch does not apply
	error: patch failed: server/protocol.def:3194
	error: server/protocol.def: patch does not apply
	error: patch failed: tools/wine.inf.in:79
	error: tools/wine.inf.in: patch does not apply
	Patch failed at 0001 Add support of native Windows drivers for USB tokens.
	When you have resolved this problem run "git am --resolved".
	If you would prefer to skip this patch, instead run "git am --skip".
	To restore the original branch and stop patching run "git am --abort".	
	
5)installed libusb-1.0-0-dev.
6)foundthis postwith similar problem
did :

Code: Select all

 git reset --hard 578aeb87b59b04a85db6e8e545a60 
7) did git am *.txt again got the same error:

Code: Select all

	Applying: Add support of native Windows drivers for USB tokens.
	error: patch failed: dlls/mountmgr.sys/device.c:860
	error: dlls/mountmgr.sys/device.c: patch does not apply
	error: patch failed: include/ddk/ntddk.h:107
	error: include/ddk/ntddk.h: patch does not apply
	Patch failed at 0001 Add support of native Windows drivers for USB tokens.
	When you have resolved this problem run "git am --resolved".
	If you would prefer to skip this patch, instead run "git am --skip".
	To restore the original branch and stop patching run "git am --abort".
	
installed build-dep wine.
did "git branch usb-1.1.28 wine-1.1.28" and "git checkout usb-1.1.28", saw it on http://ubuntuforums.org/showthread.php?t=697238
8)did

Code: Select all

git am 0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt 0002-Re-generate-some-files.txt
and still got the :

Code: Select all

	Applying: Add support of native Windows drivers for USB tokens.
	error: patch failed: dlls/mountmgr.sys/device.c:860
	error: dlls/mountmgr.sys/device.c: patch does not apply
	error: patch failed: include/ddk/ntddk.h:107
	error: include/ddk/ntddk.h: patch does not apply
	Patch failed at 0001 Add support of native Windows drivers for USB tokens.
	When you have resolved this problem run "git am --resolved".
	If you would prefer to skip this patch, instead run "git am --skip".
	To restore the original branch and stop patching run "git am --abort".
	
Why is the "git am *.txt" command fails?
Thanks in advance.
James McKenzie

Compiling Wine with USB suport

Post by James McKenzie »

bindkeeper wrote:
Hi,
I want to compile wine with USB support so I could use my AverTV Volar GO (http://www.avermedia.com/avertv/Product ... spx?Id=495) on Linux.

I am using Ubuntu 10.4 Lucid Lynx.

I started with the http://wiki.winehq.org/USB.


Why is the "git am *.txt" command fails?
Thanks in advance.

The patch needs to be updated to current code. It was written for Wine
1.1.28, which was some time ago. (Around August of 2009). There have
been hundreds, if not thousands of code updates since then.

James McKenzie
Locked