Rockbox Development > Starting Development and Compiling
how to apply patch
saratoga:
--- Quote from: stripwax on July 22, 2006, 05:49:37 AM ---
--- Quote from: eK3eKyToPa on July 22, 2006, 03:21:33 AM ---I try to apply a patch but it says
--- Quote ---C:\rockbox>patch --binary -p0 < doom_scroll3.patch
'patch' is not recognized as an internal or external command,
operable program or batch file.
--- End quote ---
What is wrong?
--- End quote ---
If you're really using Cygwin, you would see a bash prompt such as
--- Quote ---$
--- End quote ---
, not the Windows/MS-DOS prompt such as
--- Quote ---C:\rockbox>
--- End quote ---
Are you sure you're actually running the Cygwin shell when trying to patch/compile?
--- End quote ---
Not always:
--- Quote ---C:\Documents and Settings\mike.EEB\My Documents>patch --binary -p0 < lock.c
patch unexpectedly ends in middle of line
patch: **** Only garbage was found in the patch input.
--- End quote ---
You can also change the Windows PATH :)
But yeah, I'm guessing he either didn't install Cygwin, isn't running Cygwin or didn't correctly install the needed components.
eK3eKyToPa:
Again problems:
Do I do it right or something wrong and what I have to write next
Lame questions but i cant get it.
PLZ help
Mikerman:
As stated in the patching guides, did you then try this increasing the p value 1-by-1 up to 4 or 5? That sometimes will handle this.
Otherwise, try putting a copy of the patch in each of the the folders holding the files to be patched, and try patching again (I can't recall right now if it also has been helpful to run the patch command from within those directories as well).
bluebrother:
as the screenshot says you're in the wrong directory. patch expexts the file it displays (apps/plugins/doom/d_event.h) and it hasn't found it, indicating that you need to change in that subfolder from what you can do a "ls apps/plugins/doom/d_event.h" successfully. Increasing the p value won't help in that case. (Another possibility would be that this file is missing from your source tree but if you have an actual cvs source tree this shouldn't happen).
eK3eKyToPa:
I'm absolutely lame on cygwin so i'll thx you if tell me what exactly to write and change the directory to apps/plugins/doom/ or what it need to be.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version