2015-05-29 82 views
2

幾個月前,我在我的Mac上運行鵝卵石SDK 3.0,它運行完美,我用玄武岩模擬器運行我的應用程序。MAC OS X Pebble SDK 3.0錯誤建設:編譯錯誤InverterLayer

最近我清理(擦除)我的Mac,因爲它運行緩慢。今天我要再次運行我的應用程序,但我顯然沒有安裝Pebble SDK。

我安裝了它使用的是鵝卵石的開發者網站上顯示的釀造命令:http://developer.getpebble.com/sdk/download/

​​

我找到的目錄在這裏:

/usr/local/Cellar/pebble-sdk/3.0 

我試圖運行鵝卵石構建,但我記得我需要和克隆卵石庫。 我這樣做,然後當我做鵝卵石構建它開始建設很好,但隨後,發生這種情況:

[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 

我不知道該怎麼做。 謝謝!

Kevin

+0

*有關更多信息,請參閱https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning*您是否檢查過該項目? – samrap

+0

我通過在終端上運行這個命令修復了不安全的平臺警告,然後關閉它並打開一個新窗口:sudo pip install requests [security]但是我不斷收到錯誤信息,好像sdk沒有識別一些文件 –

回答

3

更新:解決了!

問題: 我讀了更多關於卵石已經更新的新sdks,看起來新版本不贊成使用inverterLayer和其他一些函數,這就是爲什麼它沒有編譯。

FIX: 我所做的是我進入developer.pebble網站上的示例頁面,並在github上瀏覽其中一個,克隆了一個消除了我所遇到的問題,然後複製我的代碼並運行它。

+1

很高興找到了解決方案。我也會推薦看看我們的遷移指南:http://developer.getpebble.com/sdk/migration-guide/ – sarfata