Rockbox Development > Starting Development and Compiling

Patching help

<< < (4/7) > >>

rossic:
I was a bit confused myself at first (not that I'm any expert or anything).  I understand that it gets really annoying when you do something wrong and it doesn't work.  Especially when you think you've read everything.  

What I usually find is that I did not read the Wiki carefully enough.  All of the info is there.  

That said, it can be hard to find, so I'll try to give you a pointer.  

First, I just want to make sure that your cygdrive/c/rockbox directory is where your source files are located?  so in that directory you have  a /apps, /tools, etc?  If so, then you're really close to being done.  

in your command "patch --binary -p0 < chopper.diff"  there is something that you must tweak.  The -p0 has to do with the directory levels in that file.  You must increment that until it works.  So if -p0 gives you that error, then try -p1, then -p2, up to -p5.  It should work at one of those steps.  Once it goes, you should see it patch stuff.  If anything says "failed" then you have a problem.  Otherwise, it should be ok.  

If by chance you were not in that directory where the source files are located, then the step for "../tools/configure" will not work.  So here's what you do.

get in the folder where you have the source files (./apps/ and ./tools/ etc.).  then type
-mkdir build
-cd build
-../tools/configure
then you get the option of choosing your player.  Once you do that, choose what kind of build you want.  Then it will make a makefile.

If you type
-make
at that point, it will build rockbox for you.  If it fails to compile, then you have one or more of 3 issues.  

* you didn't follow a step properly (cygwin install)
* the patches you applied are faulty
* the build is currently not compiling for your player
If you are ABSOLUTELY SURE you haven't done anything wrong, then go check the SVN really quickly.  It will tell you if your build is compiling (check it with the settings you used in the ../tools/configure program).  If it is then check with flyspray to see if the patches you used are currently buggy.  Let us know how it goes (in this thread).

good luck

Febs:
kirch24, I have just merged your new thread into this existing thread.  This is the third time that I have had to do this, despite asking you twice to follow our posting guidelines and to avoid starting new threads on the same topic.  This is your third and last warning.  

DO NOT START ANY MORE NEW THREADS ON THIS TOPIC.  

If you start another new thread on this topic rather than posting in this existing thread, your posting privileges will be suspended.

kirch24:
thanks alot for that post its helpes me alot!

rossic:
I'm glad it helps.  If you have any more problems with this topic please post them in this thread!  I, and many other people are happy to help where we can.

kirch24:
i cant find the source file, where is it normall, i dont know whre the /apps and /tools files are, does anyone know?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version