maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Is the madde + Windows + QtCreator Guide missing a step? (https://talk.maemo.org/showthread.php?t=46784)

eitama 2010-03-08 13:18

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Quote:

Originally Posted by postformac (Post 559838)
I don't know how to package and deploy the final release other than by using MADDE (and I didn't get that working yet either, I have another thread on that).

What I mean is you can compile your project for Maemo inside QtCreator, as descibed in the original guide and then if you have your N900 connected to the PC via USB (with PCConnectivity running on your PC and Mad developer running on your device, just follow that guide exactly step by step for the setup) then after compilation has completed QtCreator will launch your app live on your device. You can then start and stop your app from within Qt creator on your PC, and interact with your app on the device. It's just a quick way to test your code is working ok before going through the process of packaging and deploying it properly.

Will that "install" the application on my N900? or just run it once?

postformac 2010-03-08 13:25

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Quote:

Originally Posted by eitama (Post 559844)
Will that "install" the application on my N900? or just run it once?

No, it won't leave the app on your device to run as standalone it will just run it once (or however many times you press play in QtCreator). Like I said it's just a quick way for you to test your code as you make changes, and also allows you to see exactly what your forms look like on the device without having to keep on repeatedly re-making the project in MADDE and deploying it.

eitama 2010-03-08 13:28

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Quote:

Originally Posted by postformac (Post 559852)
No, it won't leave the app on your device to run as standalone it will just run it once (or however many times you press play in QtCreator). Like I said it's just a quick way for you to test your code as you make changes, and also allows you to see exactly what your forms look like on the device without having to keep on repeatedly re-making the project in MADDE and deploying it.

Ok, thx for the info.
We are still missing one part then, how to package a QtCreator Qt project, into deb. AND on windows!

If you find out, let me know (:

postformac 2010-03-08 13:32

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Quote:

Originally Posted by eitama (Post 559858)
Ok, thx for the info.
We are still missing one part then, how to package a QtCreator Qt project, into deb. AND on windows!

If you find out, let me know (:

Well I think at the moment you still have to do it using the MADDE terminal in Windows and building a skeleton project to drop your source files into. I don't think there is currently a way to do this step from within Qt. I may be wrong but I haven't found or read any way.

danielwilms 2010-03-08 14:23

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Quote:

Originally Posted by postformac (Post 559865)
Well I think at the moment you still have to do it using the MADDE terminal in Windows and building a skeleton project to drop your source files into. I don't think there is currently a way to do this step from within Qt. I may be wrong but I haven't found or read any way.

There is a pretty good guide on how to package a Qt application for Maemo5. Try it out, and just use the "mad" command before "dh_make" and "dpkg-buildpackage". Let me know if you have issues with that.

Daniel

postformac 2010-03-08 14:44

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Quote:

Originally Posted by danielwilms (Post 559935)
There is a pretty good guide on how to package a Qt application for Maemo5. Try it out, and just use the "mad" command before "dh_make" and "dpkg-buildpackage". Let me know if you have issues with that.

Daniel

Ok I have just tried that and it seems to have worked, no error messages anyway. It's created a whole load of new files / folders in the original project folder. Now which files do I need to copy to the device, and where do I need to copy them to? I can't see any information on that in the guide (as well as no mention of the dpkg-buildpackage command...)

Thanks

eitama 2010-03-08 14:52

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Quote:

Originally Posted by postformac (Post 559967)
Ok I have just tried that and it seems to have worked, no error messages anyway. It's created a whole load of new files / folders in the original project folder. Now which files do I need to copy to the device, and where do I need to copy them to? I can't see any information on that in the guide (as well as no mention of the dpkg-buildpackage command...)

Thanks

If you used the MADDE with command line stuff,
It generates a .deb file. you just copy that to the device, and run it.
It will open the app manager and install your app, including Some default icon.

postformac 2010-03-08 15:16

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Ok I have done that- Copied it straingt to MyDocs via USB in mass storage mode, unpackaged it ini the terminal on the device using "dpkg -i <myapp.deb>" and it works! There is a blank icon for my app in the list of applications and it runs fine if I click it, thanks very much for the help.

I do notice though that my app is listed as "Mad Qt example" rather than by the app name, is this normal? Where / how do I set the app name correctly during the building / packaging process?

eitama 2010-03-08 15:21

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Quote:

Originally Posted by postformac (Post 560015)
Ok I have done that- Copied it straingt to MyDocs via USB in mass storage mode, unpackaged it ini the terminal on the device using "dpkg -i <myapp.deb>" and it works! There is a blank icon for my app in the list of applications and it runs fine if I click it, thanks very much for the help.

I do notice though that my app is listed as "Mad Qt example" rather than by the app name, is this normal? Where / how do I set the app name correctly during the building / packaging process?

First I am happy I could help, it means I am getting somewhere to (:
About the title, I don't know what project you just compiled, but you used a madde qt template, it's hardcoded somewhere as plain text.
Try rifling though the files and searching for that. I think it's in the .install file.

BLIZZARD 2010-10-22 16:37

Re: Is the madde + Windows + QtCreator Guide missing a step?
 
Quote:

Originally Posted by danielwilms (Post 559935)
There is a pretty good guide on how to package a Qt application for Maemo5. Try it out, and just use the "mad" command before "dh_make" and "dpkg-buildpackage". Let me know if you have issues with that.

Daniel

Hi,
I made a qt app that works (tested it with mad developer), and i am trying to make a deb. Can i make a deb for n900 using only windows? I googled and searched various sites but i didnt manage to make a working deb for n900 (i made some that when i try to install them on n900 says incompatible package)

Thanks.


All times are GMT. The time now is 12:15.

vBulletin® Version 3.8.8