Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:garmin [2021/04/17 11:11] admin [Setting up CLI SDK in Ubuntu 18.04] |
projects:garmin [2021/04/17 12:13] (current) admin [Setting up CLI SDK in Ubuntu 18.04] |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Monkey C syntax highlight in vim ====== | ||
+ | <code> | ||
+ | $ cd ~/projects/garmin/ | ||
+ | $ git clone https://github.com/klimeryk/vim-monkey-c.git | ||
+ | $ mkdir -p ~/.vim/syntax ~/.vim/ftdetect | ||
+ | $ cp ~/projects/garmin/vim-monkey-c/ftdetect/monkey-c.vim ~/.vim/ftdetect/ | ||
+ | $ cp ~/projects/garmin/vim-monkey-c/syntax/monkey-c.vim ~/.vim/syntax/ | ||
+ | </code> | ||
+ | |||
====== Setting up CLI SDK in Ubuntu 18.04 ====== | ====== Setting up CLI SDK in Ubuntu 18.04 ====== | ||
* install prerequisites (not available on 20.04) | * install prerequisites (not available on 20.04) | ||
<code> | <code> | ||
- | # apt install libwebkitgtk-1.0-0 | + | # apt install libwebkitgtk-1.0-0 default-jre |
</code> | </code> | ||
* download Connect IQ SDK from [[https://developer.garmin.com/downloads/connect-iq/sdk-manager/connectiq-sdk-manager-linux.zip|here]] | * download Connect IQ SDK from [[https://developer.garmin.com/downloads/connect-iq/sdk-manager/connectiq-sdk-manager-linux.zip|here]] | ||
Line 12: | Line 21: | ||
* run it | * run it | ||
<code> | <code> | ||
- | $ ./sbin/sdkmanager | + | $ ./bin/sdkmanager |
+ | </code> | ||
+ | * install SDK and Devices | ||
+ | * set up PATH | ||
+ | <code> | ||
+ | $ export PATH=$PATH:$(cat $HOME/.Garmin/ConnectIQ/current-sdk.cfg)/bin | ||
+ | </code> | ||
+ | * compile project and run it in simulator | ||
+ | <code> | ||
+ | $ monkeyc -d fenix6xpro -f projects/garmin/garmin_test/monkey.jungle -o projects/garmin/garmin_test/garmin_test.prg -y projects/garmin/developer_key | ||
+ | $ connectiq | ||
+ | $ monkeydo ~/projects/garmin/garmin_test/garmin_test.prg fenix6xpro | ||
</code> | </code> | ||
====== Setting up CLI SDK in Windows ====== | ====== Setting up CLI SDK in Windows ====== |