Notices


Reply
Thread Tools
Posts: 391 | Thanked: 908 times | Joined on Aug 2011 @ suncity
#2001
It doesn't work...
What I did was:
Code:
git clone https://github.com/M4rtinK/modrana.git
cd modrana/
python modrana.py
Error message is the same as earlier:
Code:
Traceback (most recent call last):
  File "modrana.py", line 35, in <module>
    from core import modrana_log
  File "/home/user/modrana/core/modrana_log.py", line 30, in <module>
    from core import utils
  File "/home/user/modrana/core/utils.py", line 13, in <module>
    from core.backports.six import b
  File "/home/user/modrana/core/backports/six.py", line 610, in <module>
    viewkeys = operator.methodcaller("viewkeys")
AttributeError: 'module' object has no attribute 'methodcaller'
 

The Following 4 Users Say Thank You to justmemory For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#2002
Originally Posted by justmemory View Post
It doesn't work...
What I did was:
Code:
git clone https://github.com/M4rtinK/modrana.git
cd modrana/
python modrana.py
Oops, I think I see the issue now - I forgot the push the commit that downgrades the six module to the remote. :P

So please try again - it should be there now.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 6 Users Say Thank You to MartinK For This Useful Post:
Posts: 391 | Thanked: 908 times | Joined on Aug 2011 @ suncity
#2003
Originally Posted by MartinK View Post
So please try again - it should be there now.
It is there, indeed
Many thanks, it is working now!
 

The Following 7 Users Say Thank You to justmemory For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#2004
modRana 0.55.10 is out!
As mentioned already, this release is has some smaller (yet important!) improvements and fixes while bigger items (navigation/voice output overhaul & MapBox GL support) are being worked on.

The modRana OpenRepos package has been updated, Jolla Store package will be updated once it clears QA in a few days.

Localization
The main highlight of this new generally-available modRana release is localization - the modRana GUI can now be fully localized. And thanks to all of our intrepid community translators on Transifex modRana is now localized (80%+ of strings translated) to these languages:
  • Swedish
  • Spanish
  • Dutch (Belgium)
  • Dutch (nl)
  • Russian
  • German
  • Japanese
  • Polish
  • Finnish
  • Czech
Thanks a lot yet again for all the translation effort!

Other release highlights
  • distance from current position is now shown on all point detail pages
  • routes/tracklogs/logging traces no longer glitch after screen rotation
  • some smaller fixes
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 14 Users Say Thank You to MartinK For This Useful Post:
Posts: 1,414 | Thanked: 7,547 times | Joined on Aug 2016 @ Estonia
#2005
Originally Posted by MartinK View Post
modRana 0.55.10 is out!
As mentioned already, this release is has some smaller (yet important!) improvements and fixes while bigger items (navigation/voice output overhaul & MapBox GL support) are being worked on.
Just let me know if you run into any stumbling block. And, with MapboxGL, get ready to offload all tile caching/downloading to it.
 

The Following 5 Users Say Thank You to rinigus For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#2006
Originally Posted by rinigus View Post
Just let me know if you run into any stumbling block. And, with MapboxGL, get ready to offload all tile caching/downloading to it.
Thanks in advance, I really need to finally get to that.
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 3 Users Say Thank You to MartinK For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#2007
In the meantime, one of the smaller things I've been looking into is the nice animated speed gauge mosen has recently created. It should look like this:


Unfortunately something is apparently wrong with the shaders used for it, as I just get a violet rectangle and a bunch of errors in the log:

Code:
ERROR: 0:11: 'atan2' : no matching overloaded function found 
ERROR: 1 compilation errors.  No code generated.

[W] unknown:0 - QOpenGLShader::compile(Fragment): ERROR: 0:11: 'atan2' : no matching overloaded function found 
ERROR: 1 compilation errors.  No code generated.


[W] unknown:0 - *** Problematic Fragment shader source code ***
[W] unknown:0 - #ifndef GL_FRAGMENT_PRECISION_HIGH
#define highp mediump
#endif
#line 1

      uniform lowp float qt_Opacity;
      uniform highp float angleBase;
      uniform highp float angle;
      varying highp vec2 coord;
      void main() {
        gl_FragColor = vec4(0.0,0.0,0.0,0.0);
        highp vec2 d=2.0*coord-vec2(1.0,1.0);
        highp float r=length(d);
        if (0.66<=r && r<=0.92) {
          highp float a=atan2(d.x,-d.y);
          if (angleBase<=a && a<=angle) {
            highp float p=(a-angleBase)/(angle-angleBase);
            gl_FragColor = vec4(0.9,0.2,0.1,p) * qt_Opacity;
          }
        }
      }
