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)

colin.stephane 2011-12-04 23:00

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

Originally Posted by dwaradzyn (Post 1133228)
I want to nail this issue but it is hard because it just works on my N900. Except "it does not work" I do not have much concrete information to investigate further. I encourage you to do the following and describe with as much detail as possible the behaviour (comparing the results to previously working version would also be great):

1. Get a fix using another GPS app just to make sure you are in conditions that allow N900 to get a fix. Then close the app.
2. Run CloudGPS from terminal and wait 30 seconds.
3. Take a screenshot and post it here together with terminal output from CloudGPS.


And perhaps the most important question: can you see GPS icon on status area when when CloudGPS is running on your N900?

Thanks very much

Step 1 ok, I get a good fix with the original program 'Maps'.
Step 2 ok, run 'CloudGPS' from terminal and wait 30 seconds.
Step 3 ok, see attached screenshots.

I cannot see GPS icon on status area when CloudGPS is running on my N900 ...

Photo 1 : The start from terminal.

http://bigbob.fun.free.fr/CloudGPS Photo1.png

Photo 2 : The GUI showing no GPS enabled.

http://bigbob.fun.free.fr/CloudGPS Photo2.png

Photo 3 : The stop from terminal (after hitting the 'q' key).

http://bigbob.fun.free.fr/CloudGPS Photo3.png

Photo 4 : No trace of GPS icon in the status area during the use of CloudGPS.

http://bigbob.fun.free.fr/CloudGPS Photo4.png


Hope it help ...

A++

handaxe 2011-12-05 06:01

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
For what it is worth, all that colin.stephane describes and shows applies to my n900 as well.

ejcrashed 2011-12-05 16:22

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Updated yesterday to 0.6.5.

1 - Text in search box still draws vertically (landscape mode)
2 - Program still crashes when trying to change search service.
3 - Program still can't get gps fix

Dwaradzyn, is there some option we can add to commandline or config so the programs becomes more verbose?

Right now the only thing i can see when cloudgps crashes is "Segmentation fault"

blackjack4it 2011-12-05 16:28

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
Is there a method to have a Garmin-like map size ? For France Garmin Map I remember that It took about ~300m with all details zoomed well but If I download the tiles for CloudGPS with zoom 18 the size is a lot more than Garmin Maps O_O

xes 2011-12-05 16:30

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

Originally Posted by ejcrashed (Post 1133562)
Updated yesterday to 0.6.5.

1 - Text in search box still draws vertically (landscape mode)
2 - Program still crashes when trying to change search service.
3 - Program still can't get gps fix

Dwaradzyn, is there some option we can add to commandline or config so the programs becomes more verbose?

Right now the only thing i can see when cloudgps crashes is "Segmentation fault"


As explained some post ago by Dwaradzyn, it is only a "Work in progress" release without any fix.

As you can see, it is located in a DEVEL repo.
So don't forget that DEVEL is very different from STABLE... ;)

ejcrashed 2011-12-05 16:46

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

Originally Posted by xes (Post 1133567)
As explained some post ago by Dwaradzyn, it is only a "Work in progress" release without any fix.

As you can see, it is located in a DEVEL repo.
So don't forget that DEVEL is very different from STABLE... ;)

I know, i know...

The thing is, since he's not getting the same errors on his development environment i thought we could *help* with the debugging. ;)

Peace.

dwaradzyn 2011-12-05 21:45

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
1 Attachment(s)
Quote:

Originally Posted by colin.stephane (Post 1133249)
Hope it help ...

Very nice report, thank you!

Could you try attached deb and confirm if GPS is getting started with this one?

For the reference I changed preferred positioning method from anything to satellite in this build.

Also could you post here the exact version of qt mobility that you have installed on your N900?

dwaradzyn 2011-12-05 22:03

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

Originally Posted by ejcrashed (Post 1133562)
Updated yesterday to 0.6.5.

1 - Text in search box still draws vertically (landscape mode)
2 - Program still crashes when trying to change search service.
3 - Program still can't get gps fix

