maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   Qt Mobility installation in qt (Ubuntu and windows 7) (https://talk.maemo.org/showthread.php?t=72295)

pradeep 2011-04-18 19:16

Qt Mobility installation in qt (Ubuntu and windows 7)
 
Hi,

I am trying to install qt mobility in both windows 7 and the ubuntu. I have already installed the qt sdk and now the problem is to install qt mobility addons.

Here is the process -

1. In case of windows 7, I have downloaded the qt mobility latest package qt-mobility-opensource-src-1.1.1.zip. After extracting this package under the c: \ qt-mobility, I have changed the environment variable of the system. I hv appended the c:\qt-mobility\lib under the environment variable (although there is no lib folder exists in the qt-mobility-opensource-src-1.1.1.zip). After this I want to add the qt mobility path in the qt creator but I cannot find the add button.

One of the website suggests - "Qt Mobility documentation in Qt Creator: Go to Tools -> Options -> Help -> Add. Then browse C:\qtmobility/doc/qch/qtmobility.qch. "

Where is the add button under the help option? Can anyone please tell me?

I am not even able to do this
cd \qtmobility
configure

evertime the error message is

Cannot find qmake in your PATH.
Aborting.


Please let me know the whole procedure for installing on the windows 7 and ubuntu

I tried to configure the qt mobility folder in ubuntu but it also return this message "Cannot find qmake in your PATH. Aborting."


Pardeep

uvatbc 2011-04-19 04:45

Re: Qt Mobility installation in qt (Ubuntu and windows 7)
 
Have you installed the Qt SDK from here? It already has QtMobility.

Why do you need to install it again? What exactly are you trying to do?

pradeep 2011-04-19 06:09

Re: Qt Mobility installation in qt (Ubuntu and windows 7)
 
yes i have installed qt sdk but when i am trying to execute an application having qt mobility functionalities then it is giving errors.

such as "/src/compass-build-desktop/../compass/mainwindow.h:9: error: QGeoPositionInfo: No such file or directory"

I have included the following #include <QGeoPositionInfo> but it is not recognized by the system

any pointers?

uvatbc 2011-04-19 06:45

Re: Qt Mobility installation in qt (Ubuntu and windows 7)
 
Quote:

Originally Posted by pradeep (Post 991555)
yes i have installed qt sdk but when i am trying to execute an application having qt mobility functionalities then it is giving errors.

such as "/src/compass-build-desktop/../compass/mainwindow.h:9: error: QGeoPositionInfo: No such file or directory"

I have included the following #include <QGeoPositionInfo> but it is not recognized by the system

any pointers?

Have you added mobility and location to your pro file?
Code:

CONFIG += mobility
MOBILITY = location


pradeep 2011-04-19 06:55

Re: Qt Mobility installation in qt (Ubuntu and windows 7)
 
yes, i have included that in the pro file.

here is the link of the project https://projects.forum.nokia.com/compass
if you download compass_v0_9.zip and execute it then you will see the errors?

uvatbc 2011-04-19 15:49

Re: Qt Mobility installation in qt (Ubuntu and windows 7)
 
Quote:

Originally Posted by pradeep (Post 991579)
yes, i have included that in the pro file.

here is the link of the project https://projects.forum.nokia.com/compass
if you download compass_v0_9.zip and execute it then you will see the errors?

What target are you trying to compile on?
This is a Symbian only example.

ksiedzulek 2011-12-24 13:28

Re: Qt Mobility installation in qt (Ubuntu and windows 7)
 
Hi,

I have similar problem on mac and ubuntu:/

I have downloaded qt SDK and how I understand it has QtMobility, but when I try to open 'demos and examples' and run, for example "Bluetooth Scanner Example" some erros appears because program doesn't recognize some headers:


http://img833.imageshack.us/img833/7293/example2q.png

this is a original btscanner.pro:

Quote:

TARGET = btscanner

INCLUDEPATH += ../../src/connectivity/bluetooth
DEPENDPATH += ../../src/connectivity/bluetooth

include(../mobility_examples.pri)

CONFIG += mobility
MOBILITY = connectivity
TEMPLATE = app

SOURCES = \
main.cpp \
device.cpp \
service.cpp

HEADERS = \
device.h \
service.h

FORMS = \
device.ui \
service.ui

symbian {
TARGET.CAPABILITY = ReadDeviceData LocalServices WriteDeviceData
}

OTHER_FILES += \
qtc_packaging/debian_harmattan/rules \
qtc_packaging/debian_harmattan/README \
qtc_packaging/debian_harmattan/manifest.aegis \
qtc_packaging/debian_harmattan/copyright \
qtc_packaging/debian_harmattan/control \
qtc_packaging/debian_harmattan/compat \
qtc_packaging/debian_harmattan/changelog

Installation proceeded smoothly without errors on mac and ubuntu. I think I should configure something. maybe INCLUDEPATH? or DEPENDPATH?

if U could run this example and tell me what should I do. I 'll be very grateful.

p.s. if this is an example, does not it should be configured by Trolltech, so that anyone can run it without problems? strange..

p.s2. Merry Christmas!


All times are GMT. The time now is 10:45.

vBulletin® Version 3.8.8