Rockbox.org home
Downloads
Release release
Dev builds dev builds
Extras extras
themes themes
Documentation
Manual manual
Wiki wiki
Device Status device status
Support
Forums forums
Mailing lists mailing lists
IRC IRC
Development
Bugs bugs
Patches patches
Dev Guide dev guide
Search



Donate

Rockbox Technical Forums


Login with username, password and session length
Home Help Search Staff List Login Register
News:

Rockbox Ports are now being developed for various digital audio players!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  how to write plugins?
« previous next »
  • Print
Pages: [1]

Author Topic: how to write plugins?  (Read 2126 times)

Offline mvmacd

  • Member
  • *
  • Posts: 4
how to write plugins?
« on: August 04, 2010, 03:03:51 PM »
hey there! I have rockbox on my Sansa E280, It's MUCH better than the OF.  :)
I do a little coding myself [mostly php,html,js,css,BASH], [I haven't really learned C yet but I sorta want to] and I was wondering how could I make a plugin?

Thanks

[P.S. Will .GIF ever be supported? I have a lot of gif files, converted to png, but they're about double size.]
« Last Edit: August 04, 2010, 03:06:50 PM by mvmacd »
Logged

Offline Domonoky

  • Developer
  • Member
  • *
  • Posts: 205
Re: how to write plugins?
« Reply #1 on: August 04, 2010, 03:15:54 PM »

You may want to look into the wiki, especially the HowtoWritePlugins wikipage should be helpful.
Logged

Offline mvmacd

  • Member
  • *
  • Posts: 4
Re: how to write plugins?
« Reply #2 on: August 04, 2010, 03:45:22 PM »
hmm.. I look at the page... but, ok, still I have no idea what kind of stuff I can tell the plugin to do.. and I'm still kinda fuzzy on how it all works out, but, so, do you think .GIF will be viewable in rockbox soon? thx
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: how to write plugins?
« Reply #3 on: August 04, 2010, 03:50:36 PM »
If someone improves http://www.rockbox.org/tracker/task/3037 then it could be accepted.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

Offline mvmacd

  • Member
  • *
  • Posts: 4
Re: how to write plugins?
« Reply #4 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: [Select]
$ ls
extras  viewbox.c
$ gcc viewbox.c

then it said a file was missing [a .h file] so then I searched my rockbox folder [that I got from svn, something I read on the  wiki or something], and then I would copy it to that directory, and then I'd try to compile again, then it said another file was missing, and so on and so forth. :( so how can I build this gifview? can I like cp it to the ~/rockbox/apps/plugins/ folder and then compile rockbox?
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: how to write plugins?
« Reply #5 on: August 04, 2010, 04:21:17 PM »
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: [Select]
$ ls
extras  viewbox.c
$ gcc viewbox.c

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.

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 :)
« Last Edit: August 04, 2010, 04:26:16 PM by saratoga »
Logged

Offline mvmacd

  • Member
  • *
  • Posts: 4
Re: how to write plugins?
« Reply #6 on: August 04, 2010, 04:31:30 PM »
I ran
Code: [Select]
sudo ./tools/rockboxdev.sh
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: [Select]
make
and will it compile gifview into something I can use on my rockbox?
Logged

Offline Chronon

  • Rockbox Expert
  • Member
  • *
  • Posts: 4379
Re: how to write plugins?
« Reply #7 on: August 04, 2010, 05:18:50 PM »
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.
Logged
Sansa e280, Gigabeat F40, Gigabeat S60, Sansa Clip+, iPod Mini 2g

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  how to write plugins?
 

  • SMF 2.0.17 | SMF © 2019, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.084 seconds with 15 queries.