Dwaradzyn, is there some option we can add to commandline or config so the programs becomes more verbose?

Right now the only thing i can see when cloudgps crashes is "Segmentation fault"

Not really, there is only one option for verbose logging but it is for network activity (curlVerbose=1 in /opt/cloudgps/cloudgps.ini).

For fixing crashes there are great tools like gdb and valgrind. The crash on search service is already fixed on my other laptop.

dwaradzyn 2011-12-05 22:13

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

Originally Posted by blackjack4it (Post 1133566)
Is there a method to have a Garmin-like map size ? For France Garmin Map I remember that It took about ~300m with all details zoomed well but If I download the tiles for CloudGPS with zoom 18 the size is a lot more than Garmin Maps O_O

Simply put: no. Garmin is vector based and CloudGPS only support tile based maps right now. Please find the rest of the story couple of posts back.

n900-dk 2011-12-05 22:29

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

Originally Posted by dwaradzyn (Post 1133696)
Could you try attached deb and confirm if GPS is getting started with this one?

It didn't fix the issue on my device. Still no gps action or icon in statusarea.

Keep up the execellent work :)

dwaradzyn 2011-12-05 22:44

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

Originally Posted by n900-dk (Post 1133711)
It didn't fix the issue on my device. Still no gps action or icon in statusarea.

Keep up the execellent work :)

OK. Could you paste the output of:
Code:

dpkg -s libqtm-11-location

handaxe 2011-12-06 00:29

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

Originally Posted by dwaradzyn (Post 1133722)
OK. Could you paste the output of:
Code:

dpkg -s libqtm-11-location

Latest version does not start gps.

Code:

/MyDocs/.documents $ sudo dpkg -s libqtm-11-location
Package: libqtm-11-location
Status: install ok installed
Priority: extra
Section: libs
Installed-Size: 2036
Maintainer: Attila Csipa <attila.csipa@nokia.com>
Architecture: armel
Source: qt-mobility11
Version: 1:1.1.4-0fn~fremantle1
Depends: libc6 (>= 2.5.0-1), libdbus-1-3 (>= 1.2.14-0maemo1+0m5), libdbus-glib-1-2 (>= 0.78-0maemo5+0m5), libgcc1 (>= 1:4.2.1), libgconf2-6 (>= 2.16.0-2osso6+0m5), libglib2.0-0 (>= 2.20.3-1maemo2+0m5), liblocation0 (>= 0.99-1+0m5), libqt4-core (>= 4.7.0~git20100909-0maemo1+0m5), libqt4-dbus (>= 4.5.3~git20090723-0maemo4+0m5), libqt4-gui (>= 4.5.3~git20090723-0maemo6+0m5), libqt4-network (>= 4.5.3~git20090723-0maemo4+0m5), libqt4-sql (>= 4.5.3~git20090723-0maemo4+0m5), libqt4-xml (>= 4.5.3~git20090723-0maemo4+0m5), libstdc++6 (>= 4.2.1-4maemo9+0m5)
Description: Qt Mobility location module
 Qt Mobility Project delivers a set of new APIs to Qt with features that are
 well known from the mobile device world, in particular phones. However,
 these APIs allow the developer to use these features with ease from one
 framework and apply them to phones, netbooks and non-mobile personal
 computers.
 .
 The QtLocation module
 .
 If you wish to to use the location module for development, you should install
 the libqtm-11-dev package.
~


dwaradzyn 2011-12-06 06:35

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
OK, now could someone with 0.6.5 and GPS working paste output of the same command?

Thanks

guyr 2011-12-06 07:45

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
I've installed cloudgps 0.6.5 (n900). The first time i launch cloudgps i get gps fix. But now there is no more gps (on menus).

Guy

handaxe 2011-12-06 09:12

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
I really like that slo mo bounce of the menu icons....... To the point: is there any n900 user with a working CloudGPS? Besides the dev that is?

colin.stephane 2011-12-06 09:23

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

