Hacker News new | ask | show | jobs
by jitl 4601 days ago
That's awesome. I got my Pebble on Kickstarter, but I've been too busy with school and work to work on a project. SDK2 is just the pick-me-up I need, and I'm really interseted in lab hours too.

I just created a hello-world project on cloudpebble.net, but my initial build is failing:

  ../src/main.c:1:23: fatal error: pebble_os.h: No such file or directory
  compilation terminated.
  Waf: Leaving directory `/tmp/tmpIc8vSE/build'
  Build failed
1 comments

In the latest build, you no longer need to #include all of the individual files, #include <pebble.h> is all you need
Awesome, thank you. I think that the cloudpebble.net template for SDK2 needs to be updated. I created this thing like 15 minutes ago: now build errors, from a newly created project, with the pebble_.\.h files replaced with pebble.h are:

  ../src/main.c:6:1: note: #pragma message: 
  
     *** PBL_APP_INFO has been replaced with appinfo.json
     Try updating your project with `pebble convert-project`
     Visit our developer guides to learn more about appinfo.json:
     http://developer.getpebble.com/2/guides/creating-pebble-watchapps.html
   
  ../src/main.c:10:0: error: ignoring #pragma GCC error [-Werror=unknown-pragmas]
  ../src/main.c:15:18: error: unknown type name 'AppContextRef'
  ../src/main.c: In function 'pbl_main':
  ../src/main.c:24:3: error: unknown type name 'PebbleAppHandlers'
  ../src/main.c:25:5: error: field name not in record or union initializer
  ../src/main.c:25:5: error: (near initialization for 'handlers')
  ../src/main.c:25:22: error: 'handle_init' undeclared (first use in this function)
  ../src/main.c:25:22: note: each undeclared identifier is reported only once for each function it appears in
  ../src/main.c:27:3: error: too many arguments to function 'app_event_loop'