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:

Welcome to the Rockbox Technical Forums!

+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling Plugins
« previous next »
  • Print
Pages: [1]

Author Topic: Compiling Plugins  (Read 3968 times)

Offline d3nn1as

  • Member
  • *
  • Posts: 15
Compiling Plugins
« on: July 28, 2007, 04:33:33 PM »
Hey

I'm developing a little basic interpreter plugin for rockbox. It's converted from one
of my old projects.

Is there a way to compile just this plugin (not the whole rockbox source code along with it)? It still compiles the full thing even if only one plugin source has changed.

I'm not really familiar with the rockbox source (or cygwin), but I thought it would be fun to make a little scripting engine for mp3 players.

This is what gave me the idea: http://www.ipodlinux.org/LET_BASIC (I'm stealing some code from there aswell)

EDIT: When I'm compiling the plugin files they're all corrupt (half the size of the ones from the daily build) and they won't run. Maybe something I forgot? (I just compiled it simple  ./tools/configure; make; make zip)
« Last Edit: July 28, 2007, 06:37:21 PM by d3nn1as »
Logged

Offline bascule

  • Rockbox Expert
  • Member
  • *
  • Posts: 1298
Re: Compiling Plugins
« Reply #1 on: July 29, 2007, 12:49:15 AM »
Quote from: d3nn1as on July 28, 2007, 04:33:33 PM
Is there a way to compile just this plugin (not the whole rockbox source code along with it)? It still compiles the full thing even if only one plugin source has changed.
No. If you do, then you will get an 'Incompatible version' error when trying to run the plugin.

Quote from: d3nn1as on July 28, 2007, 04:33:33 PM
EDIT: When I'm compiling the plugin files they're all corrupt (half the size of the ones from the daily build) and they won't run. Maybe something I forgot? (I just compiled it simple  ./tools/configure; make; make zip)
Have you managed to compile a completely clean version of the source? If so, then it must be your code that's causing the problem.
Logged
DataBase fanboy and author of the totally overhauled Rockbox Sync Tool

Offline pixelma

  • Rockbox Expert
  • Member
  • *
  • Posts: 645
Re: Compiling Plugins
« Reply #2 on: July 29, 2007, 09:30:04 AM »
Quote from: bascule on July 29, 2007, 12:49:15 AM
Quote from: d3nn1as on July 28, 2007, 04:33:33 PM
Is there a way to compile just this plugin (not the whole rockbox source code along with it)? It still compiles the full thing even if only one plugin source has changed.
No. If you do, then you will get an 'Incompatible version' error when trying to run the plugin.
This is not true as long as you really only change the code of your plugin. You'll only get an "incompatible version" if you have to add new functions to the plugin API, so that the one your installed build "provides" doesn't match that anymore (don't know all the details).

There is the option to "make rocks" for building the plugins seperately but that'll only work once you compiled a full build.

I'm not sure about your other problem but if they are significantly smaller - maybe you "configured" for a different target?

Logged

Offline d3nn1as

  • Member
  • *
  • Posts: 15
Re: Compiling Plugins
« Reply #3 on: August 01, 2007, 04:20:15 PM »
I chose to compile for the sansa e200 -> normal build, and if builds without any errors.

But the plugins get very small. I attached a image to show you:

http://i9.tinypic.com/4vrd8gh

Any ideas?
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Compiling Plugins
« Reply #4 on: August 01, 2007, 04:32:08 PM »
Plugins are small, that's not a problem!
Logged

Offline d3nn1as

  • Member
  • *
  • Posts: 15
Re: Compiling Plugins
« Reply #5 on: August 02, 2007, 03:46:59 AM »
Yes, but if you compare them with the plugin sizes in the daily builds, they are too small.
And they don't work which is the actual problem.

When I run any of them in my sansa I get an error, same thing in the simulator (Bad image file). The files are completely up to date, I haven't changed anything at all.
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Compiling Plugins
« Reply #6 on: August 02, 2007, 04:36:42 AM »
Quote from: d3nn1as on August 02, 2007, 03:46:59 AM
Yes, but if you compare them with the plugin sizes in the daily builds, they are too small.
And they don't work which is the actual problem.

I did, and no they're not smaller as far as I could see.

Quote
When I run any of them in my sansa I get an error

What error is that?
Logged

Offline d3nn1as

  • Member
  • *
  • Posts: 15
Re: Compiling Plugins
« Reply #7 on: August 02, 2007, 12:35:43 PM »
I get an "Incompatible Version" error.
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Compiling Plugins
« Reply #8 on: August 02, 2007, 12:43:27 PM »
How are you installing your build?
Logged

Offline d3nn1as

  • Member
  • *
  • Posts: 15
Re: Compiling Plugins
« Reply #9 on: August 02, 2007, 01:01:31 PM »
Found the problem. I was using an older version of rockbox and I just moved the rock files, not the whole firmware.

EDIT: Are there any plugin documentation that I can use (functions etc.)?. I never find anything in the wiki :/

EDIT: You should fix the code error at: http://www.rockbox.org/twiki/bin/view/Main/UsingTheMenuAPI -> "Examples"

Thank you for your help!
« Last Edit: August 02, 2007, 01:13:59 PM by d3nn1as »
Logged

Offline Llorean

  • Member
  • *
  • Posts: 12931
Re: Compiling Plugins
« Reply #10 on: August 02, 2007, 01:50:16 PM »
Being a wiki page, anyone can fix it...
Logged

Offline dionoea

  • Member
  • *
  • Posts: 30
Re: Compiling Plugins
« Reply #11 on: August 08, 2007, 09:22:32 AM »
Quote from: d3nn1as on August 02, 2007, 01:01:31 PM
EDIT: Are there any plugin documentation that I can use (functions etc.)?. I never find anything in the wiki :/

I wrote a plugin api doc a long time ago (it's located in the source code's documentation folder). This is likely to be outdated ... but it can help if you're really lost (updates to that doc are of course welcome, or you could even move it to the wiki I guess and update it there).

The other source of documentation is the apps/plugin.h file where the plugin_api structure is defined. (well ... at least it lists what's available)
Logged

  • Print
Pages: [1]
« previous next »
+  Rockbox Technical Forums
|-+  Rockbox Development
| |-+  Starting Development and Compiling
| | |-+  Compiling Plugins
 

  • SMF 2.0.18 | SMF © 2021, Simple Machines
  • Rockbox Privacy Policy
  • XHTML
  • RSS
  • WAP2

Page created in 0.111 seconds with 17 queries.