Dumb newbie compilation question

Former Member
Former Member
Hi

I thought I would see what is involved in writing code for the Garmin fitness trackers. I downloaded the latest ConnectIQ SDK (2.4.2) and installed on Ubuntu. I tried to compile one of the sample programs using the command-line tools, but I couldn't get anything to work. I'd be happy to explain the various ways that various things didn't work, but I don't really have the first idea how to build the sample applications.

I kind-of thought it would be as simple as

$ cd samples/Analog
$ monkeyc -o analog.prg -f ./monkey.jungle -y my_key
$ monkeydo analog.prg fenix3 (or whatever)

But all this gets me is:

Failed invoking <symbol>
Invalid value in onLayout

As I said, I tried many different ways to compile the sample and none worked; but the fact is that I don't have the faintest idea how to build the samples, and I'm probably doing something daft.

Thanks in advance,
Lars

  • lars. 40 years for me (c). The plugin makes things much easier. Especially if you're just starting with CIQ. Have you tried the debugger?
  • Former Member
    Former Member
    You should certainly be testing your code before deploying, so I'm not sure I'd agree that runtime errors are somehow more dangerous that build time errors.


    I spend a significant part of my working day fixing problems that resulted from that kind of thinking :) I want my compile-time error checking to be as thorough as it can possibly be.

    However, I agree that the implications for a watch face are less significant than they are for, say, air-traffic control.
  • Former Member
    Former Member
    lars. 40 years for me (c). The plugin makes things much easier. Especially if you're just starting with CIQ. Have you tried the debugger?


    I didn't even know there was a debugger :)