ubuntu-phone team mailing list archive
-
ubuntu-phone team
-
Mailing list archive
-
Message #17192
Re: impossible to install 15.04 SDK using chroot on 14.04.3 LTS
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>
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
> Post to : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help : https://help.launchpad.net/ListHelp
>
Follow ups
References