← Back to team overview

ubuntu-phone team mailing list archive

Re: How to make deb package?

 

Even if the crossbuilder feature is not yet supported in the phablet SDK there are good solutions available.

I personally like to use the cowbuilder and cowbuilder-dist builders. You can create chroot traget with `cowbuilder-dist raring armhf create` (expect a bunch of deps)

Than make the source package the way you would do for desktop target:
$ dh_make -p %FOLDERNAME%_0.1 -s -y --createorig
$ debuild -i -I -S -sa -us -uc -nc

and build the armhf binary package with cowbuilder-dist build yourapp.dsc

or just log in to the armhf chroot and build with `dpkg-buildpackage -us -uc -nc`

bzoltan


On 04/08/2013 10:04 PM, Николай Шатохин wrote:
I've not have physical device yet, can I use emulator? How to do this?


2013/4/8 Zoltán Balogh <zoltan.balogh@xxxxxxxxxxxxx <mailto:zoltan.balogh@xxxxxxxxxxxxx>>

    On 04/08/2013 12:32 PM, Николай Шатохин wrote:
    Hello.

    How to make deb package for Ubuntu Phone? Where can I find good
    tutorial about this? I have c++ code in my app, how to make
    package that can be installed on different devices?
    How to make package for Desktop Ubuntu? Is it must be different
    packages?

    Best regards,
    Nick



    Even if officially there is no support for packaging software with
    the SDK tools we have experimental features enabled in the
    QtCreator plugin.

    Open your project and try the two experimental menus:

        Build -> Ubuntu ->Build && Install C++ project on Ubuntu
    Device (experimental)
        Build -> Ubuntu -> Build C++ project on Ubuntu Device
    (experimental)

    They actually work well with most of the Qt5 projects.

    Keep in mind that you still need the .desktop file properly
    configured. You can check out for examples in the QML project
    templates available from the application wizard.

    How the applications launched on the phone you can get a good
    understanding by checking out who the QtCreator does it with
    qmlscene and QML apps -> /usr/share/qtcreator/ubuntu/menu.json

    and feel free to ping me or anybody from the SDK team on the IRC :)

    cheers,

    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