Rockbox Development > Starting Development and Compiling
[solved] How can I start another plugin?
gnu:
Well, I tried that and it does not work. I always get the following error message from cygwin.
--- Code: ---/home/Admin/rockbox/apps/plugins/lyric_viewer.c:25: undefined reference to `_plugin_load'
collect2: ld returned 1 exit status
make[2]: *** [/home/Admin/rockbox/sim_x5/apps/plugins/lyric_viewer.rock] Error 1
--- End code ---
This is quite strange, since the function "plugin_load" is declared in plugin.h and I've included this .h file!.
And why does the error message say " _plugin_load"?
I'm out of my (admittedly quite limited ;) ) wits, so I've attached my lyric_viewer.c; the only important bit is the "plugin_load" at the end of it.
mschneider:
You need to do rb->plugin_load because the function is a member of the rockbox plugin api structure.
gnu:
No, it's not.
I get something like "the struct plugin_api has no member 'plugin_load'" when I try that.
As far as I can tell, it's a 'normal' function declared inside of plugin.h; but nevertheless my plugin can't see it...
Job Van Dam:
If you just made this plugin for yourself and have no desire to make it part of commercially released Rockbox you could just add it to the plugin API.
It would be bad practice though because of the redundancy but it would work.
Llorean:
There's no "commercially" released Rockbox...
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version