Active Topics

 


Reply
Thread Tools
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#471
Originally Posted by xes View Post
I suppose that the problem appears after the install of libqtm-12 (that now contains also libqtm-12-location)
I don't think so, no. The only way to actually use libqtm-11 or libqtm-12 seems to be to either set a run-time library path in the application, or to override the LD_LIBRARY_PATH in a startup script. Neither install anywhere in the default link path, so will never be used otherwise.

I'm not sure why it's working for some people though - either the CSSU version of the libqtm-location package is faulty, or they're somehow linking to the libqtm-11-location version instead. Rolling back to the old libqtm-location package didn't help though, so it doesn't appear to be (just) that.
 

The Following User Says Thank You to Rob1n For This Useful Post:
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#472
Another (maybe definitive) solution...

Please, add at the end of:
/etc/ld.so.conf

this row:
/opt/qtm11/lib

and run:
ldconfig

To verify, run:
ldconfig -v | grep -i qt

Now cloudgps should run without specify any LD_LIBRARY_PATH.


After this....

I don't want hurt anyone... just for fun i have installed all the development libs inside my N900.... (Oh yeah!)
....and rebuilt cloudgps 0.6.5 using libqtm-12....

So, here it is an attached binary for the brave one ....if someone would make a test. (in my opinion it seems a little faster - maybe because compiled directly on the device? - or due to libqtm12?)
In this case you have to specify the path /opt/qtm12/lib in ld.conf.so.

After this, i'm using a general wrapper (to log the errors) like this:

#!/bin/sh
# LD_LIBRARY_PATH=/opt/qtm11/lib /opt/cloudgps/cloudgps.orig 2>&1 >> /tmp/cloudgps.log
# LD_LIBRARY_PATH=/opt/qtm12/lib /opt/cloudgps/cloudgps.orig 2>&1 >> /tmp/cloudgps.log
# /opt/cloudgps/cloudgps.orig 2>&1 >> /tmp/cloudgps.log
/opt/cloudgps/cloudgps.q12 2>&1 >> /tmp/cloudgps.log

EDIT.
Pay attention, just corrected the lines to add in ld.so.conf
Attached Files
File Type: zip cloudgps.q12.zip (124.7 KB, 216 views)

Last edited by xes; 2011-12-16 at 22:26. Reason: Correction to avoid confusion
 

The Following 7 Users Say Thank You to xes For This Useful Post:
Posts: 359 | Thanked: 162 times | Joined on Jan 2011 @ Budapest
#473
How to download maps for offline use on the N9? It doesn't have Modrana....
 
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#474
Originally Posted by noetus View Post
How to download maps for offline use on the N9? It doesn't have Modrana....
Look in the first post.... You could use mobac.



@dwaradzyn
Concerning the binary (cloudgps.q12) of my previous post...
Observing the gps fix time, my impressions are very very positive.... could you take a look at that and give me your opinion?
 
Posts: 539 | Thanked: 165 times | Joined on Feb 2010 @ Berlin, Germany
#475
Originally Posted by xes View Post
Please, add at the end of:
/etc/ld.so.conf

these rows:
/opt/qtm11/lib
/opt/qtm12/lib

and run:
ldconfig
That did it for me! Just added line for qtm11 because this is installed version of libqtm-location. Now cloudgps shows gps status again and searches for location.
 
Posts: 67 | Thanked: 88 times | Joined on Jan 2011 @ Costa RIca
#476
Nice!

Adding /opt/qtm11/lib and /opt/qtm12/lib to ld.so.conf also worked for me.
 
Posts: 12 | Thanked: 7 times | Joined on May 2011
#477
I am testing with your compiled version, @xes, but it is not working anyway. I do not see any libqt location or something like that in /opt.

Where are mines? I will continue searching for a solution.
 
Posts: 12 | Thanked: 7 times | Joined on May 2011
#478
I do not think it can be safe to define that in ld.so.conf because you are mixing libraries. If the program use first the incorrect one it will not work. But as a workaround... ok

Anyway your compiled version is not working for me. It say the same: Position unknown Speed: ----

but in the console it show:
CloudGPS 0.6.5
loaded the Generic plugin
loaded the N900 plugin
Compass sensor is not present

Location source initialized
GPS Satellite info source initialized
Accelerometer initialized
Opening font /opt/cloudgps/res/nokia_pure.ttf , size: 32


And when I close cloudgps:
Segmentation fault


And the satellite icon does not appears when cloudgps is open but with another program that uses the gps that does not happens.

I finally found my libraries:
/ $ ls /opt/qt*/lib/*Loc*
/opt/qtm11/lib/libQtLocation.so
/opt/qtm11/lib/libQtLocation.so.1
/opt/qtm11/lib/libQtLocation.so.1.1
/opt/qtm11/lib/libQtLocation.so.1.1.4
/opt/qtm12/lib/libQtLocation.so
/opt/qtm12/lib/libQtLocation.so.1
/opt/qtm12/lib/libQtLocation.so.1.2
/opt/qtm12/lib/libQtLocation.so.1.2.0


But still my cloudgps is not working.

bye

Last edited by anyeos; 2011-12-16 at 20:44. Reason: Command correction
 
Posts: 3,617 | Thanked: 2,412 times | Joined on Nov 2009 @ Cambridge, UK
#479
Originally Posted by anyeos View Post
I do not think it can be safe to define that in ld.so.conf because you are mixing libraries. If the program use first the incorrect one it will not work. But as a workaround... ok
Each library specifies a library name. If the same library name is used in multiple libraries, only the latest version will be loaded. It may well cause issues for programs which don't work with the newer version though.
 
Posts: 638 | Thanked: 1,692 times | Joined on Aug 2009
#480
Originally Posted by Rob1n View Post
Each library specifies a library name. If the same library name is used in multiple libraries, only the latest version will be loaded. It may well cause issues for programs which don't work with the newer version though.
Yes, in fact you are right. I have just corrected my previous post to avoid confusion.
I have no other apps requiring qtm11 and it seems that qtm12 is considered the stable version.

@anyeos
sorry that my binary doesn't work in your phone. I suggest you to run ldd cloudgps.q12 and check all the required libs.

BUT don't forget, this is only a trial build made with my phone that i decided to share. Nothing more. Maybe it runs, maybe not.
You are free to try.
 
Reply

Tags
best gps app


 
Forum Jump


All times are GMT. The time now is 20:42.