[Wine] Compiling Wine with USB suport

bindkeeper wineforum-user at winehq.org
Sat Jun 26 11:03:17 CDT 2010


Hi,
I want to compile wine with USB support so I could use my  AverTV Volar GO (http://www.avermedia.com/avertv/Product/ProductDetail.aspx?Id=495) 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:

	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)found  this post  (http://forum.winehq.org/viewtopic.php?t=5843&start=0&postdays=0&postorder=asc&)with similar problem
did : 
Code:
 git reset --hard 578aeb87b59b04a85db6e8e545a60 


7) did git am *.txt again got the same error:
	
Code:

	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:
git am 0001-Add-support-of-native-Windows-drivers-for-USB-tokens.txt 0002-Re-generate-some-files.txt

 and still got the :
	
Code:

	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.







More information about the wine-users mailing list