Go Back   maemo.org - Talk > OS / Platform > Development
 
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
  #61  
Old 2011-07-11, 20:19
piggz piggz is offline
 
Join Date: Nov 2010
Posts: 213
Thanks!: 2
Thanked 414 Times in 111 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

On a separate issue....on my desktop, when i tell the QGraphicsGeoMap to fit the map to the boundingBox of a QGeoMapObject, it mostly works, tho is a little off....on my phone, the map zooms out as far as it can, showing the whole world, but if i zoom into my object it is there
Reply With Quote
  #62  
Old 2011-07-11, 20:59
Creamy Goodness Creamy Goodness is offline
 
Join Date: Feb 2008
Location: Edmonton, AB
Posts: 1,463
Thanks!: 982
Thanked 1,916 Times in 622 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

Well, you can look at my code here. (Go to void MapsWidget::initialize)
It doesn't work 100% correct either. As you can tell by my comments, I'm not impressed!
Reply With Quote
  #63  
Old 2011-07-11, 21:02
piggz piggz is offline
 
Join Date: Nov 2010
Posts: 213
Thanks!: 2
Thanked 414 Times in 111 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

Quote:
Originally Posted by Creamy Goodness View Post
Well, you can look at my code here. (Go to void MapsWidget::initialize)
It doesn't work 100% correct either. As you can tell by my comments, I'm not impressed!
wow, how many classes do you have in that one file?

Have you tried running it with LD_LIBRARY_PATH as i did?
Reply With Quote
  #64  
Old 2011-07-11, 21:08
Creamy Goodness Creamy Goodness is offline
 
Join Date: Feb 2008
Location: Edmonton, AB
Posts: 1,463
Thanks!: 982
Thanked 1,916 Times in 622 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

Yeah, I took the 6 or so files from the maps demo and combined them into that one. I just wanted a map, not all the crazy reverse geocode and searching abilities, so I thought it can be simple and go in one file... I guess I made a nice mess instead, but if it works, I'm not changing it
I wasn't really sure what that means, "LD_LIBRARY_PATH", I have to google it. I really don't know how my app even launches, I just use Qt Creator and hit deploy and then the "play" button can launch it for me. I don't really have time right now as I'm supposed to be doing my other job, using a f'ing sql server to do what idiots in our forecasting department should be doing with excel :\
Reply With Quote
  #65  
Old 2011-07-11, 21:11
piggz piggz is offline
 
Join Date: Nov 2010
Posts: 213
Thanks!: 2
Thanked 414 Times in 111 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

open xterm
type in the name of your executable, followed by enter
it should crash with the unresolved symbol error
then, typy
LD_LIBRARY_PATH=/opt/qtm12/lib yourexecutable
and see if it works
the LD_LIBRARY_PATH bit sets an environment variable that tells the system to look in the given directory for libraries, aswell as the standard ones.

I think it just isnt looking in the right place atm.
Reply With Quote
  #66  
Old 2011-07-11, 21:26
Creamy Goodness Creamy Goodness is offline
 
Join Date: Feb 2008
Location: Edmonton, AB
Posts: 1,463
Thanks!: 982
Thanked 1,916 Times in 622 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

What I meant by "I really don't know how my app even launches" is "I tried typing in the name and it doesn't even try to load"...
I know it's in /opt/usr/bin/ProfileAutoSwitch
Not really sure how it doesn't launch from the terminal but the desktop icon and Qt Creator can do it! Can you tell I don't use linux much?
Reply With Quote
  #67  
Old 2011-07-14, 10:53
ultimodruido ultimodruido is offline
 
Join Date: Feb 2011
Posts: 1
Thanks!: 0
Thanked 0 Times in 0 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

Quote:
Originally Posted by attila77 View Post
Like the other release, to use these packages you need do to CONFIG += mobility12 in your .pro file instead of just 'mobility' (as mobility will reference always the official one from the firmware). It should be parallel-installable with 1.0.2 (the official PR1.3 one) and 1.1 (my lilbqtm-11 release).
Hello,
I was trying to use the Qt Mobility 1.2 with pyside, but have no luck to reach the QGraphicGeoMap as it appears inexistent. I think that pyside points to the "original" QtMobility version instead of the new 1.2...
Do you have an idea how can I point with pyside to the updated attila's qt mobility? in qt creator you can set CONFIG += mobility12, what does this actually do? Can I set it similarly before starting python? I have no change to set it within qt-creator as it doesn't support python

Below a screenshot taken from the "remote device access" service from nokia with the list of classes in the location module that pyside is aware of that is why i guess it is not looking at the 1.2 version of qtmobility

thanks a lot
Attached Images
 
Reply With Quote
  #68  
Old 2011-07-14, 21:16
attila77 attila77 is offline
 
Join Date: Aug 2008
Location: Finland
Posts: 3,319
Thanks!: 2,884
Thanked 5,610 Times in 1,751 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

The RDA devices don't have the 1.2 build (unless you install it from Extras-devel). Now, the thing is that you will need a version of PyQt or PySide that was compiled against these versions of mobility... I know that PySide is currently using 1.1 (as it was pushed to Extras proper), but I'm not aware of 1.2-supporting builds ATM. I think thp used the 1.1 one successfully, you just need to add

viewer.engine().addImportPath('/opt/qtm11/imports')
viewer.engine().addPluginPath('/opt/qtm11/plugins')

to the code for it to be able to find the proper paths.
__________________
Blogging about mobile linux - The Penguin Moves!
Maintainer of PyQt (see introduction and docs), AppWatch, QuickBrownFox, etc
Reply With Quote
  #69  
Old 2011-07-14, 21:23
piggz piggz is offline
 
Join Date: Nov 2010
Posts: 213
Thanks!: 2
Thanked 414 Times in 111 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

Btw, its working great for me now, without any ld_library_path hacks, by adding CONFIG += mobility12

package pgz-everytrail is using it

One thing seems quite annoying though

QGraphicsGeoMap::fitInViewPort() doesnt seem to do as it claims to...mostly, it just zooms out as far as it can to show the whole world, instead of zooming into the bounding box...either that are the boundingbox returned is wrong, in either case, it seems to be a bug somewhere
Reply With Quote
  #70  
Old 2011-07-15, 04:44
Creamy Goodness Creamy Goodness is offline
 
Join Date: Feb 2008
Location: Edmonton, AB
Posts: 1,463
Thanks!: 982
Thanked 1,916 Times in 622 Posts
Default Re: [ANNOUNCE] Qt Mobility 1.2 for Fremantle

Okay well for the record I always had CONFIG += mobility12 and MOBILITY += location for maemo5 in the pro file, that's not my problem.
Reply With Quote
Reply

Tags
bluetooth, nfc-api, qtmobility


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 17:30.