Rockbox Development > Starting Development and Compiling
how to write plugins?
saratoga:
--- Quote from: mvmacd on August 04, 2010, 04:05:37 PM ---oh cool. I actually downloaded that, and was hoping I could just compile it, then test it with my rockbox simulator. I tried,
--- Code: ---$ ls
extras viewbox.c
$ gcc viewbox.c
--- End code ---
--- End quote ---
Rockbox is not a linux PC. You cannot compile something for linux or cygwin and then just run it in rockbox. You need to setup the dev tools and then compile a simulator with your plugin added to it.
You should really take a look at the HowtoWritePlugins page. It explains this.
edit:
--- Quote ---ok, still I have no idea what kind of stuff I can tell the plugin to do.
--- End quote ---
You can pretty much do anything you would expect to be able to do on an mp3 player. Read buttons, disk IO, draw to screen, process things on a ~80-300MHz ARM or Coldfire processor, play audio, etc.
Edit2: You might be interested to know that PNG compresses quite a bit better then GIF, so if your GIF files are smaller then your PNGs, you're probably doing something wrong :)
mvmacd:
I ran
--- Code: ---sudo ./tools/rockboxdev.sh
--- End code ---
and it's taking forever. when it finishes, can I just copy the 'viewbox.c' and 'extra' folder into ./apps/plugins/ and then just run
--- Code: ---make
--- End code ---
and will it compile gifview into something I can use on my rockbox?
Chronon:
The most recent submission on that page is a patch. You should use the "patch" program as described on the WorkingWithPatches page to apply it.
Navigation
[0] Message Index
[*] Previous page
Go to full version