maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Development (https://talk.maemo.org/forumdisplay.php?f=13)
-   -   [WIP] CloudGPS 0.4.8 - smoothest maps for N900 (https://talk.maemo.org/showthread.php?t=58402)

Rob1n 2011-12-15 09:34

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by xes (Post 1137735)
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.

xes 2011-12-15 16:24

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
1 Attachment(s)
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

noetus 2011-12-15 19:13

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
How to download maps for offline use on the N9? It doesn't have Modrana....

xes 2011-12-16 14:44

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by noetus (Post 1137949)
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?

x-lette 2011-12-16 17:37

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by xes (Post 1137886)
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.

ejcrashed 2011-12-16 18:04

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Nice!

Adding /opt/qtm11/lib and /opt/qtm12/lib to ld.so.conf also worked for me.

anyeos 2011-12-16 20:01

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
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.

anyeos 2011-12-16 20:34

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
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

Rob1n 2011-12-16 21:35

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by anyeos (Post 1138479)
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.

xes 2011-12-16 22:36

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Quote:

Originally Posted by Rob1n (Post 1138504)
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. ;)


All times are GMT. The time now is 15:04.

vBulletin® Version 3.8.8