I have a program that i try to compile with the following:
#!/usr/bin/env bash
monkeyc -o bin/bigheart.prg -w -m manifest.xml -z resources/resources.xml -r source/BigHeartField.mc source/HeartFieldApp.mc source/ScalableTextDrawer.mc source/VirtualDisplay.mc
connectiqpkg -o . -m 'manifest.xml' -n bigheart 'bin/bigheart.prg'
This results in the following error:
MB_HOME: /Users/pure/Software/connect-iq/bin
ERROR: [1] The file 'bin/bigheart.prg' does not match a compiled application format.
org.apache.commons.cli.ParseException: [1] The file 'bin/bigheart.prg' does not match a compiled application format.
at com.garmin.monkeybrains.packager.Packager.validateApplicationArguments(Packager.java:101)
at com.garmin.monkeybrains.packager.Packager.main(Packager.java:434)
I have attached the source code . You can just type:
$ python build.py -p -r --no-sim
or
$ sh simple_build.sh
Sourcecode on github: https://github.com/PerArneng/bigheart