Rockbox Development > Starting Development and Compiling

help with compiling/making plugins

(1/3) > >>

kennypu:
Hi, i'm a beginner with rockbox, and I installed it the other day and finally found out how great it was xD. anyways, I'm a game programmer and I was very interested in making games,etc. for rockbox. I tried to compile the helloworld.c, following instruction through the 'simple guide to compiling' guide, and everything worked great except that i felt the compiling is either way to long(feels like if I leave it on, it will compile for several hours), I did something wrong, or its compiling the whole rockbox. My questions would be:
1. if I am compiling the whole rockbox, is there a way to just compile the plugin?
2. If i was doing everything right, would it take a several hours?
Just for more information, I am running XP(sp 2)256 ram, and was trying to compile with cygwin. I read on the forums that cygwin is slow, so I am installing vmware right now, but would it make that much difference? sorry for asking so many questions. Thanks in advance,
  Ken

cool_walking_:
I don't think you can build plugins without the rest of Rockbox.  Yes, when you built your plugin, it would have built the rest of Rockbox as well, but the good news is it only needs to do this once, and from then on will only compile the parts that have changed since the last compile (unless you run "make clean", which will cause everything to be compiled again).

Compile time is heavily dependent on your CPU, but several hours seems WAAAY too long - my Core 2 Duo in Cygwin takes maybe 5-10 minutes for a full compile.

If you only have 256MB of RAM, I think VMware could possibly take longer since VMware is pretty hefty itself.  I personally don't like VMware since it's networking functionality always seems to break and it even caused problems with the local network for me.

Llorean:
As long as you know what you're doing, VMWare is plenty reliable, and it often takes less than half the time to compile with VMWare.

bluebrother:

--- Quote from: kennypu on February 15, 2008, 11:52:44 PM ---Just for more information, I am running XP(sp 2)256 ram, and was trying to compile with cygwin.

--- End quote ---
running WXP with only 256MiB of RAM is slow itself anyway (XP needs quite an amount of RAM, so it will waste quite a lot of time swapping to disc), and putting cygwin on top of it is dog-slow. Using vmware with that less memory should be faster, but I guess it will still swap as hell. You could
- get more memory. IMO this is generally a good idea (unfortunately my machine is maxed out ;) )
- install linux and use a text environment / a rather small GUI environment.

Just for comparison: my machine (P-M, 1.4GHz, 2GiB RAM, Linux) does a complete rebuild of Rockbox in less than 5 minutes.

nls:
Also the 'make rocks' command will only rebuild codecs and plugins regardelss of changes in the core. Another way to speed it up is removing codecs and plugins form the various SOURCES and SUBDIRS -files.

Navigation

[0] Message Index

[#] Next page

Go to full version