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

    Issues with clickable gdb / gdbserver

    Scheduled Pinned Locked Moved App Development
    35 Posts 2 Posters 8.1k Views 2 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.
      • T Offline
        Talkless @jonius
        last edited by Talkless

        @jonius I'm now trying to build latest 3.2.1, but it stops due to.. lack of Clang 12 in clickable image?

        Digest: sha256:6c2c0d80d9b3a3dff72e647c3c4c8a9a6798da277b38239418f49739d4d5866c                                                                                                                            
        Status: Downloaded newer image for clickable/amd64-20.04-arm64:latest                                                                                                                                      
        CMake Error at CMakeLists.txt:16 (project):                                                                                                                                                                
          The CMAKE_CXX_COMPILER:                                                                                                                                                                                  
                                                                                                                                                                                                                   
            /usr/bin/clang++-12                                                                                                                                                                                    
                                                                                                                                                                                                                   
          is not a full path to an existing compiler tool. 
        
          Tell CMake where to find the compiler by setting either the environment
          variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
          to the compiler, or to the compiler name if it is in the PATH.
        
        
        CMake Error at CMakeLists.txt:16 (project):
          The CMAKE_C_COMPILER:
        
            /usr/bin/clang-12
        
          is not a full path to an existing compiler tool. 
        
          Tell CMake where to find the compiler by setting either the environment
          variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
          the compiler, or to the compiler name if it is in the PATH.
        
        
        -- Configuring incomplete, errors occurred!
        See also "/home/vincas/code/puremaps/pure-maps.git/build/aarch64-linux-gnu/maplibre-gl-native/CMakeFiles/CMakeOutput.log".
        Command exited with non-zero exit status 1, see above for details. This is most likely not a problem with Clickable.
        

        I've updated clickable, and it's images.

        Volla Phone X

        joniusJ 1 Reply Last reply Reply Quote 0
        • joniusJ Offline
          jonius @Talkless
          last edited by

          @talkless you might need to build clean once, looks like an outdated build cache.

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            Talkless @jonius
            last edited by

            @jonius Uhg, right... Thanks!

            And this probably means that latest clickable expects 20.04?

            Launching app.
            Pseudo-terminal will not be allocated because stdin is not a terminal.
            -bash: line 1: lomiri-app-launch: command not found
            Command exited with non-zero exit status 127, see above for details. This is most likely not a problem with Clickable.
            
            vincas@ubuntu-ubports:~/code/puremaps/pure-maps.git$ clickable --version
            clickable 7.11.0
            You are running the latest version of clickable!
            

            Intalling also fails:

            pure-maps.jonnius_3.2.0_arm64.click                                                                                                                                      100%  101MB 189.5KB/s   09:07    
            Pseudo-terminal will not be allocated because stdin is not a terminal.
            Trying to uninstall the app first.
            Pseudo-terminal will not be allocated because stdin is not a terminal.
            Klaida: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name com.lomiri.click was not provided by any .service files
            Command exited with non-zero exit status 1, see above for details. This is most likely not a problem with Clickable.
            

            ...

            Volla Phone X

            joniusJ 1 Reply Last reply Reply Quote 0
            • joniusJ Offline
              jonius @Talkless
              last edited by

              @talkless the latest version of Pure Maps is UT 20.04 only. If you run 16.04, you can go back to Pure Maps 3.1.1 which is still made for 16.04.

              T 1 Reply Last reply Reply Quote 0
              • T Offline
                Talkless @jonius
                last edited by

                @jonius said in Issues with clickable gdb / gdbserver:

                @talkless the latest version of Pure Maps is UT 20.04 only. If you run 16.04, you can go back to Pure Maps 3.1.1 which is still made for 16.04.

                I see.

                But now I can't even build 3.1.1 or 3.1.0:

                Cloning into '/home/vincas/code/puremaps/pure-maps.git/libs/picotts'...
                remote: Enumerating objects: 93, done.
                remote: Counting objects: 100% (93/93), done.
                remote: Compressing objects: 100% (80/80), done.
                remote: Total 93 (delta 9), reused 91 (delta 9), pack-reused 0
                Receiving objects: 100% (93/93), 5.15 MiB | 9.25 MiB/s, done.
                Resolving deltas: 100% (9/9), done.
                error: patch failed: platform/qt/qt.cmake:226
                error: platform/qt/qt.cmake: patch does not apply
                Command exited with non-zero exit status 1, see above for details. This is most likely not a problem with Clickable.
                

                Clickable images updated.

                Volla Phone X

                joniusJ 1 Reply Last reply Reply Quote 0
                • joniusJ Offline
                  jonius @Talkless
                  last edited by

                  @talkless please clean the build dir when switching between versions.

                  T 1 Reply Last reply Reply Quote 0
                  • T Offline
                    Talkless @jonius
                    last edited by

                    @jonius said in Issues with clickable gdb / gdbserver:

                    @talkless please clean the build dir when switching between versions.

                    I do clean. What am I missing?

                    clickable clean --arch arm64
                    clickable clean --arch arm64 --libs
                    clickable script prepare-deps --arch arm64 && clickable build --libs --arch arm64 && clickable build --arch arm64 --skip-review --release
                    

                    Volla Phone X

                    joniusJ 1 Reply Last reply Reply Quote 0
                    • joniusJ Offline
                      jonius @Talkless
                      last edited by

                      @Talkless I just realized that I lost track of this one back then. Do you still encounter the crashes you were trying to debug?

                      T 1 Reply Last reply Reply Quote 0
                      • T Offline
                        Talkless @jonius
                        last edited by

                        @jonius said in Issues with clickable gdb / gdbserver:

                        @Talkless I just realized that I lost track of this one back then. Do you still encounter the crashes you were trying to debug?

                        Sorry I haven't tried to build or debug PureMaps since forever.

                        Honestly I just use OSMAnd via Waydroid. A bit defeating UT purpose but it just works for me.

                        Volla Phone X

                        joniusJ 1 Reply Last reply Reply Quote 0
                        • joniusJ Offline
                          jonius @Talkless
                          last edited by

                          @Talkless sorry to hear that and that the debugging was such a painful process. Let me know if you have ideas for improvements or decide to get back to this issue.

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