Originally Posted by dwaradzyn (Post 1133696)
Very nice report, thank you!

Could you try attached deb and confirm if GPS is getting started with this one?

For the reference I changed preferred positioning method from anything to satellite in this build.

Also could you post here the exact version of qt mobility that you have installed on your N900?

Sorry for the delay ...

On my side, nothing changed with your attached package 'cloudgps_0.6.6_armel.deb'.

I mean, no activation of GPS in the status area, no fix, also, segmentation fault when I click on the cross to close the program ...

And here is the output of 'dpkg -s libqtm-11-location' :

Code:

-bash-2.05b# dpkg -s libqtm-11-location
Package: libqtm-11-location
Status: install ok installed
Priority: extra
Section: libs
Installed-Size: 2036
Maintainer: Attila Csipa <attila.csipa@nokia.com>
Architecture: armel
Source: qt-mobility11
Version: 1:1.1.4-0fn~fremantle1
Depends: libc6 (>= 2.5.0-1), libdbus-1-3 (>= 1.2.14-0maemo1+0m5), libdbus-glib-1-2 (>= 0.78-0maemo5+0m5), libgcc1 (>= 1:4.2.1), libgconf2-6 (>= 2.16.0-2osso6+0m5), libglib2.0-0 (>= 2.20.3-1maemo2+0m5), liblocation0 (>= 0.99-1+0m5), libqt4-core (>= 4.7.0~git20100909-0maemo1+0m5), libqt4-dbus (>= 4.5.3~git20090723-0maemo4+0m5), libqt4-gui (>= 4.5.3~git20090723-0maemo6+0m5), libqt4-network (>= 4.5.3~git20090723-0maemo4+0m5), libqt4-sql (>= 4.5.3~git20090723-0maemo4+0m5), libqt4-xml (>= 4.5.3~git20090723-0maemo4+0m5), libstdc++6 (>= 4.2.1-4maemo9+0m5)
Description: Qt Mobility location module
 Qt Mobility Project delivers a set of new APIs to Qt with features that are
 well known from the mobile device world, in particular phones. However,
 these APIs allow the developer to use these features with ease from one
 framework and apply them to phones, netbooks and non-mobile personal
 computers.
 .
 The QtLocation module
 .
 If you wish to to use the location module for development, you should install
 the libqtm-11-dev package.

Hope it help ...

A++

Rob1n 2011-12-06 09:30

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

Originally Posted by dwaradzyn (Post 1133722)
OK. Could you paste the output of:
Code:

dpkg -s libqtm-11-location

I've got that installed (as well as libqtm-12), but ldd shows that cloudgps is actually linking against the library from libqtm-location.

xes 2011-12-06 21:56

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
In my case, both versions 0.6.5 and 0.6.6 are working perfectly with the gps.
Here some info for the latest 0.6.6:

