pebble / pebblejs

Program the Pebble with simply JavaScript
MIT License
455 stars 229 forks source link

Pebble.js compilation fails for Pebble 2 / Diorid #172

Open compelling opened 8 years ago

compelling commented 8 years ago

Originally posted this in https://forums.pebble.com/t/pebble-js-support-for-pebble-2-diorid/ Seems several persons have this problem, both using cloud pebble and the sdk locally


There’s now a tick box in Pebble.js for Pebble 2 / diorid. But when i tick it, the compilation fails with:

[ 51/127] diorite c: src/simply/simply_msg.c -> build/src/simply/simply_msg.c.31.o In file included from /tmp/tmpzJDE1o/src/util/color.h:3 :0, from .. /src/simply/simply_res.h:5 , from .. /src/simply/simply.c:4

/tmp/tmpzJDE1o/src/util/compat.h:17:14: error: nested redefinition of 'enum GBitmapFormat' /tmp/tmpzJDE1o/src/util/compat.h:17:14: error: redeclaration of 'enum GBitmapFormat'

matopeto commented 8 years ago

I am added support for dioride in this pull request: https://github.com/pebble/pebblejs/pull/170 so feel free to checkout :)

noiob commented 8 years ago

It's still a problem, both on Cloudpebble and locally, fyi. Can't compile for Diorite, but any other platform is fine.