SDK supported on Ubunut 20?

I downloaded the sdkmanager on my Ubuntu 20 host. When I try to run it IT complains:

$ sdkmanager
sdkmanager: error while loading shared libraries: libwebkitgtk-1.0.so.0: cannot open shared object file: No such file or directory

I have not been able to find libwebkitgtk-1.0-0 any where on the web to install it. My Ubuntu 20 host has libwebkit2gtk-4.0 installed and it seems libwebkitgtk-1.0-0 is no longer available for Ubunut.

Has anyone been able to get the sdkmanager to work in an Ubuntu 20 installation?

Thanks

Chris Kottaridis

  • It works. But you need to find libwebkitgtk-1.0-0 and other libraries it'll require after installing it.

    Now, I installed Kubuntu 21.04 but haven't installed the Eclipse and the SDK yet. I'm sure it'll run but, my main issue was I couldn't compile with any SDK later tan 3.1.9 due to lots of errors related to Json files. I'll try it today.

  • I installed the Eclipse and SDK on Kubuntu 21.04.

    First, the libraries I needed to use to install are these and I uploaded for convenience for who wants to try. These aqre not up to date actually, but were present in my local library:

    libjavascriptcoregtk-1.0-0 www.f-blog.info/.../libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb
    libicu60 www.f-blog.info/.../libicu60_60.2-3ubuntu3.1_amd64.deb
    libenchant1c2a www.f-blog.info/.../libenchant1c2a_1.6.0-11.4_amd64.deb
    libwebkitgtk-1.0-0 www.f-blog.info/.../libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb

    Later I needed to install libpng12 to run the simulator but couldn't due to some errors.

    www.f-blog.info/.../libpng12-0_1.2.54-1ubuntu1b_amd64.deb

    I simply exported data.tar.xz content to root directory and simulator runs well again with CIQ 3.1.9.

    Later I switched to the latest 4.0.2 and it does the same. Long list of errors related to parsing of device Json files.

  • Thanks sis651. I was able to install the libraries you mentioned and then sdkmanager ran and I installed all the SDK's and Devices. I also installed the connectIQ module in Eclipse and that all seems to be there.

    I have a project off in a git repository that I have had loaded on my Fenix5 watch but haven't messed with it for  maybe a couple of years. So, I created a project in eclipse from the git repository and indeed the files show up in eclipse. However, when I try to run the simulator I get a simulator window, but no Fenix5 watch. If I click on Help->About an error pops up:

    can't open file '/home/chris/.Garmin/ConnectIQ/Sdks/connectiq-sdk-lin-4.0.2-2021-05-13-9b3b7f19f/share/simulator/api.db' (error 2: No such file or directory)

    Indeed there is no api.db in that directory.

  • Well, I still get the missing api.doc file, but turns out I had an error in my old code and the build was failing. I fixed the code so the build succeeds and now the simulator shows the FENIX5 watch and the buttons seem to work.

    So, for the most part I am good to go, but still curious about the missing api.db file and whether it has an impact.

    Thanks

    Chris Kottaridis

  • api.db is not in share/simulator folder but in bin folder. You can try copy pasting or linking it from there.

    So 4.0.2 almost works for you? So maybe I should add some of its repositories and play with that.

  • I made the link and now when I go to Help->About in the simulator I do not get the error message.

    So, within my limits of understanding I seem to have everything working, sdkmanager, connectIQ extension to Eclipse, and the simulator on Ubuntu 20.04 using Connect IQ 4.0.2 as the SDK.

    Thanks for your help!

  • Here is the README.txt file with the specifics of what I did. I created it in case I need to do this again.

    README.txt:

    +++++++++++++++++++++++++++++++++

    I needed to download some libraries as recommended on connect IQ forum:

    forums.garmin.com/.../sdk-supported-on-ubunut-20

    The recommendation was:
    ====================================================
    I installed the Eclipse and SDK on Kubuntu 21.04.

    First, the libraries I needed to use to install are these and I uploaded for convenience for who wants to try. These aqre not up to date actually, but were present in my local library:

    libjavascriptcoregtk-1.0-0 www.f-blog.info/.../libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb
    libicu60 www.f-blog.info/.../libicu60_60.2-3ubuntu3.1_amd64.deb
    libenchant1c2a www.f-blog.info/.../libenchant1c2a_1.6.0-11.4_amd64.deb
    libwebkitgtk-1.0-0 www.f-blog.info/.../libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb

    Later I needed to install libpng12 to run the simulator but couldn't due to some errors.

    www.f-blog.info/.../libpng12-0_1.2.54-1ubuntu1b_amd64.deb

    I simply exported data.tar.xz content to root directory and simulator runs well again with CIQ 3.1.9.

    <picture of simulator>

    Later I switched to the latest 4.0.2 and it does the same. Long list of errors related to parsing of device Json files.

    <screen shot of errors>
    ====================================================

    I was able to download the packages by clicking on the links in the article above.

    I found I didn't have to manually install libenchant1c2a. When loading libwebkitgtk-1.0 it seemed to have found a version of libenchant1c2a to load as a dependency.

    I loaded them in this order:

    libicu60:
    ~/connectIQ/libs$ sudo apt install /home/chris/connectIQ/libs/libicu60_60.2-3ubuntu3.1_amd64.deb

    libjavascriptcoregtk-1.0-0:
    ~/connectIQ/libs$ sudo apt install /home/chris/connectIQ/libs/libjavascriptcoregtk-1.0-0_2.4.11-3ubuntu3_amd64.deb

    libwebkitgtk-1.0-0:
    ~/connectIQ/libs$ sudo apt install /home/chris/connectIQ/libs/libwebkitgtk-1.0-0_2.4.11-3ubuntu3_amd64.deb

    This allowed me to run sdkmanager, however it complained:

    $ bin/sdkmanager
    Gtk-Message: 04:43:59.652: Failed to load module "canberra-gtk-module"

    I then used the synaptic package manager to install canberra-gtk-module and now when I run sdkmanager it comes up and I don't see the above error.

    I also installed the following since the note implied the simulator needed it:
    libpng-12:
    ~/connectIQ/libs$ sudo apt install /home/chris/connectIQ/libs/libpng12-0_1.2.54-1ubuntu1b_amd64.deb

    When running the simulator if you clicked on Help->About you'd get an error like this:

    can't open file '/home/chris/.Garmin/ConnectIQ/Sdks/connectiq-sdk-lin-4.0.2-2021-05-13-9b3b7f19f/share/simulator/api.db' (error 2: No such file or directory)

    In the same thread as above it was pointed out that there is an api.db in bin, but not one in share. So, per the recommendation I made the following link:

    ~/.Garmin/ConnectIQ/Sdks/connectiq-sdk-lin-4.0.2-2021-05-13-9b3b7f19f/share/simulator$ link ../../bin/api.db api.db

    ++++++++++++++++++++++++++++++++++++++++++