ldd /opt/cloudgps/cloudgps
libglib-2.0.so.0 => /usr/lib/libglib-2.0.so.0 (0x40036000)
libhal.so.1 => /usr/lib/libhal.so.1 (0x40112000)
libdbus-1.so.3 => /usr/lib/libdbus-1.so.3 (0x40129000)
libpthread.so.0 => /lib/libpthread.so.0 (0x40166000)
libSDL-1.2.so.0 => /usr/lib/libSDL-1.2.so.0 (0x40186000)
libSDL_gles-1.2.so.0 => /usr/lib/libSDL_gles-1.2.so.0 (0x401e6000)
libGLES_CM.so => /usr/lib/libGLES_CM.so (0x401f0000)
libEGL.so => /usr/lib/libEGL.so (0x4025b000)
libSDL_image-1.2.so.0 => /usr/lib/libSDL_image-1.2.so.0 (0x40265000)
libSDL_ttf-2.0.so.0 => /usr/lib/libSDL_ttf-2.0.so.0 (0x40287000)
libcurl.so.4 => /usr/lib/libcurl.so.4 (0x40294000)
libjson.so.0 => /usr/lib/libjson.so.0 (0x402d6000)
libQtCore.so.4 => /usr/lib/libQtCore.so.4 (0x402e4000)
libQtDBus.so.4 => /usr/lib/libQtDBus.so.4 (0x40583000)
libQtSensors.so.1 => /usr/lib/libQtSensors.so.1 (0x40616000)
libQtGui.so.4 => /usr/lib/libQtGui.so.4 (0x40649000)
libQtLocation.so.1 => /usr/lib/libQtLocation.so.1 (0x41064000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x4109a000)
libm.so.6 => /lib/libm.so.6 (0x4117b000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x411f1000)
libc.so.6 => /lib/libc.so.6 (0x41203000)
libz.so.1 => /usr/lib/libz.so.1 (0x41328000)
librt.so.1 => /lib/librt.so.1 (0x41340000)
/lib/ld-linux.so.3 (0x40000000)
libasound.so.2 => /usr/lib/libasound.so.2 (0x4134f000)
libdl.so.2 => /lib/libdl.so.2 (0x4140b000)
libpulse-simple.so.0 => /usr/lib/libpulse-simple.so.0 (0x41416000)
libpulse.so.0 => /usr/lib/libpulse.so.0 (0x41420000)
libIMGegl.so => /usr/lib/libIMGegl.so (0x41448000)
libsrv_um.so => /usr/lib/libsrv_um.so (0x4145c000)
libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x41478000)
libpng12.so.0 => /usr/lib/libpng12.so.0 (0x4149e000)
libtiff.so.4 => /usr/lib/libtiff.so.4 (0x414c6000)
libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4151f000)
libssl.so.0.9.8 => /usr/lib/libssl.so.0.9.8 (0x41592000)
libcrypto.so.0.9.8 => /usr/lib/libcrypto.so.0.9.8 (0x415dc000)
libgthread-2.0.so.0 => /usr/lib/libgthread-2.0.so.0 (0x41713000)
libQtXml.so.4 => /usr/lib/libQtXml.so.4 (0x4171f000)
libgobject-2.0.so.0 => /usr/lib/libgobject-2.0.so.0 (0x4176d000)
libSM.so.6 => /usr/lib/libSM.so.6 (0x417ae000)
libICE.so.6 => /usr/lib/libICE.so.6 (0x417be000)
libXrender.so.1 => /usr/lib/libXrender.so.1 (0x417dc000)
libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x417ec000)
libXext.so.6 => /usr/lib/libXext.so.6 (0x41815000)
libX11.so.6 => /usr/lib/libX11.so.6 (0x4182c000)
liblocation.so.0 => /usr/lib/liblocation.so.0 (0x4191c000)
libgconf-2.so.4 => /usr/lib/libgconf-2.so.4 (0x4192c000)
libdbus-glib-1.so.2 => /usr/lib/libdbus-glib-1.so.2 (0x41950000)
libpulsecommon-0.9.15.so => /usr/lib/libpulsecommon-0.9.15.so (0x41973000)
libgdbm.so.3 => /usr/lib/libgdbm.so.3 (0x419a3000)
libexpat.so.1 => /usr/lib/libexpat.so.1 (0x419b1000)
libXau.so.6 => /usr/lib/libXau.so.6 (0x419d7000)
libXdmcp.so.6 => /usr/lib/libXdmcp.so.6 (0x419e1000)
libgmodule-2.0.so.0 => /usr/lib/libgmodule-2.0.so.0 (0x419ed000)


dpkg -s libqtm-11-location

