maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   MeeGo / Harmattan (https://talk.maemo.org/forumdisplay.php?f=45)
-   -   compiling qtmobility-1.2.0-opensource (https://talk.maemo.org/showthread.php?t=88014)

paoletto 2012-11-26 12:39

compiling qtmobility-1.2.0-opensource
 
Hi
I would like to be able to link against the c++ classes behind QML Elements wrapping Qt Mobility.

I was thinking that i could try to compile the whole qtmobility 1.2.0, and then include those headers, and link against the compiled library.
But i dont know how to set up qmake in order to use the madde that ships with QtSDK. Does anybody know a link to a step-by-step tutorial to do that?

Alternately, is there any other approach to use (or rather create) qtmobility QML elements in C++?
I just need few stuff.. basically Coordinate, Polyline and a few other elements from QtMobility Location

thanks

ajalkane 2012-11-26 12:50

Re: compiling qtmobility-1.2.0-opensource
 
Quote:

Originally Posted by paoletto (Post 1298516)
But i dont know how to set up qmake in order to use the madde that ships with QtSDK. Does anybody know a link to a step-by-step tutorial to do that?

Madde has it's own qmake that you should use. Put it into your PATH so that it's the default qmake used and you should be ready to try.

I don't remember where it's located, but search under QtSDK/Madde and you should find the correct one.

student4life 2012-11-26 14:11

Re: compiling qtmobility-1.2.0-opensource
 
1 Attachment(s)
check QGeoPositionInfoSource for finding location from C++ code.
for sample C++ code see attachment

class for polyline QGeoMapPolylineObject

entire list of C++ classes from QtMobility Location can be found here

paoletto 2012-11-26 15:50

Re: compiling qtmobility-1.2.0-opensource
 
Yes, my problem is that i want to use these as QML Map Polyline element, and the like.

I know that these elements are in practice backed by these QtMobility c++ objects, but there's one thin layer missing.

Anyway, i tried this:

./configure -release -examples -demos -maemo6 -qmake-exec /local/paolo/QtSDK12/Madde/madbin/qmake

and i get:

Running /local/paolo/QtSDK12/Madde/madbin/qmake...

/local/paolo/QtSDK12/Madde/madbin/qmake: 42: mad: not found
Command 'qmake' is not available for this target ().

Enter '/local/paolo/QtSDK12/Madde/madbin/qmake -v' for more information.


configure failed.


do i have to set up madde somehow? i never used it outside qtcreator

student4life 2012-11-26 16:26

Re: compiling qtmobility-1.2.0-opensource
 
try adding /local/paolo/QtSDK12/Madde/madbin to your PATH env variable
if you are using bash, the command is
export PATH= /local/paolo/QtSDK12/Madde/madbin:$PATH

paoletto 2012-11-26 16:52

Re: compiling qtmobility-1.2.0-opensource
 
Quote:

Originally Posted by student4life (Post 1298603)
try adding /local/paolo/QtSDK12/Madde/madbin to your PATH env variable
if you are using bash, the command is
export PATH= /local/paolo/QtSDK12/Madde/madbin:$PATH

Tried, i get the same problem, in addition i think some binaries inside madbin are now prioritized over the others, and uname for instance gets called in its wrong version..

Probably some other MADDE environment var?

student4life 2012-11-26 17:20

Re: compiling qtmobility-1.2.0-opensource
 
the build environment in the QtCreator indicated following PATH env variable

/local/paolo/QtSDK12/Madde/targets/harmattan_10.2011.34-1_rt1.2/bin:/local/paolo/QtSDK12/Madde/bin:/local/paolo/QtSDK12/Madde/madlib:/local/paolo/QtSDK12/Madde/madbin:/local/paolo/QtSDK12/Desktop/Qt/474/gcc/bin:$PATH

other environment var in QtCreator for harmattan project can be checked in Projects->Targets->Harmattan->Build Settings->Build Environment->Details


All times are GMT. The time now is 23:08.

vBulletin® Version 3.8.8