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
| | |-+  compiling Rockbox for iPod
« previous next »
  • Print
Pages: [1]

Author Topic: compiling Rockbox for iPod  (Read 1385 times)

Offline restart

  • Member
  • *
  • Posts: 14
compiling Rockbox for iPod
« on: May 30, 2008, 03:29:55 AM »
i have already followed instruction in this page in making helloworld.c...
i've tried to compile but i have an error...
this is the helloworld.c :
 1    #include "plugin.h"
 2
 3    PLUGIN_HEADER
 4
 5    static const struct plugin_api *rb;
 6
 7    rb->function();
 8    enum plugin_status plugin_start(const struct plugin_api* api, const void* parameter)
 9  {
10   (void)parameter;
11   rb = api;
12   rb->splash(HZ*2, "Hello world!");
13
14   return PLUGIN_OK;
15 }

the error are:
helloworld.c:7: error: syntax error before '->' token
make[2]: *** [/rockbox/build_helloworld/apps/plugins/helloworld.o] Error 1
rm /rockbox/build_helloworld/apps/plugins/credits.elf
make[1]: *** [rocks] Error 2

can anyone help me for this problem??
Logged

Offline cool_walking_

  • Rockbox Expert
  • Member
  • *
  • Posts: 695
Re: compiling Rockbox for iPod
« Reply #1 on: May 30, 2008, 04:32:26 AM »
Take out line 7.

On that wiki page, before "rb->function();" it says
Quote
What this means is that to make a call to a function built into the rockbox plugin API, you'd do it like this:

"rb->function();" is just an example of syntax.  You're not supposed to put that part in.  I very much doubt there would be a function called "function".

In the future when posting code, use [ code ]code goes here[ /code ] tags (obviously remove the spaces around the words there). Also don't number the lines like that, as it only serves to hinder copy-pasting.   If it's an especially long bit of code, post it to a Pastebin.
« Last Edit: May 30, 2008, 04:53:14 AM by cool_walking_ »
Logged

Offline restart

  • Member
  • *
  • Posts: 14
Re: compiling Rockbox for iPod
« Reply #2 on: June 13, 2008, 06:08:37 AM »
oh, i see...i'm apologize...thanx for the info ;D
Logged

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

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

Page created in 0.062 seconds with 15 queries.