Package: libqtm-11-location
Status: install ok installed
Priority: extra
Section: libs
Installed-Size: 2036
Maintainer: Attila Csipa <attila.csipa@nokia.com>
Architecture: armel
Source: qt-mobility11
Version: 1:1.1.4-0fn~fremantle1
Depends: libc6 (>= 2.5.0-1), libdbus-1-3 (>= 1.2.14-0maemo1+0m5), libdbus-glib-1-2 (>= 0.78-0maemo5+0m5), libgcc1 (>= 1:4.2.1), libgconf2-6 (>= 2.16.0-2osso6+0m5), libglib2.0-0 (>= 2.20.3-1maemo2+0m5), liblocation0 (>= 0.99-1+0m5), libqt4-core (>= 4.7.0~git20100909-0maemo1+0m5), libqt4-dbus (>= 4.5.3~git20090723-0maemo4+0m5), libqt4-gui (>= 4.5.3~git20090723-0maemo6+0m5), libqt4-network (>= 4.5.3~git20090723-0maemo4+0m5), libqt4-sql (>= 4.5.3~git20090723-0maemo4+0m5), libqt4-xml (>= 4.5.3~git20090723-0maemo4+0m5), libstdc++6 (>= 4.2.1-4maemo9+0m5)
Description: Qt Mobility location module
Qt Mobility Project delivers a set of new APIs to Qt with features that are
well known from the mobile device world, in particular phones. However,
these APIs allow the developer to use these features with ease from one
framework and apply them to phones, netbooks and non-mobile personal
computers.
.
The QtLocation module
.
If you wish to to use the location module for development, you should install
the libqtm-11-dev package.

------------------------------------

One additional issue for a future bugfix release:
At this moment i'm using about 20 custom maps created some time ago converting other maps... BUT.... In the map setting page the font of the title of the map is pratically unreadable (the font becomes smaller on the latest maps)
Is it possible to set manually a custom icon for every map?
(my maps are all offline so there is no working http address to get a png for the button)

xes 2011-12-07 00:00

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
New issue...
It is a little difficult to explain but i'll try
imagine one offline only map, a rectangle of a certain area from zoom 9 to 16 with no http link.
While running in offline mode...I discovered that very often cloudgps does not load any part of the map also if i'm over the right zone and the debug window (H) shows me that there is a green square under the cursor.
Moving, zooming in or out after some time it loads the map (it is not a mumble state or too cpu load)

What do you think about?

ejcrashed 2011-12-07 22:37

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
On my N900 i'm getting the exact same output as xes for ldd... and dpkg -s libqtm-11-location commands but gps still doesn't work.

xes, just for comparisons sake, i'm using

- Latest CSSU update
- Kernel Power 49
- I have AGPS disabled

xes 2011-12-07 23:02

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

Originally Posted by ejcrashed (Post 1134744)
On my N900 i'm getting the exact same output as xes for ldd... and dpkg -s libqtm-11-location commands but gps still doesn't work.

xes, just for comparisons sake, i'm using

- Latest CSSU update
- Kernel Power 49
- I have AGPS disabled

Sorry, the situation is the same....

new_n900 2011-12-08 08:06

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

Finally I got CloudGPS working on my N900.:)

Again, very big thanks.

xes 2011-12-13 11:40

Re: [WIP] CloudGPS 0.4.8 - smoothest maps for N900
 
a new little issue..

Sometimes cloudgps crashes without any message as soon it loads all the current map view...

A few times, it repeated the crash until the next reboot.

Sorry but until now i haven't any addictional info.
I suppose i should start it from a term to view some error message.

vi_ 2011-12-13 11:45

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

Originally Posted by xes (Post 1136986)
a new little issue..

Sometimes cloudgps crashes without any message as soon it loads all the current map view...

A few times, it repeated the crash until the next reboot.

Sorry but until now i haven't any addictional info.
I suppose i should start it from a term to view some error message.

I suppose you should, also syslog and dmesg output here.

dwaradzyn 2011-12-13 18:52

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

Originally Posted by Rob1n (Post 1133881)
I've got that installed (as well as libqtm-12), but ldd shows that cloudgps is actually linking against the library from libqtm-location.

Thanks for spotting that. I suspect that the libs/linking are the main cause of GPS issue and I wanted to prepare a static linked to confirm/rule that out. Unfortunately my dev env broke and I had to address it. I did not have enough time to prepare static linked version during the weekend. I hope to find time during the following weekend to do so.

