几个月前,我在我的mac上运行了pebble SDK 3.0,它运行得很好,我用玄武岩模拟器运行我的应用程序。
最近我清理(擦除)我的mac,因为它运行缓慢。今天我打算再次运行我的应用程序,但我显然没有安装Pebble SDK。
我使用pebble开发人员网站上显示的brew命令安装它:http://developer.getpebble.com/sdk/download/
brew install pebble/pebble-sdk/pebble-sdk
我在这里找到了目录:
/usr/local/Cellar/pebble-sdk/3.0
我尝试运行pebble构建,但我记得我需要并且克隆pebbles存储库。 我做了那个,然后当我做卵石建造它开始建设很好,然后,这发生了:
[17/63] Start build for aplite:
[25/63] app_resources.pbpack.manifest: build/resources/aplite/images/menu_icon.pbi build/resources/aplite/images/logo_splash.pbi build/resources/aplite/images/tile_splash.pbi build/resources/aplite/fonts/UbuntuMono-Regular.ttf.MONO_FONT_14.pfo ../Pebble/common/tools/pbpack_meta_data.py -> build/aplite/app_resources.pbpack.manifest
[28/63] c: src/simply/simply.c -> build/src/simply/simply.c.28.o
[31/63] c: src/simply/simply_msg.c -> build/src/simply/simply_msg.c.28.o
[35/63] c: src/simply/simply_splash.c -> build/src/simply/simply_splash.c.28.o
In file included from ../src/simply/simply.c:6:0:
../src/simply/simply_stage.h:102:3: error: unknown type name 'InverterLayer'
../src/simply/simply_splash.c: In function 'simply_splash_create':
../src/simply/simply_splash.c:45:3: error: implicit declaration of function 'window_set_fullscreen' [-Werror=implicit-function-declaration]
cc1: all warnings being treated as errors
In file included from ../src/simply/simply_msg.c:5:0:
../src/simply/simply_stage.h:102:3: error: unknown type name 'InverterLayer'
Waf: Leaving directory `/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build'
Build failed
-> task in 'basalt/pebble-app.elf' failed (exit status 1):
{task 4378463632: c simply.c -> simply.c.28.o}
['arm-none-eabi-gcc', '-std=c99', '-mcpu=cortex-m3', '-mthumb', '-ffunction-sections', '-fdata-sections', '-g', '-Os', '-D_TIME_H_', '-Wall', '-Wextra', '-Werror', '-Wno-unused-parameter', '-Wno-error=unused-function', '-Wno-error=unused-variable', '-Wno-address', '-Wno-type-limits', '-Wno-missing-field-initializers', '-fPIE', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/Pebble/basalt/include', '-I/usr/local/Cellar/pebble-sdk/3.0/Pebble/basalt/include', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build/src', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/src', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build/basalt', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/basalt', '-DRELEASE', '-DPBL_PLATFORM_BASALT', '-DPBL_COLOR', '-DPBL_SDK_3', '-D__FILE_NAME__="simply.c"', '../src/simply/simply.c', '-c', '-o', 'src/simply/simply.c.28.o']
-> task in 'basalt/pebble-app.elf' failed (exit status 1):
{task 4378501264: c simply_splash.c -> simply_splash.c.28.o}
['arm-none-eabi-gcc', '-std=c99', '-mcpu=cortex-m3', '-mthumb', '-ffunction-sections', '-fdata-sections', '-g', '-Os', '-D_TIME_H_', '-Wall', '-Wextra', '-Werror', '-Wno-unused-parameter', '-Wno-error=unused-function', '-Wno-error=unused-variable', '-Wno-address', '-Wno-type-limits', '-Wno-missing-field-initializers', '-fPIE', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/Pebble/basalt/include', '-I/usr/local/Cellar/pebble-sdk/3.0/Pebble/basalt/include', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build/src', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/src', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build/basalt', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/basalt', '-DRELEASE', '-DPBL_PLATFORM_BASALT', '-DPBL_COLOR', '-DPBL_SDK_3', '-D__FILE_NAME__="simply_splash.c"', '../src/simply/simply_splash.c', '-c', '-o', 'src/simply/simply_splash.c.28.o']
-> task in 'basalt/pebble-app.elf' failed (exit status 1):
{task 4378464016: c simply_msg.c -> simply_msg.c.28.o}
['arm-none-eabi-gcc', '-std=c99', '-mcpu=cortex-m3', '-mthumb', '-ffunction-sections', '-fdata-sections', '-g', '-Os', '-D_TIME_H_', '-Wall', '-Wextra', '-Werror', '-Wno-unused-parameter', '-Wno-error=unused-function', '-Wno-error=unused-variable', '-Wno-address', '-Wno-type-limits', '-Wno-missing-field-initializers', '-fPIE', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/Pebble/basalt/include', '-I/usr/local/Cellar/pebble-sdk/3.0/Pebble/basalt/include', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build/src', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/src', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/build/basalt', '-I/usr/local/Cellar/pebble-sdk/3.0/pebblejs/basalt', '-DRELEASE', '-DPBL_PLATFORM_BASALT', '-DPBL_COLOR', '-DPBL_SDK_3', '-D__FILE_NAME__="simply_msg.c"', '../src/simply/simply_msg.c', '-c', '-o', 'src/simply/simply_msg.c.28.o']
[ERROR ] A compilation error occurred
我不知道该怎么做。 谢谢!
凯文
答案 0 :(得分:3)
更新:解决了!
问题: 我阅读了更多关于pebble一直在更新的新sdks的内容,似乎新版本不推荐使用inverterLayer和其他一些功能,这就是为什么它没有编译。
FIX: 我做的是我进入developer.pebble网站上的示例页面并在github上浏览其中一个,克隆了那个消除了我的问题,然后我复制了我的代码然后运行它。