[W] unknown:0 - ***
[W] unknown:0 - QQuickCustomMaterialShader: Shader compilation failed:
[W] unknown:0 - "ERROR: 0:11: 'atan2' : no matching overloaded function found \nERROR: 1 compilation errors.  No code generated.\n\n"
Apparently the shaders fail to compile for whatever reason. I'm seeing the same thing happen both on Sailfish OS (2.2) and one my Fedora desktop system (Fedora 28 with Qt 5.10). Any ideas how to fix it ?
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 5 Users Say Thank You to MartinK For This Useful Post:
mosen's Avatar
Community Council | Posts: 1,669 | Thanked: 10,225 times | Joined on Nov 2014 @ Lower Rhine
#2008
Originally Posted by MartinK View Post
Unfortunately something is apparently wrong with the shaders used for it, as I just get a violet rectangle and a bunch of errors in the log:

[CODE]ERROR: 0:11: 'atan2' : no matching overloaded function found
Yay MartinK!
Sorry for not responding earlier, thanks for concidering the gauge

Please stop wasting time on debugging silly opengl. I will rewrite the gauge using pure qml. The code will be much longer but i can generate nearly the same design using RadialGradiant applied to a thick line.
Its just that i found the Shader thingy to be quite elegent but if it crashes, it crashes.
I don't have the SFOS Sdk installed so all i do is prototype in qmlscene. Sorry for letting you run into such an alpha stage problem.

Also on AsteroidOS we had problems with a watchface employing shaders that would not display on a single watch only, the sony tetra. After quite some debug kido decided to simply hide the watchface for tetra :/

Lets see when i get back to coding, i guess tomorrow evening.
 

The Following 7 Users Say Thank You to mosen For This Useful Post:
Posts: 1,548 | Thanked: 7,510 times | Joined on Apr 2010 @ Czech Republic
#2009
Originally Posted by mosen View Post
Yay MartinK!
Sorry for not responding earlier, thanks for concidering the gauge

Please stop wasting time on debugging silly opengl. I will rewrite the gauge using pure qml. The code will be much longer but i can generate nearly the same design using RadialGradiant applied to a thick line.
Yeah, I was thinking it would be probably possible to implement it with some QtQuick transformation instead of shaders.

Originally Posted by mosen View Post
Its just that i found the Shader thingy to be quite elegent but if it crashes, it crashes.
I don't have the SFOS Sdk installed so all i do is prototype in qmlscene. Sorry for letting you run into such an alpha stage problem.
No problem really. BTW, I also don't have the Sailfish OS SDK installed & run everything via qmlscene during development, even on Sailfish OS. On desktop, qmlscene is actually the regular way of launching modRana, so any widgets have to work with it.

Originally Posted by mosen View Post
Also on AsteroidOS we had problems with a watchface employing shaders that would not display on a single watch only, the sony tetra. After quite some debug kido decided to simply hide the watchface for tetra :/
My guess would be that this is due to the overall sorry state of mobile Open GL drivers. I remember other issues, such as old Open GL on Jolla 1 preventing reasonable debugging of Mapbox GL native crashes or some article I've read from the Dolphin emulator developers where they wrote aqbout all the horrible drivers they have to work around on various Android devices.

Originally Posted by mosen View Post
Lets see when i get back to coding, i guess tomorrow evening.
Thanks! :-)
__________________
modRana: a flexible GPS navigation system
Mieru: a flexible manga and comic book reader
Universal Components - a solution for native looking yet component set independent QML appliactions (QtQuick Controls 2 & Silica supported as backends)
 

The Following 6 Users Say Thank You to MartinK For This Useful Post:
Posts: 1,203 | Thanked: 3,027 times | Joined on Dec 2010
#2010
Apparently my earlier post disappeared. I found some references to atan being a substitute for atan2 as it can take 2 arguements.

Edit: because it was in wrong thread! D'oh.
https://forum.qt.io/topic/89307/qml-...colour-glow/10
 

The Following 6 Users Say Thank You to Android_808 For This Useful Post:
Reply

Tags
bada rox, martin_rocks, modrana, navigation, openstreetmap, the best, wehasgps

Thread Tools

 
Forum Jump


All times are GMT. The time now is 02:57.