Even without static version we can make some progress. Lets check if the libqtm-location version difference is related to GPS issue. Could you post the version of libqtm-location installed on your N900?

On my N900 (GPS working fine in CloudGPS) version 1.0.2-maemo4+0m5 of libqtm-location is installed. Is your version different?

dwaradzyn 2011-12-13 19:57

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

Originally Posted by xes (Post 1134245)
New issue...
It is a little difficult to explain but i'll try
imagine one offline only map, a rectangle of a certain area from zoom 9 to 16 with no http link.
While running in offline mode...I discovered that very often cloudgps does not load any part of the map also if i'm over the right zone and the debug window (H) shows me that there is a green square under the cursor.
Moving, zooming in or out after some time it loads the map (it is not a mumble state or too cpu load)

What do you think about?

Not sure if I understand correctly what you are trying to convey to me but I will try with the closest thing I can think of. I think you are describing a situation when background tile loading threads hang. I have explained that earlier in the context of downloading from network, but reading from eMMC can also easily get stuck for a long while when some background process uses a lot of IO (for example tracker processes). This is the original explanation from post #300:

Quote:

Originally Posted by dwaradzyn (Post 1077205)
Rendering should never get locked. I use CloudGPS quite extensively and it just never does. Tile loading on the other hand can easily get locked. Tile loading uses only two threads on N900 (I benchmarked it and it is the most optimal value for N900). When there are two downloads in progress every new download request gets queued until one of those two finish because starting new thread is just too heavy for N900. Downloading currently uses blocking API and this means that it can easily get stuck waiting for data from network. I plan to rewrite downloading using non-blocking API so that:
- there will be many simultaneous downloads possible (up to twenty for example) per one thread,
- downloads that are in progress and are not necessary anymore will be canceled,
- downloads stalled will be canceled and retried,
- it will use even less resources than current implementation.

This should resolve the issue you described and should also improve responsiveness and tile loading time a lot.

In practice I find restarting the application resolving this state of 'not loading anything because of stuck threads'.

Non-blocking API use is still not here. I spent some time on it and tried to implement a proof of concept using non-blocking API. While it somehow worked it introduced a lot of new problems. The loading does not work that bad currently and right now I plan to focus on other things. Will get back to non-blocking API if I have more time.

handaxe 2011-12-13 23:50

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

Originally Posted by dwaradzyn (Post 1137145)
On my N900 (GPS working fine in CloudGPS) version 1.0.2-maemo4+0m5 of libqtm-location is installed. Is your version different?

GPS not working :(

libqtm-location 1.0.2-maemo4+0m5+0cssu1 (so, a diff there!)

I also have libqtm-11-location installed.

Rob1n 2011-12-14 09:05

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

Originally Posted by handaxe (Post 1137252)
GPS not working :(

libqtm-location 1.0.2-maemo4+0m5+0cssu1 (so, a diff there!)

Same for me. I'll have a look at what was changed for the CSSU version.

Rob1n 2011-12-14 09:30

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

Originally Posted by Rob1n (Post 1137363)
Same for me. I'll have a look at what was changed for the CSSU version.

Well, there shouldn't be any real differences. The only patch added is to add a signal for updating the media library.

It definitely is down to this though - running "LD_LIBRARY_PATH=/opt/qtm11/lib /opt/cloudgps/cloudgps" gets the GPS working perfectly. I've added in a shell script to do this, and changed the .desktop file to point to that instead.

xes 2011-12-15 08:44

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

Originally Posted by Rob1n (Post 1137364)
Well, there shouldn't be any real differences. The only patch added is to add a signal for updating the media library.

It definitely is down to this though - running "LD_LIBRARY_PATH=/opt/qtm11/lib /opt/cloudgps/cloudgps" gets the GPS working perfectly. I've added in a shell script to do this, and changed the .desktop file to point to that instead.

I can confirm this.
I suppose that the problem appears after the install of libqtm-12 (that now contains also libqtm-12-location)

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