Rockbox Development > Starting Development and Compiling
infoNES emulator for sansa fuze
Jack Sparrow:
I have recently been trying to get the infoNES emulator for my sansa fuze. I downloaded the patch and the rockbox source code, patched it with cygwin, and tried to compile it. When I patched it, it came up with this at the end:
--- Quote ---Hunk #1 FAILED at 24
1 out of 1 hunk FAILED -- saving rejects to file apps/plugins/SUBDIRS.rej
patching file apps/plugins/viewers.config
Hunk #1 succeeded at 1 with fuzz 2
--- End quote ---
Do I need a different version of rockbox? I am using the current build and I believe the patch is for r22921. If so, where do I download that version?
With my version the files appeared in my build directory, but when I compiled it they did not compile. Is this because the hunk failed? It would make sense to me that if they were patched to the file they would still compile, even if they didn't work, but maybe not. I would appreciate any hlep because I am new to compiling and don't know what I'm doing.
torne:
r22921 is from October, so you probably don't want to go back that far; you will lose many months of development :)
The hunk that failed is on the file that tells the Rockbox build system what to compile, so that's why it didn't compile the plugin. You need to fix apps/plugins/SUBDIRS yourself by looking at the patch and seeing what it wanted...
Jack Sparrow:
This is the only place in the patch that mentions apps/plugins/SUBDIRS:
--- Quote ---Index: apps/plugins/SUBDIRS
===================================================================
--- apps/plugins/SUBDIRS (revision 22076)
+++ apps/plugins/SUBDIRS (working copy)
@@ -24,6 +24,7 @@
sudoku
reversi
goban
+infones
#ifdef HAVE_LCD_COLOR
png
#endif
--- End quote ---
I have no idea what any of this means, so...?
torne:
...so you'll have to learn how patches work? :)
You need to add a line 'infones' to apps/plugins/SUBDIRS. The patch shows you where, but the surrounding lines have changed since the patch was created, so you'll have to see where the right place is now.
[Saint]:
That's what the ".rej" file(s) are for, they show you what failed and where.
You'l need to hand patch the failing hunk.
[St.]
Navigation
[0] Message Index
[#] Next page
Go to full version