← Back to team overview

ubuntu-phone team mailing list archive

Re: impossible to install 15.04 SDK using chroot on 14.04.3 LTS

 

Hi David,

Thanks for the advice. I already had some help on irc from alex-abreu (http://irclogs.ubuntu.com/2015/12/07/%23ubuntu-app-devel.html), but that did not solve the problem yet. Indeed I am running into the icon issue. I am running Wily at the moment, and have 4.3.1-ubuntu3~ubuntu15.10.1 installed. You can see the results of my last attempt here: http://paste.ubuntu.com/13869516/

I noticed on the launchpad page you just updated the package, but only a build for trusty. Is it also possible to update the package for wily? Or is there any quick fix for the icon issue. I did not find that on the bug tracker.

Thanks a lot!

Mattias

On 09-12-15 11:01, David Barth wrote:
Mattias,

You need ubuntu-sdk-14.10 or superior, so ubuntu-sdk-15.04 is the one to go with Cordova now. 14.04 lacked device support and can only build desktop applications.

I re-ran the tests in a clean LTS container, using the cordova-ubuntu PPA. Please make sure to have cordova-cli-4.3.1-ubuntu4 installed, as it contains several fixes for the infamous icon issue.

To build with the non-default framework, you need :

$ cordova -d build ubuntu --device -- --framework ubuntu-sdk-15.04

the -- prevents cordova-cli from interpreting the parameter, which it does not support, and pass it directly to the cordova-ubuntu support libs which will know how to target the right click chroot.

Keep me posted if you still need help getting the app to build and run on the phone.

David

On Tue, Dec 1, 2015 at 3:48 AM, Zoltán Balogh <zoltan.balogh@xxxxxxxxxxxxx <mailto:zoltan.balogh@xxxxxxxxxxxxx>> wrote:

    On 30/11/15 22:17, Mattias wrote:

        Hi,

        I am following this guide for cordova beginners
        (http://developer.ubuntu.com/en/apps/html-5/guides/cordova-guide/)
        and I can't install the SDK for 14.10 or 15.04 using chroot:

        sudo click chroot -a armhf -f ubuntu-sdk.15.04 create
        Traceback (most recent call last):
          File "/usr/bin/click", line 86, in <module>
            sys.exit(main())
          File "/usr/bin/click", line 82, in main
            return mod.run(args)
          File
        "/usr/lib/python3/dist-packages/click/commands/chroot.py",
        line 231, in run
            return args.func(parser, args)
          File
        "/usr/lib/python3/dist-packages/click/commands/chroot.py",
        line 64, in create
            chroot = ClickChroot(args.architecture, args.framework,
        series=args.series)
          File "/usr/lib/python3/dist-packages/click/chroot.py", line
        157, in __init__
            series = framework_series[self.framework_base]
        KeyError: 'ubuntu-sdk.15.04'

        I only seem to be able to use ubuntu-sdk-14.04, which is also
        the Ubuntu release I am running (Ubuntu 14.04.3 LTS). When I
        use that to build the app, it only flashes once on my MX4
        (OTA-8), but is not functional. So assume I have to use
        another SDK.

        Should I update to 15.04? Or do I need to configure something
        so that the chroot works? In the guide is written that the
        14.04 LTS release is recommended for cordova app development
        under Ubuntu. Is this information up to date?

        Thanks!

        Mattias


    As start I would suggest to check out if you have the latest click
    packages

    $ apt-cache policy click

    should show you that you have 0.4.40+15.04.20151012-0ubuntu1
    version from the SDK PPA.

    If you do not have this version then please dist-upgrade.

    Anyhow, if click chroot is acting up then you can fall back to the
    statick chroots what come from the ubuntu-sdk-api-15.04-armhf and
    ubuntu-sdk-api-15.04-i386 packages.

    They bring you the very same chroot what click does, but it does
    not bootstrap the chroot, so it is a leaner and simpler way to set
    up the SDK build environment.

    But please feel free to ping me on IRC if you need any help,

    bzoltan


-- Mailing list: https://launchpad.net/~ubuntu-phone
    <https://launchpad.net/%7Eubuntu-phone>
    Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
    <mailto:ubuntu-phone@xxxxxxxxxxxxxxxxxxx>
    Unsubscribe : https://launchpad.net/~ubuntu-phone
    <https://launchpad.net/%7Eubuntu-phone>
    More help   : https://help.launchpad.net/ListHelp






Follow ups

References