【问题标题】:Pebble sdk - installation and debugging issue in macPebble sdk - mac 中的安装和调试问题
【发布时间】:2014-06-06 12:57:11
【问题描述】:

我正在学习卵石手表的开发。所以我从模拟器和sdk安装开始学习基本的“hello world”程序。

以下链接

https://developer.getpebble.com/2/getting-started/

https://developer.getpebble.com/2/getting-started/hello-world/

还有这个模拟器链接

https://github.com/Helco/PebbleLocalSim

我在MAC 中安装了pebble sdk,但是当我运行时

curl -sSL https://developer.getpebble.com/install.sh | sh && source ~/.bash_profile

在终端中我收到此错误

 Build failed! Everything installed, but building a new project doesn't work.
    Failure reason: Setting top to                           : /Users/XYZ/pebble-dev/install_test 
Setting out to                           : /Users/XYZ/pebble-dev/install_test/build 
Checking for program gcc,cc              : arm-none-eabi-gcc 
Could not determine the compiler version ['arm-none-eabi-gcc', '-dM', '-E', '-']
(complete log in /Users/LinGoMac/pebble-dev/install_test/build/config.log)
[ERROR   ] The compiler/linker tools could not be found. Ensure that the arm-cs-tools directory is present in the Pebble SDK directory (/Users/XYZ/pebble-dev/PebbleSDK-2.2) 

并弹出以下错误,要求我将邮件发送到 pebble

Process:         Python [472]
Path:            /System/Library/Frameworks/Python.framework/Versions/2.7/Resources/Python.app/Contents/MacOS/Python
Identifier:      Python
Version:         ??? (???)
Code Type:       X86-64 (Native)
Parent Process:  Python [471]

Date/Time:       2014-06-06 14:22:53.826 +0530
OS Version:      Mac OS X 10.7.5 (11G63b)
Report Version:  9

Interval Since Last Report:          21828 sec
Crashes Since Last Report:           12
Per-App Crashes Since Last Report:   7
Anonymous UUID:                      CA26DAE0-4D41-46C1-AC66-745E7957302C

Crashed Thread:  Unknown

Exception Type:  EXC_BAD_ACCESS (SIGSEGV)
Exception Codes: KERN_INVALID_ADDRESS at 0x00007fff5fc01028

Backtrace not available

Unknown thread crashed with X86 Thread State (64-bit):
  rax: 0x0000000000000055  rbx: 0x0000000000000000  rcx: 0x0000000000000000  rdx: 0x0000000000000000
  rdi: 0x0000000000000000  rsi: 0x0000000000000000  rbp: 0x0000000000000000  rsp: 0x0000000000000000
   r8: 0x0000000000000000   r9: 0x0000000000000000  r10: 0x0000000000000000  r11: 0x0000000000000000
  r12: 0x0000000000000000  r13: 0x0000000000000000  r14: 0x0000000000000000  r15: 0x0000000000000000
  rip: 0x00007fff5fc01028  rfl: 0x0000000000010203  cr2: 0x00007fff5fc01028
Logical CPU: 1

Binary images description not available


External Modification Summary:
  Calls made by other processes targeting this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by this process:
    task_for_pid: 0
    thread_create: 0
    thread_set_state: 0
  Calls made by all processes on this machine:
    task_for_pid: 181
    thread_create: 0
    thread_set_state: 0

Model: iMac12,1, BootROM IM121.0047.B1F, 4 processors, Intel Core i5, 2.7 GHz, 4 GB, SMC 1.71f22
Graphics: AMD Radeon HD 6770M, AMD Radeon HD 6770M, PCIe, 512 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x02FE, 0x45424A3231554538424655302D444A2D4620
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x02FE, 0x45424A3231554538424655302D444A2D4620
AirPort: spairport_wireless_card_type_airport_extreme (0x168C, 0x9A), Atheros 9380: 4.0.67.5-P2P
Bluetooth: Version 4.0.8f17, 2 service, 18 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: ST31000528AS, 1 TB
Serial ATA Device: OPTIARC DVD RW AD-5690H
USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfa100000 / 3
USB Device: BRCM2046 Hub, 0x0a5c  (Broadcom Corp.), 0x4500, 0xfa110000 / 4
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x8215, 0xfa111000 / 5
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x850b, 0xfa200000 / 2
USB Device: hub_device, 0x0424  (SMSC), 0x2514, 0xfd100000 / 2
USB Device: Internal Memory Card Reader, apple_vendor_id, 0x8403, 0xfd110000 / 4
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd120000 / 3

为了避免这个错误,我什至尝试手动安装,但即使在我成功安装了这些链接中描述的所有依赖项之后,我仍然在另外两个场景中发现同样的错误

  1. 当我安装了所有依赖项并尝试构建“hello world”程序时,我遇到了同样的问题,它无法构建程序,而是显示command build not found

创建新项目

pebble new-project hello_world

进入 hello_world 目录后,我运行了构建并抛出错误

-bash: build: command not found
  1. 另一次我尝试安装依赖项时解释了here

我遇到了这个问题 命令: brew install SDL SDL_ttf SDL_image --universal

错误:

Warning: sdl-1.2.15 already installed, it's just not linked
Error: You must `brew link sdl' before sdl_ttf can be installed
Error: You must `brew link sdl' before sdl_image can be installed

我确信在为我的小贩安装 PYTHON 和 SDL 时存在一些问题,但我无法找到问题的根源

【问题讨论】:

    标签: macos pebble-watch pebble-sdk


    【解决方案1】:

    您的系统 (OS X 10.7) 与 Pebble SDK 提供的最新版本的 arm-cs-tools 编译器不兼容。您应该可以通过手动下载此older version of arm-cs-tools here 然后在您的 pebble-dev 文件夹中解压缩它来解决此问题:

    cd ~/pebble-dev/
    tar -zxvf ~/Downloads/arm-cs-tools-osx-10.7-2013-04-04.tar.bz2
    

    然后通过运行这些命令来测试工具:

    export PATH=~/pebble-dev/arm-cs-tools/bin:$PATH
    echo "int main(void) {return 0;}" | arm-none-eabi-gcc -x c -
    

    这应该会给你一个警告并生成一个a.out 文件。如果这行得通,你就很好,你可以回到你的项目并运行pebble build

    旧版安装说明参考this page(SDK 1.x - 安装编译器看后半部分)。

    如果您仍然无法使用它,CloudPebble 是一个很好的入门方式。

    【讨论】:

      【解决方案2】:

      如果您可以运行pebble new-project hello_world,那么您可能已经正确安装了 SDK。

      您似乎正在尝试使用build 来构建项目。你需要做pebble build

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2013-11-19
        • 1970-01-01
        • 1970-01-01
        • 2016-11-24
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多