Results 1 to 2 of 2

Thread: Nokia Qt SDK 1.1.3 doen't support QtMobility in QML for Simulator

  1. #1
    Join Date
    Oct 2010
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows Symbian S60 Maemo/MeeGo

    Default Nokia Qt SDK 1.1.3 doen't support QtMobility in QML for Simulator

    The latest Nokia QT SDK doesn't support QtMobility in QML for Visual Studio 2008.
    Prerequisites:
    Windows XP SP3
    MVS 2008 Express edition
    Nokia Qt SDK 1.1.3

    Tried to launch any QML mobility examples. All are failed with the same error. As example: declarative-location\mapviewer
    Error is loading location plug library:

    1.2 Library as ""
    QDeclarativeImports(file:///C:/QtSDK/projects/mapviewer-build-simulator-Simulator_Qt_for_Visual_Studio_2008__Qt_SDK__Relea se/mapviewer.qml::importExtension: loaded "C:/QtSDK/Simulator/Qt/msvc2008/imports/QtMobility/location/qmldir"
    QDeclarativeImportDatabase::importPlugin: "QtMobility.location" from "C:/QtSDK/Simulator/Qt/msvc2008/imports/QtMobility/location/declarative_location.dll"
    file:///C:/QtSDK/projects/mapviewer-build-simulator-Simulator_Qt_for_Visual_Studio_2008__Qt_SDK__Relea se/mapviewer.qml:42:1: plugin cannot be loaded for module "QtMobility.location": Cannot load library C:/QtSDK/Simulator/Qt/msvc2008/imports/QtMobility/location/declarative_location.dll: The specified procedure could not be found.
    import QtMobility.location 1.2
    ^

    Though this library is installed in mentioned path except Windows correct path with backward slash:
    C:\QtSDK\Simulator\Qt\msvc2008\imports\QtMobility\ location\declarative_location.dll.

    I suppose that some code into Simulator doesn't change the path in correct way before calling Windows ::LoadLibrary system function. Do you know how can I fix this issue?

  2. #2
    Join Date
    Sep 2008
    Posts
    3
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Nokia Qt SDK 1.1.3 doen't support QtMobility in QML for Simulator

    The plugin can not be loaded if the mobility dlls are not available. There is a line in the pro file which QtCreator needs to add the mobility lib path to the run environment:
    Qt Code:
    1. #required by Qt SDK to resolve Mobility libraries
    2. CONFIG+=mobility
    To copy to clipboard, switch view to plain text mode 
    ^^ is that missing in your pro file?

    You can accomplish the same if you add the path manualy in the build configuration in creator:

    "Projects" -> "Run" -> "Run-Environment" -> "Details" -> "PATH" and then add there c:\QtSDK\Simulator\QtMobility\msvc2008\lib;

Similar Threads

  1. Nokia N900 Qt With Mysql Support
    By ShapeShiftme in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 6th June 2011, 04:15
  2. Getting error in QTMobility Stuffs
    By sk.qt in forum Newbie
    Replies: 3
    Last Post: 22nd November 2010, 08:20
  3. QTMobility API
    By Girija in forum Newbie
    Replies: 6
    Last Post: 23rd October 2010, 06:42
  4. How to install QtMobility?
    By radeknati in forum Qt for Embedded and Mobile
    Replies: 0
    Last Post: 2nd June 2010, 10:30
  5. rendering svg using QGraphicsSVGItem slows doen the performance
    By sanjayshelke in forum Qt Programming
    Replies: 4
    Last Post: 1st September 2009, 06:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.