Rockbox Development > Starting Development and Compiling
Trouble with compiling some patches and adding new plugins
Rincewind:
--- Quote from: joetermini on October 16, 2006, 01:06:24 PM ---That sounds a little difficult. What would I be changing?
--- End quote ---
That really depends.
I suggest you open both the patch file and the source file where the hunk failed in an editor. Then in the source file you go to the line-number of the failed hunk. You view both files side by side and try to understand what the hunk does and why it failed. Then you manually do what the patch utility would do with the hunk (removing lines with - , adding lines with + and changing lines with !).
If the result doesn't look like C-Code anymore, then you either have done something wrong or the patch is badly out if date. An editor with syntax coloring can help you spotting bad mistakes.
I don't know if the patch tool stops after a failed hunk, if it does you have to apply the hunks after the failed one, too. I use use a different tool to patch, so I can't help you with commandline switches that might help you here.
If you have multiple patches you apply them one after the other, in the same order the author of the patch suggests.
If you get a .c file, the author should mention somewhere where to put this file (a good guess is /apps if it is a patch to rockbox or /apps/plugins if it is a plugin)
joetermini:
thanks a ton man
Navigation
[0] Message Index
[*] Previous page
Go to full version