Menu

Main Menu
Talk Get Daily Search

Member's Online

    User Name
    Password

    QT Packaging help needed please

    Reply
    Page 1 of 2 | 1   2   | Next
    noobmonkey | # 1 | 2010-11-17, 17:47 | Report

    Hi Alls - have tarr'd up my app here and trying to figure out why there is no application in the application menu! (Not the icon disappearing issue, but it is literally not in the app menu)
    http://ubuntuone.com/p/Pia/ (Edit - i'm assuming you can see this? first time on ubuntu and using ubuntu one lol)

    i'm getting really confused with all the packaging guides, etc etc, and my main key areas of confusion are:
    The file structure needed, and how this changes depending on what you put in certain files.
    Also, what all the lines in certain files do, and how they affect things. Have seen many many examples, but none that shed light on the whole process yet.

    (Yes i'm aware there are many many ways of packaging, developing etc)

    I'm developing in the Nokia QT SDK, the app works fine on the device in testing.

    So i then put all these files in their right places,
    use mad dpkg-buildpackage
    then
    mad dpkg-buildpackage -sa -S

    I then get my dsc, changes and tar file, upload and it builds fine

    Any help would be greatly appreciated

    Edit | Forward | Quote | Quick Reply | Thanks

    Last edited by noobmonkey; 2010-11-17 at 17:49.

     
    nicolai | # 2 | 2010-11-17, 19:08 | Report

    Originally Posted by noobmonkey View Post
    Hi Alls - have tarr'd up my app here and trying to figure out why there is no application in the application menu! (Not the icon disappearing issue, but it is literally not in the app menu)
    No surprise, the contents of your deb-file:
    Code:
    dpkg --contents maecount_0.8.3_armel.deb 
    drwxr-xr-x root/root         0 2010-11-17 18:22 ./
    drwxr-xr-x root/root         0 2010-11-17 18:22 ./usr/
    drwxr-xr-x root/root         0 2010-11-17 18:22 ./usr/share/
    drwxr-xr-x root/root         0 2010-11-17 18:22 ./usr/share/doc/
    drwxr-xr-x root/root         0 2010-11-17 18:22 ./usr/share/doc/maecount/
    -rw-r--r-- root/root      1379 2010-11-14 22:16 ./usr/share/doc/maecount/copyright
    Originally Posted by noobmonkey View Post
    I'm developing in the Nokia QT SDK, the app works fine on the device in testing.
    Do you use the latest QT SDK?

    I am sorry I can not help more, but I use scratchbox most
    of the time and don't know exactly which files are generated
    by the Nokia SDK.

    Nicolai

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to nicolai For This Useful Post:
    noobmonkey

     
    kif | # 3 | 2010-11-17, 21:40 | Report

    Hi noobmonkey

    If all you want is an installation package (.deb) to install on your n900, the Nokia QT SDK can create the package for you, all you have to do is to select the Maemo build target, and build !

    To get an desktop icon you have to create an <your application>.desktop file and include it in the package (under projects / build steps/files to deploy) to be installed in /usr/share/applications/hildon, and of course you should include an icon too.

    Kim

    Edit | Forward | Quote | Quick Reply | Thanks

     
    robertnl | # 4 | 2010-11-17, 21:48 | Report

    Well, I'm working on that for the second night ... unsuccesfull ... (but still having fun with QT ;-)

    I'm using QtCreator 2.1 BETA. This version does a lot for you. It creates the package, deploys it to your n900 and install that one. So far, so good.

    The net has enough information about the content of the desktop file (should be in /usr/share/applications/hildon) and the icon (should be in /usr/share/icons/hicolor/64x64). But there is something that I haven't figured out yet.

    Or I put these files in the same directory as the source files and I add a specific command in the Project file to copy them to the correct directory on the n900. But what command do I use?

    Or I put these files in a path that matches the path on the n900. But what is the correct path?

    Any help is welcome!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    robertnl | # 5 | 2010-11-17, 21:53 | Report

    Hi kif,

    I can not find "projects/build steps/files to deploy". I do have "files to install" under RUN SETTINGS. But I do not work out how I can add files to that list.

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kif | # 6 | 2010-11-17, 22:14 | Report

    You need to change to Build settings, there you should be able to set the package settings (version, build etc).

    Kim

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kif | # 7 | 2010-11-17, 22:20 | Report

    Something like this



    In files to deploy you setelt source file and anter target path & filename.

    Kim

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to kif For This Useful Post:
    nicolai, robertnl

     
    robertnl | # 8 | 2010-11-17, 22:35 | Report

    Well, now I see the issue! Thanks for your post!

    I'm using Qtcreator 2.1 BETA at the moment. In that version I do not have the 'create package' under Build settings. I do see "files to deploy" under "Run Settings". Unfortunaly. that one does not have the '+' and '-' buttons.

    I've read that the final version of QtCreator 2.1 will do everything automatically for you. That explains why the 'create package' is missing. Unfortunaly "everything" automatically is not 100% correct yet in this BETA. I'll drop the team a mail. I think I have to switch back to 2.0.1. till this issue is solved (or I've found a workaround)

    Thanks for your image!

    Edit | Forward | Quote | Quick Reply | Thanks

     
    kif | # 9 | 2010-11-17, 22:43 | Report

    Ok, you can copy the extra files into the debian directory, and then build your project, this will include the extra files.

    You will find the debian directory in <your appplication>-build-maemo/debian/<your application>/debian, here you put the files in the
    coresponding directory structure as it should have on your n900.

    Kim

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following User Says Thank You to kif For This Useful Post:
    Wikiwide

     
    mece | # 10 | 2010-11-18, 00:04 | Report

    Originally Posted by noobmonkey View Post
    Hi Alls - have tarr'd up my app here and trying to figure out why there is no application in the application menu! (Not the icon disappearing issue, but it is literally not in the app menu)
    http://ubuntuone.com/p/Pia/ (Edit - i'm assuming you can see this? first time on ubuntu and using ubuntu one lol)

    i'm getting really confused with all the packaging guides, etc etc, and my main key areas of confusion are:
    The file structure needed, and how this changes depending on what you put in certain files.
    Also, what all the lines in certain files do, and how they affect things. Have seen many many examples, but none that shed light on the whole process yet.

    (Yes i'm aware there are many many ways of packaging, developing etc)

    I'm developing in the Nokia QT SDK, the app works fine on the device in testing.

    So i then put all these files in their right places,
    use mad dpkg-buildpackage
    then
    mad dpkg-buildpackage -sa -S

    I then get my dsc, changes and tar file, upload and it builds fine

    Any help would be greatly appreciated
    found a solution:

    edit rules,
    change APPNAME to maecount
    rename MaeCount.pro to maecount.pro
    in pro file change target.path to /usr/bin
    in desktop file change exec to lowercase maecount

    Works for me.

    Edit | Forward | Quote | Quick Reply | Thanks
    The Following 2 Users Say Thank You to mece For This Useful Post:
    nicolai, noobmonkey

     
    Page 1 of 2 | 1   2   | Next
vBulletin® Version 3.8.8
Normal Logout