← Back to team overview

ubuntu-phone team mailing list archive

Re: Errors after installing ubuntu-sdk

 

Thank you, i just updated to 14.10 to match qt 5.3 version. I want to clarify: there are no way to compile and run qmake .pro project on emulator right now? I'm not strict to QtC, can build using cli, if possible.

05.09.2014 00:30, Sam Segers пишет:
Hi

With current UbuntuSDK, cross compiling qmake projects doesn't work. It might in the future.
It was discussed on this mailing list and should be somewhere on the site.
There is a tutorial on Ubuntu on how to cross compile in the SDK:
http://developer.ubuntu.com/apps/sdk/tutorials/building-cross-architecture-click-applications/
For the emulator, replace armhf with i386.

If you have an emulator running, it should be listed in the device tab in the SDK. Then you can just press run button and it'll run on the emulator if the cross compiling works.

If you need additional libs for your app, you need to install them in this chroot and copy them in your package in the cmake project.


2014-09-04 20:20 GMT+02:00 Andrey Kozhevnikov <coderusinbox@xxxxxxxxx <mailto:coderusinbox@xxxxxxxxx>>:

    Thank you for answer.

    Where can i get info why i can't crosscompile qmake projects and
    how can i compile it at all? I want to build it for emulator.

    With best regards,
    Andrey

    05.09.2014 00:15, Sam Segers пишет:
    Hi and welcome

    This UbuntuSDK for i386 kit is mend for cross compiling your app
    for i386. It uses a chroot so that it uses all the i386 libs
    instead of the host ones. If you want to run it on the desktop,
    you don't want to use this kit, you want to use the Default one.
    You can choose the kit on the left, above the run icon. Keep in
    mind that you have Qt5.2.1 on your system and the phones ships
    with Qt5.3.0. There are many differences.

    If you want to build for the phone, you want to create a kit.
    This can be done in the Ubuntu tab in options. Apparently, you
    already have a i386 kit, but the gcc cross-compiler appears to be
    wrong. Best to delete this one and add a new one. Cross-compiling
    only works with cmake based projects, not qmake (with pro files).

    There are many examples in the "New file or project" dialog to
    help you get started. All the doc's for Ubuntu specific (and also
    the standard Qt) API can be found at Apps | Ubuntu Developer
    <http://developer.ubuntu.com/apps>


    2014-09-04 16:40 GMT+02:00 Andrey Kozhevnikov
    <coderusinbox@xxxxxxxxx <mailto:coderusinbox@xxxxxxxxx>>:

        Hello!

        I'm new ubuntu phone member and just installed ubuntu-sdk to
        port some of my projects to this platform.

        After installing ubuntu-sdk i cannot build template project,
        error message says: "No packaging directory available, please
        check if deploy configuration is correct"

        In build & run settings i have weird configuration. Please
        check following screenshots:
        http://i.imgur.com/KR1c4kh.png
        http://i.imgur.com/1qB8OO0.png
        http://i.imgur.com/1WhFwbK.png
        http://i.imgur.com/GpdO8f9.png

        I have enabled ppas:
        deb http://ppa.launchpad.net/ubuntu-sdk-team/ppa/ubuntu
        trusty main
        deb
        http://ppa.launchpad.net/canonical-qt5-edgers/qt5-proper/ubuntu
        trusty main

        Any help and suggestions will be appreciated.

        With best regards,
        Andrey

-- 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