How to start using QtMobility beta?
-
I've looked through all of the forums and blog post regarding the QtMobility 1.1 beta, and can't find any simple guide on how to actually get started using it.
Here is what I'm trying to do: Port a simple map-based iPhone app to Qt/Symbian, for running on the N8. I already have Nokia Qt 1.0.1 installed, and built some simple 'hello world' style apps to get used to the tools and platform. So far, so good. I'm now trying to build something similar to the maps example I can see in the screens in the QtMobility 1.1 beta, but I can't find any information on how to get from where I am to there!
I'm running on Windows since Symbian support is not available on anything else yet.I've done the following:
-
Unzipped qt-mobility-symbian-opensource-1.1.0-beta.zip. The installation docs say that I need to run configure, so I run 'configure -prefix c:\NokiaQtSDK'. This reports:
"
Checking available Qt
4.6.4
" and then checks a few things, some say OK, others say Not Found. -
The docs then say to run 'nmake', but this isn't found. Do I need to set up a path somewhere? The docs say 'To create and install the libraries and tools from a Microsoft Visual Studio command prompt'. What? Where do I find this?
-
I tried opening the qtmobility.pro project and selecting 'Simulator' target, but the build fails with lots of errors, the first one of which is:
../../../qt-mobility-symbian-opensource-1.1.0-beta/build/Debug/QtMobilitySimulator/mobilityconnection.o:C:\qtmobilityBeta\qtmobility-build-simulator\src\mobilitysimulator/../../../qt-mobility-symbian-opensource-1.1.0-beta/src/mobilitysimulator/mobilityconnection.cpp:221: undefined reference to `QtSimulatorPrivate::IncomingRemoteMetacall::read(QByteArray*)'
Maybe there is some doc I haven't found yet, but please could someone tell me in simple steps what I need to do, have installed, have PATHs set up, etc. in order to build the map viewer example on the Symbian simulator and target?
Thanks.
-
-
From what i remember you dont need to compile the source.
Follow this tutorial ("tutorial":http://wiki.forum.nokia.com/index.php/Setting_up_environment_for_Qt_Mobility_API#Setup_Qt_Mobility_API) on how to set up qt mobility
-
So, has no-one else got any suggestions? Or is it just the case that no one else has managed to get this working either?
I've just tried again with Beta 2, but still run into compile errors.
Please could someone answer the following questions for me?
- What do I need to have installed before trying to build Qt Mobility Beta 2?
qt-sdk-win-opensource-2010.05.exe or Nokia_Qt_SDK_Win_offline_v1_0_1_en.exe, or both?
I'm using the Nokia_Qt_SDK, installed to c:\NokiaQtSDK101.
When I run qmake -query, I get the following:
C:\qtmobilityBeta2\qt-mobility-opensource-src-1.1.0-beta2>qmake -query
QMAKE_MKSPECS:C:\NokiaQtSDK101\Simulator\Qt\mingw\mkspecs\default
QT_INSTALL_PREFIX:C:\NokiaQtSDK101\Simulator\Qt\mingw
QT_INSTALL_DATA:C:\NokiaQtSDK101\Simulator\Qt\mingw
QT_INSTALL_DOCS:C:\NokiaQtSDK101\Simulator\Qt\mingw\doc
QT_INSTALL_HEADERS:C:\NokiaQtSDK101\Simulator\Qt\mingw\include
QT_INSTALL_LIBS:C:\NokiaQtSDK101\Simulator\Qt\mingw\lib
QT_INSTALL_BINS:C:\NokiaQtSDK101\Simulator\Qt\mingw\bin
QT_INSTALL_PLUGINS:C:\NokiaQtSDK101\Simulator\Qt\mingw\plugins
QT_INSTALL_IMPORTS:C:\NokiaQtSDK101\Simulator\Qt\mingw\imports
QT_INSTALL_TRANSLATIONS:C:\NokiaQtSDK101\Simulator\Qt\mingw\translations
QT_INSTALL_CONFIGURATION:C:/NokiaQtSDK101/Simulator/Qt/mingw
QT_INSTALL_EXAMPLES:C:\NokiaQtSDK101\Examples\4.6
QT_INSTALL_DEMOS:C:\NokiaQtSDK101\Demos\4.6
QMAKE_MKSPECS:C:\NokiaQtSDK101\Simulator\Qt\mingw\mkspecs
QMAKE_VERSION:2.01a
QT_VERSION:4.7.0When I run configure, I get the error:
Checking available Qt
4.7.0
Checking make
Cannot find 'nmake', 'mingw32-make' or 'make' in your PATH
Aborting.However, I have nmake in my path:
C:\qtmobilityBeta2\qt-mobility-opensource-src-1.1.0-beta2>nmake
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.cd src\ && nmake -f Makefile
Microsoft (R) Program Maintenance Utility Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.Makefile(250) : fatal error U1085: cannot mix implicit and explicit rules
Stop.
NMAKE : fatal error U1077: 'C:\WINNT\system32\cmd.exe' : return code '0x2'
Stop.So, can someone shed any light on this? Or is no one really expected to use this yet except for some people inside Nokia that know that magic commands to use?
I need to give a quotation for the Qt port of the project by Friday. If I can't get this resolved, then I'll have to tell them that the Qt/Symbian port is not possible and they have to stick with the iPhone version. I was under the impression that Nokia wanted more developers for their platform?
-
Hi Sean,
Please see "installation.html":http://doc.qt.nokia.com/qtmobility-1.1-tp/installation.html particularly the section Building For Symbian On Windows. From your logs and explanation above, it looks like you're attempting to build the Mobility package for Symbian with nmake, which of course cannot work.
As archerabi notes, you don't actually have to build Mobility for Symbian at all - the beta2 package for Symbian contains .sis files for the device, and some .zip files (each of which contains the built Mobility 1.1 Beta (libs/headers/rscs/etc) for a particular version of Symbian S60 or Symbian^3).
Certainly, following the steps in the installation documentation should allow you to build your application (which uses the 1.1 APIs for mapping and navigation) for Symbian devices. The important thing is that for Symbian, Mobility 1.1-beta2 is already built. You simply have to build your application for Symbian against the headers and prebuilt libs provided in the package.
As for building for and deploying to the Nokia Qt SDK Simulator, I'm not entirely certain whether that's possible with Qt Mobility 1.1-beta at the moment (the current version of the SDK supports Mobility 1.0.2 I believe; I'm not certain what's required to upgrade the SDK mobility version from 1.0.2 to 1.1.0-beta2. It may be as simple as copying the contents of the .zips into the epoc32 directory (for the correct version of Symbian) in the Nokia Qt SDK, but I'm not sure). In the meantime, you could try using the Symbian Emulator which comes with your Symbian SDK (epoc).
I hope this helps.
Cheers,
Chris.[mark up link, Tobias Hunger]
-
Thanks for the information.
[quote author="chriadam" date="1286339315"]As for building for and deploying to the Nokia Qt SDK Simulator, I’m not entirely certain whether that’s possible with Qt Mobility 1.1-beta at the moment (the current version of the SDK supports Mobility 1.0.2 I believe; I’m not certain what’s required to upgrade the SDK mobility version from 1.0.2 to 1.1.0-beta2.[/quote]
Ok - I think this was what I was getting hung up on. Since the Nokia Qt SDK comes with Qt Simulator and Symbian / Meego targets, I made an assumption that the Qt Mobility SDK also supports these targets. I think it would have been better to state on the installation page that Qt Simulator is not supported.
I don't have a seperate Symbian SDK installed - can the Symbian target that comes with the Nokia Qt SDK be used, or do I need to somehow install and configure a seperate Symbian^3 SDK?