View Single Post
d-iivil's Avatar
Posts: 2,154 | Thanked: 2,186 times | Joined on Dec 2009 @ Hellsinki, Finland
#3
Originally Posted by Venemo View Post
Hello,

At the moment I can't write all the code for you, but I can give you some pointers about how to do it.
  • Install Nokia Qt SDK (1.0 final is the latest)
  • Install the newest Qt Creator snapshot from here:
    ftp://ftp.qt.nokia.com/qtcreator/snapshots/
    (The version in the SDK is quite crappy)
  • Launch the newly installed Qt Creator
  • Create a new Gui Application project
  • Set the Maemo 5 Qt 4.6 as build target
  • Add to it a class (or use the generated one) and copy-paste to its .ui file yours from the designer
  • If you wanna run your app on your device, install the "Mad Developer" package on it, set the USB driver to "usb_ether" (Etheret - USB networking), then plug it in your PC, select "PC Suite mode" (if usb_ether is selected, that will be used), and set up USB networking on your PC.
  • In Qt Creator, Tools/Options/Projects/Maemo device configurations
  • Then, go to the "Projects" tab in the editor, and below the "Build steps", click on the arrow next to "Create Package", and check the "Skip packaging step" option
    - This will make it WAY faster to run your app.
  • Here is a tutorial about how to launch a process from a Qt app:
    http://wiki.forum.nokia.com/index.ph...Qt_for_Symbian
    (The tutorial has Symbian in its title, but it contains non-Symbian-specific code.)
  • For the shell scrips, you'll have to run "sh yourscript.sh" with QProcess
  • For generic C++ questions, you can search Google or ask on StackOverflow
  • If you want to make a .deb package, you can use Qt Creator's option to do so (but it is quite limited at the moment), or use MADDE and type "mad dpkg-buildpackage" into the command line (in your app's root folder)
  • There is a description somewhere in the Maemo Wiki about how to make it a Settings applet, but I couldn't find it now.

I know this was a very dense description, but I hope it will help!
Thanks for these! At least now I know a bit more what to google for
Already got mad developer working with QT Creator.
__________________
If you're rich and you think I deserve a cold beer, you may donate one or two :-P

80's style stadium rock is back - FIRENOTE
Hi-Octane heavy metal - FORCE MAJEURE