Meego Wiki
Views

MeeGo SDK for Windows

From MeeGo wiki
Revision as of 10:57, 26 October 2010 by Maxayu (Talk | contribs)
Jump to: navigation, search

Note: This page contains instructions on install MeeGo SDK for Windows, and use it to build/deploy/debug apps.

Contents

How to report bugs

  • URL: http://bugs.meego.com .
  • Product name: MeeGo SDK
  • Bug summary: Please have "[Windows]" in the begining of your bug summary.

System Requirement

  • Windows XP and Windows 7 are officially supported by MeeGo SDK. MeeGo SDK may work on Windows Vista, but it is not officially supported.
  • Emulator can only work with 32-bit Windows. If you are using 64-bit Windows, you cannot use emulator.

Known issues and possible workarounds

  • Currently the emulator is for IA target only.
  • MeeGo SDK ships Qt 4.7.0 within it, and Qt will always be installed to C:\Qt\4.7.0. This means:
    • MeeGo SDK cannot be installed to a system without disk "C".
    • Your selection for the install directory will only take effect to other parts of MeeGo SDK.
  • You should better install MeeGo SDK to disk "C", as a workaround for bug #8926.

Setup MeeGo SDK

  1. Download MeeGo SDK installer. You can choose either offline or online installer:
  2. FileDescriptionSize
    N/A MeeGo SDK Windows online installer 13.1MB
    ftp://ftp.intel.com/pub/outgoing/meego-sdk-installer-1026.exe (external)
    http://osve-files.sh.intel.com/pub/misc/sdk/meego-sdk-installer-1026.exe (Intel internal)
    MeeGo SDK Windows offline installer 1.4GB
  3. After installation, go to Start->Programs->MeeGo SDK->QtCreator to launch QtCreator
  4. Configure Qt Creator to support MeeGo sysroot
  5. Go to the menu: Tools -> Options -> Qt4 -> Qt Versions.
    Click the "+" button, and then fill the "Version name" and the "qmake location" of MeeGo target:

    • Version name: meego-handset
    • qmake location: ${MEEGO_SDK}\MADDE\0.7.45\targets\<target name>\bin\qmake.exe (Where ${MEEGO_SDK} is the directory you choose to install MeeGo SDK, default to C:\MeeGoSDK)

    Meego sdk options windows.png

Use Qt Creator to develop MeeGo Applications

  1. Create a MeeGo touch project (for handset) or Qt Gui project (for netbook)
  2. Go to the menu: File -> New File or Project -> Qt Application Project -> Meego Touch Framework Application.
    Windows sdk 2.png

    In "Project setup" dialog, choose "meego-handset".

    Windows sdk 3.png

  3. Set up emulator: Install kqemu accelerator for QEMU on 32-bit Windows system
  4. Notice: The kqemu could only be used on 32-bit Windows. 64-bit Windows could not work with kqemu. You can not use emulator on 64-bit Windows. Use real device instead.

    Download package from http://wiki.qemu.org/download/kqemu-1.4.0pre1.tar.gz

    Get the kqemu.inf and kqemu.sys files from above package

    For WindowsXP system, right click the kqemu.inf file and select "install".

    For WindowsVista system, edit the kqemu.inf file to do below changes, and then right click the kqemu.inf, select "install".

      [DefaultInstall.NT] --> [DefaultInstall]
      [DefaultInstall.NT.Services] --> [DefaultInstall.Services]
      [Uninstall.NT] --> [Uninstall]
      [Uninstall.NT.Services] --> [Uninstall.Services]
    

    TODO: Add instructions for Windows 7 system

    Start the kqemu manually:

    net start kqemu
    


  5. Create an emulator runtime for MeeGo

  6. Get to the menu: Tools -> Options -> Projects -> MeeGo Device Configurations. Click "Add" button to add a runtime for emulator. Set "Device type" to "MeeGo emulator"; set "Authentication type" to "Password"; set "Username" to "root"; set "Password" to "meego".
    Meego sdk emulator.png

  7. Set Run Configuration
  8. Click "Projects" again on the left side. Select "Run" in the MeeGo Build/Run box at the top. Make sure that the "Device configuration" is set to "MeeGo Emulator". This will ensure that QEMU is started when you run your application. You can now launch the QEMU MeeGo emulator. Click the "Start Meego emulator" icon near the bottom left corner of Qt Creator (circled in red in the screenshot below).
    Meego sdk run.png

  9. Build, run and deploy the application
  10. After QEMU starts, click the "Run" icon to run your application. Qt Creator will package and deploy your application to QEMU and start it on the target. You can see the window of your application in QEMU.
    Image rotation: If you are using the MeeGo handset image, you can rotate the screen with ALT+SHIFT+R
    Meego mtf run.png

    Note: The emulator does not have skin currently.

  11. Debug the application
  12. You can also debug the application by clicking the "Debug" icon. Setting breakpoints and stepping are the same as local applications.
    Meego sdk debug.png

SSH into QEMU Image

Anytime MeeGo is running in QEMU, you can use SSH to connect to the image from another terminal on the host system.

  1. Launch QEMU with MeeGo image (step #5 above)
  2. From a terminal on the host, connect to the running image
  3. $ ssh meego@127.0.0.1 -p 6666
    

Two user accounts are available in the MeeGo images:
User: meego Password: meego
User: root      Password: meego

Configure Qt Creator to work with real devices

Qt Creator working with QEMU is out of the box, but sometimes we need to work with real device. Here is how:

  1. Go to Tools -> Options -> Projects -> MeeGo Device Configurations and click "Add" button. Select "Remote Device" for "Device type", input other information and give a name for this configuration
  2. Real device.png

  3. Open your project and in the "Projects" mode, click "Run" in the little MeeGo target window, and select the configuration you just created in "Device Configuration"
  4. Select run configuration.png

  5. Click "Run" or "Debug" on the lower left corner of Qt Creator to run or debug your application on the configured Device.
Personal tools