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
| | |-+  Building only a plugin
« previous next »
  • Print
Pages: [1]

Author Topic: Building only a plugin  (Read 2625 times)

Offline hydroo

  • Member
  • *
  • Posts: 7
Building only a plugin
« on: January 16, 2008, 11:54:23 AM »
According to http://www.rockbox.org/twiki/bin/view/Main/HowtoWritePlugins I have to make;make install the whole simulator to be able to test my plugin.

Now this takes a bit long. Is there no other way?

regards
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Building only a plugin
« Reply #1 on: January 16, 2008, 12:29:04 PM »
You could remove other plugins from the build list, but you still need to build rockbox at the same time.
Logged

Offline hydroo

  • Member
  • *
  • Posts: 7
Re: Building only a plugin
« Reply #2 on: January 16, 2008, 01:23:17 PM »
I already did that.
And I am using ccache and whatnot and am running linux natively anyways. So there isn't much to speed up I guess.
~20-30secs is just ... well :(.

It encourages to read twice before testing.

So is this mandatory(by design) or just bad Makefiles?
(I am pretty new to this. Made my helloworld yesterday)

thanks for the quick response.

regards
« Last Edit: January 16, 2008, 01:28:36 PM by hydroo »
Logged

Offline saratoga

  • Developer
  • Member
  • *
  • Posts: 8974
Re: Building only a plugin
« Reply #3 on: January 16, 2008, 01:26:48 PM »
Quote from: hydroo on January 16, 2008, 01:23:17 PM
I already did that.

So is this mandatory(by design) or just bad Makefiles?

Plugins cannot work without rockbox, so theres no sense in letting you build them without it.
Logged

Offline hydroo

  • Member
  • *
  • Posts: 7
Re: Building only a plugin
« Reply #4 on: January 16, 2008, 01:29:33 PM »
Because they are linked statically?

I am pretty good at c, unix/linux and stuff. So you can give me details :P. I am curious.

Rephrased:
Why can I not build and install the simulator separately from the plugins.
/Every plugin for itself. (e.g. by specifying the plugin as a target)
« Last Edit: January 16, 2008, 01:42:30 PM by hydroo »
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Building only a plugin
« Reply #5 on: January 16, 2008, 01:50:59 PM »
Because plugins depend on the plugin struct used in Rockbox.

I would say that the main reason you can't build a single plugin is that the make system isn't written to allow that in an easy manner...

Besides, once you've build the whole lot once running make to just build the changes in a single plugin that you make is not that time consuming.
Logged

Offline hydroo

  • Member
  • *
  • Posts: 7
Re: Building only a plugin
« Reply #6 on: January 16, 2008, 01:54:24 PM »
"installing a full setup in your archos dir"
takes a while.

(Not the actual building - it's probably copying unzipping or something like that)

thanks for your help
« Last Edit: January 16, 2008, 02:07:45 PM by hydroo »
Logged

Offline Bagder

  • Member
  • *
  • Posts: 1452
    • Daniel's site
Re: Building only a plugin
« Reply #7 on: January 16, 2008, 02:39:25 PM »
Well, you don't have to run 'make install' if you insist. You can copy the actual plugin .so file to the correct install place...
Logged

Offline hydroo

  • Member
  • *
  • Posts: 7
Re: Building only a plugin
« Reply #8 on: January 16, 2008, 02:48:51 PM »
I managed. Thank you.

$ make
$ cp apps/plugins/whatever.rock to archos/.rockbox/rocks/categoryxxx/

works fine

regards
Logged

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

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

Page created in 0.072 seconds with 15 queries.