Compiling App in Eclipse

Former Member
Former Member
I am looking at creating my first Datafield app and have created a new project and have tested some of the samples. The problem I have is my projects are missing the prg files in the bin directory. How do I compile them from in eclipse if I try to run I get an error stating unable to find .prg file.

Prob just missing something obvious. If i can get the basics then hopefully will be able to create some great functionality in the future. Also is there a way of testing on a real device. As if I buy a garmin 920xt I would like to test that it can actually connected to a concept2 rower before publishing.

Thanks
  • When I installed Eclipse, the menu item "Project->Build Automatically" was checked, so I guess it builds as soon as you edit and save a file. Otherwise I guess "Build all" will do the trick. Any error messages in the connectiq.builder console? Did you do all steps under "Getting Started" in the "Monkey C Programmers Guide.pdf" ?
  • Former Member
    Former Member over 10 years ago
    When I installed Eclipse, the menu item "Project->Build Automatically" was checked, so I guess it builds as soon as you edit and save a file. Otherwise I guess "Build all" will do the trick. Any error messages in the connectiq.builder console? Did you do all steps under "Getting Started" in the "Monkey C Programmers Guide.pdf" ?



    Yes - tried each of the app types and it is only on the Data field app type the other seem to be there automatically. I want to learn programming by creating a datafields which will give projection for 10km and half marathon finish times based on the following formula.

    Projected 10km time = duration(timeelapsed) + ((10 - distance) / averagespeed) * 3600 and something similar for half marathon and maybe full marathon.
  • Hmm, might be a error in the template for "Data Field" apps. Just created a app called test1 and got this compilation error

    ERROR:Unknown:0: Cannot find label Toybox_WatchUi_SimpleField
    Build Complete

    Changing
    class test1View extends Ui.SimpleField
    to
    class test1View extends Ui.SimpleDataField
    fixed that
  • Former Member
    Former Member over 10 years ago
    yes that fixes it - now to get my head around how to convert time and meters per second and getting the display in the right format.
  • Former Member
    Former Member over 10 years ago
    Hmm, might be a error in the template for "Data Field" apps. Just created a app called test1 and got this compilation error

    ERROR:Unknown:0: Cannot find label Toybox_WatchUi_SimpleField
    Build Complete

    Changing
    class test1View extends Ui.SimpleField
    to
    class test1View extends Ui.SimpleDataField
    fixed that


    STEWA285 is correct. The template used when creating a new Data Field project references an older, renamed API. This problem has been reported and will be fixed in the future.