• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login
UBports Robot Logo UBports Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Register
  • Login

Bicycle Navigation App Development (HELP needed)

Scheduled Pinned Locked Moved Solved App Development
18 Posts 6 Posters 1.9k Views 3 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M Offline
      magdesign
      last edited by magdesign 3 Jan 2022, 11:33 1 Mar 2022, 11:28

      Recently I found this very useful bicycle navigation app called brouter.
      While they have an online web version* without GPS support, I am wondering how hard it is to create a working app for UBports.

      The whole thing is based on java and I was able to compile the brouter-1.6.3-all.jar file and run it via terminal.
      Since I have no idea (yet) in clickable and java development I am kindly asking here for support and to spread again the idea of a cycling/walking navigation system, since organicmaps does not seem the way to go.

      Picture left: brouter-web calculating the track
      Picture right: puremaps imported the created track for routing

      screenshot_maps.jpg

      • the web version is hard to zoom in Morph browser, works with Onion browser but there is the lack of downloading a GPX track due to ro filesystem.

      Oneplus 6 (A6003)
      UBports 16.04 RC 2021-W32

      C 1 Reply Last reply 1 Mar 2022, 12:05 Reply Quote 1
      • M magdesign marked this topic as a question on 1 Mar 2022, 11:31
      • C Offline
        CiberSheep @magdesign
        last edited by 1 Mar 2022, 12:05

        @magdesign You maybe might be interested in helping other app that already support bicycle navigation:

        • https://open-store.io/app/navigator.costales
        • https://open-store.io/app/biketrack.quitejonny

        Another planet, another time, another universe!

        M E 2 Replies Last reply 1 Mar 2022, 18:12 Reply Quote 1
        • M Offline
          magdesign @CiberSheep
          last edited by 1 Mar 2022, 18:12

          @cibersheep
          Sure!

          https://open-store.io/app/navigator.costales

          is the one I am currently using (together with PureMaps).
          Missing several simple stuff like:

          • setting start-, way- and endpoints with a finger
          • seeing the height profile of the tour
          • seeing more OSM data like where to get water, grillplaces, refuge
          • importing + exporting gpx
          • using 100% offline

          https://open-store.io/app/biketrack.quitejonny

          does not seem to be available anymore or at least on my device...

          Oneplus 6 (A6003)
          UBports 16.04 RC 2021-W32

          1 Reply Last reply Reply Quote 0
          • E Offline
            Emphrath
            last edited by 2 Mar 2022, 00:57

            Oh wow ! I I had no idea sth was being done for bike nav ! I'm super duper interested too !

            1 Reply Last reply Reply Quote 0
            • E Offline
              Emphrath @CiberSheep
              last edited by 2 Mar 2022, 01:37

              @cibersheep biketrack is still on the openstore for me (i guess not for arm64 @magdesign ?) but very much in the state it was with the last review: it opens a blank page and that's all. I filed a bug report on the maintainer's launchpad and I check the logs. Lots of errors, and I don't know what to make of it. Maybe we can fix thisscreenshot20220302_022708261.png

              M 1 Reply Last reply 2 Mar 2022, 09:29 Reply Quote 0
              • E Offline
                Emphrath
                last edited by 2 Mar 2022, 01:41

                My guess would be the move from oxide or the update to qt are the culprits, since it happened well after the last update to the app - also the app seems to struggle with qt5 and qml at some point

                1 Reply Last reply Reply Quote 0
                • M Offline
                  magdesign @Emphrath
                  last edited by magdesign 3 Feb 2022, 09:50 2 Mar 2022, 09:29

                  @emphrath arm64 might be the case 👍

                  @everyone:
                  I have no idea of C, more a sysadmin + bash + python artist and like to write documentations. If some of you has the time to explain, I am willing to learn the basic of how to fix/extend this apps.

                  @costales: Should we work on uNav then?

                  Overlaying waterdrops from OSM and all kind of sustainable things like farmer shops, mundraub locations, weekly market places, shelters....

                  maybe even a simple contribute button the push a location of drinking water.

                  Oneplus 6 (A6003)
                  UBports 16.04 RC 2021-W32

                  M S 2 Replies Last reply 1 May 2022, 20:38 Reply Quote 0
                  • M Offline
                    magdesign @magdesign
                    last edited by 1 May 2022, 20:38

                    I found a great app which is compatible with Linux/Unix systems:

                    https://github.com/janbar/osmin

                    Tried to compile on UBPorts, but stuff is complicated with Clickable and Libertine, gave up after a few hours... it compiles nice on pinephone.

                    if you are into copiling on UBports, please try out Osmin.

                    Oneplus 6 (A6003)
                    UBports 16.04 RC 2021-W32

                    1 Reply Last reply Reply Quote 0
                    • S Offline
                      spctrl @magdesign
                      last edited by 2 May 2022, 07:24

                      @magdesign said in Bicycle Navigation App Development (HELP needed):

                      Overlaying waterdrops from OSM and all kind of sustainable things like farmer shops, mundraub locations, weekly market places, shelters...

                      Not sure how relevant, but there's a webapp which has "themes" to show certain types of things on the map (One theme is "Drinking Water") and where people can contribute to. If you want to add something similar to another app, maybe you could also work with themes like that and use the same format/make them compatible somehow. That way themes from one app can easily be used by another as well. https://mapcomplete.osm.be/?language=en

                      M 1 Reply Last reply 2 May 2022, 11:14 Reply Quote 0
                      • M Offline
                        magdesign @spctrl
                        last edited by 2 May 2022, 11:14

                        @spctrl Thanks.

                        The nice thing about OSMIN is:

                        • works 100% offline
                        • has all the desired overlays built in
                        • has a GPS tracker
                        • can load GPS tracks
                        • builds on linux phones

                        Oneplus 6 (A6003)
                        UBports 16.04 RC 2021-W32

                        M 1 Reply Last reply 24 May 2022, 10:17 Reply Quote 1
                        • M Offline
                          magdesign @magdesign
                          last edited by magdesign 24 May 2022, 10:17

                          @magdesign

                          So I installed clickable on my computer and
                          created a new project with:

                          clickable create
                          

                          then I copied the whole git library from:
                          https://github.com/janbar/osmin
                          into the clickable created folder.

                          from terminal I executed:

                          git submodule init
                          git submodule update
                          mkdir build
                          

                          Now I want to build the app for ubports, but I have no idea how.
                          The normal command would be:

                          cmake -B build -DBUILD_DEVICE_MOBILE=ON -DCMAKE_C_COMPILER=/usr/bin/clang -DCMAKE_CXX_COMPILER=/usr/bin/clang++ .
                          

                          followed by:

                          cmake --build build/ -j8
                          

                          I tried with:

                          clickable
                          

                          but getting following error:

                          Could not find a package configuration file provided by "Qt5RemoteObjects"
                            with any of the following names:
                          
                              Qt5RemoteObjectsConfig.cmake
                              qt5remoteobjects-config.cmake
                          
                            Add the installation prefix of "Qt5RemoteObjects" to CMAKE_PREFIX_PATH or
                            set "Qt5RemoteObjects_DIR" to a directory containing one of the above
                            files.  If "Qt5RemoteObjects" provides a separate development package or
                            SDK, be sure it has been installed.
                          

                          libqt5remoteobjects5-dev and libqt5remoteobjects5-bin are installed.
                          Can someone please help me on this !!
                          I guess its something with https://docs.ubports.com/en/latest/appdev/guides/dependencies.html,
                          so I need to modify the clickable.yaml, but what would I need to add??

                          Oneplus 6 (A6003)
                          UBports 16.04 RC 2021-W32

                          M 1 Reply Last reply 5 Jul 2022, 20:43 Reply Quote 0
                          • M Offline
                            magdesign @magdesign
                            last edited by magdesign 7 May 2022, 20:44 5 Jul 2022, 20:43

                            ok, I got a bit further, content of my clickable.yaml looks like:

                            clickable_minimum_required: 7.1.2
                            builder: cmake
                            build_args:
                            - B build
                            - DBUILD_DEVICE_MOBILE=ON 
                            - DCMAKE_C_COMPILER=/usr/bin/clang 
                            - DCMAKE_CXX_COMPILER=/usr/bin/clang++ .
                            
                            dependencies_host:
                            
                            - git
                            - clang
                            - libomp-dev
                            
                            dependencies_target:
                            
                            - qtdeclarative5-dev
                            - libqt5svg5-dev
                            - qtquickcontrols2-5-dev
                            - libqt5sensors5-dev
                            - qtmultimedia5-dev
                            - libqt5remoteobjects5-dev
                            - qtpositioning5-dev
                            
                            kill: osmin
                            

                            now I have following error:

                            E: Unable to locate package libqt5remoteobjects5-dev:amd64
                            The command '/bin/sh -c apt-get update && apt-get install -y --force-yes --no-install-recommends git clang libomp-dev qtdeclarative5-dev:amd64 libqt5svg5-dev:amd64 qtquickcontrols2-5-dev:amd64 libqt5sensors5-dev:amd64 qtmultimedia5-dev:amd64 libqt5remoteobjects5-dev:amd64 qtpositioning5-dev:amd64 && apt-get clean' returned a non-zero code: 100
                            Command exited with non-zero exit status 100, see above for details. This is most likely not a problem with Clickable.
                            

                            How can I provide the missing package, its installed on my system when I do

                            sudo apt-get install libqt5remoteobjects5-dev
                            

                            I get:

                            libqt5remoteobjects5-dev is already the newest version (5.12.8-0ubuntu1).
                            

                            Any help very welcome!!!

                            Oneplus 6 (A6003)
                            UBports 16.04 RC 2021-W32

                            K 1 Reply Last reply 6 Jul 2022, 03:00 Reply Quote 0
                            • K Offline
                              kugiigi @magdesign
                              last edited by 6 Jul 2022, 03:00

                              @magdesign I have not much knowledge on managing dependencies but I believe those packages are being installed in the docker image, not your system so you might need to check it there. Or check on a UT phone since I think the docker is based on UT images which is xenial.

                              M 1 Reply Last reply 6 Jul 2022, 06:32 Reply Quote 0
                              • M Offline
                                magdesign @kugiigi
                                last edited by 6 Jul 2022, 06:32

                                @kugiigi
                                thanks for the hint.
                                so i started the approach to directly compile on the phone, but there i am stuck much simpler problems:

                                No space left on device
                                

                                Oneplus 6 (A6003)
                                UBports 16.04 RC 2021-W32

                                K AppLeeA 2 Replies Last reply 6 Jul 2022, 15:44 Reply Quote 0
                                • K Offline
                                  kugiigi @magdesign
                                  last edited by 6 Jul 2022, 15:44

                                  @magdesign Compiling on the device itself isn't ideal as well though doable. I've done it in the past 😄 You cam Seabass2 as it supports creating a libertine container with clickable installed But I highly suggest to just do it on your PC. Maybe someone else can help you with the dependency configuration.

                                  1 Reply Last reply Reply Quote 0
                                  • KenedaK Keneda referenced this topic on 8 Jul 2022, 09:08
                                  • AppLeeA Offline
                                    AppLee @magdesign
                                    last edited by 8 Jul 2022, 13:17

                                    @magdesign
                                    As @kugiigi mentioned it is best to stay with clickable.

                                    The issue will be the same directly on the device.
                                    You should install the dependencies in the docker image and add them to your clickable.yaml like you did.
                                    Simply run a command like this: docker run -it <your docker image> bash
                                    Then run apt install command...
                                    Quit the docker shell and build your click package.

                                    M 1 Reply Last reply 9 Jul 2022, 08:32 Reply Quote 0
                                    • M Offline
                                      magdesign @AppLee
                                      last edited by 9 Jul 2022, 08:32

                                      @applee

                                      Thank you very much for your support !!

                                      I was able to mount the docker image with:

                                      docker run -it clickable/amd64-16.04-arm64:16.04.5 bash
                                      

                                      But suddenly I realised that libqt5remoteobjects5 is not available on xenial 16.04, nor on the xenial-backports universe and manually installing from ports.ubuntu.com results in an error.

                                      So I guess here is the end. I seriously have to think about switching OS after 5 years Ubports... 😞

                                      Oneplus 6 (A6003)
                                      UBports 16.04 RC 2021-W32

                                      AppLeeA 1 Reply Last reply 11 Jul 2022, 11:54 Reply Quote 1
                                      • M magdesign has marked this topic as solved on 9 Jul 2022, 10:51
                                      • AppLeeA Offline
                                        AppLee @magdesign
                                        last edited by 11 Jul 2022, 11:54

                                        @magdesign
                                        You should have a look at 20.04 version of Ubuntu Touch.
                                        Yes your app won't work until the official release of focal but it will be hopefully soon.

                                        1 Reply Last reply Reply Quote 1
                                        • First post
                                          Last post