Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. QGCS error for Android
Qt 6.11 is out! See what's new in the release blog

QGCS error for Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
21 Posts 2 Posters 17.7k Views 1 Watching
  • 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.
  • I InsideFPV

    @jsulm i am adding only this code porting inside my cmake file.
    target_link_libraries(QGroundControl
    PUBLIC
    -ljpeg
    -lpng
    )

    I am getting gstreamer error and i ask chatgpt and it provide me this solution.
    As form your questing i understand i have to add libpng in my project but i didnt added that till now.(Am i right...?)
    please guide me how can i resolve it...?

    jsulmJ Offline
    jsulmJ Offline
    jsulm
    Lifetime Qt Champion
    wrote on last edited by
    #8

    @InsideFPV said in QGCS error for Android:

    i have to add libpng in my project but i didnt added that till now

    You DID add it already! Just look at your CMakeLists.txt file.
    I repeat the questions you did not answer:
    Was libpng found when running cmake?
    Where is libpng for Android located?

    https://forum.qt.io/topic/113070/qt-code-of-conduct

    I 1 Reply Last reply
    0
    • jsulmJ jsulm

      @InsideFPV said in QGCS error for Android:

      i have to add libpng in my project but i didnt added that till now

      You DID add it already! Just look at your CMakeLists.txt file.
      I repeat the questions you did not answer:
      Was libpng found when running cmake?
      Where is libpng for Android located?

      I Offline
      I Offline
      InsideFPV
      wrote on last edited by InsideFPV
      #9

      @jsulm No libpng was not found while running cmake.
      and it is not presend in this location:
      "C:/Users/Software/AppData/Local/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android"

      where will i get libpng ?

      jsulmJ 1 Reply Last reply
      0
      • I InsideFPV

        @jsulm No libpng was not found while running cmake.
        and it is not presend in this location:
        "C:/Users/Software/AppData/Local/Android/Sdk/ndk/26.1.10909125/toolchains/llvm/prebuilt/windows-x86_64/sysroot/usr/lib/aarch64-linux-android"

        where will i get libpng ?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #10

        @InsideFPV If Android NDK does not provide it you will have to build it by yourself from source.

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        I 2 Replies Last reply
        0
        • jsulmJ jsulm

          @InsideFPV If Android NDK does not provide it you will have to build it by yourself from source.

          I Offline
          I Offline
          InsideFPV
          wrote on last edited by
          #11

          @jsulm As i am using master clone.
          As this is my first time doing I am struggling with steps. Can you guide me how to build it..?

          1 Reply Last reply
          0
          • jsulmJ jsulm

            @InsideFPV If Android NDK does not provide it you will have to build it by yourself from source.

            I Offline
            I Offline
            InsideFPV
            wrote on last edited by
            #12

            @jsulm hello sir please guide me how to build lpng file ?

            jsulmJ 1 Reply Last reply
            0
            • I InsideFPV

              @jsulm hello sir please guide me how to build lpng file ?

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on last edited by
              #13

              @InsideFPV Take a look at https://github.com/julienr/libpng-android
              Official description how to build: https://github.com/pnggroup/libpng/blob/libpng16/INSTALL

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              I 1 Reply Last reply
              0
              • jsulmJ jsulm

                @InsideFPV Take a look at https://github.com/julienr/libpng-android
                Official description how to build: https://github.com/pnggroup/libpng/blob/libpng16/INSTALL

                I Offline
                I Offline
                InsideFPV
                wrote on last edited by
                #14

                @jsulm sir i am adding libpng.so and libpng.a on my ndk path that is below
                C:\Users\Software\AppData\Local\Android\Sdk\ndk\26.1.10909125\toolchains\llvm\prebuilt\windows-x86_64\sysroot\usr\lib\aarch64-linux-android

                but still getting error
                Capture21.PNG Capture22.PNG Capture23.PNG

                1 Reply Last reply
                0
                • jsulmJ Offline
                  jsulmJ Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on last edited by
                  #15

                  You're missing libjpeg library now. Install it.

                  https://forum.qt.io/topic/113070/qt-code-of-conduct

                  I 1 Reply Last reply
                  0
                  • jsulmJ jsulm

                    You're missing libjpeg library now. Install it.

                    I Offline
                    I Offline
                    InsideFPV
                    wrote on last edited by
                    #16

                    @jsulm where to find or build this library ?

                    jsulmJ 1 Reply Last reply
                    0
                    • I InsideFPV

                      @jsulm where to find or build this library ?

                      jsulmJ Offline
                      jsulmJ Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on last edited by
                      #17

                      @InsideFPV https://www.ijg.org/files/

                      https://forum.qt.io/topic/113070/qt-code-of-conduct

                      I 2 Replies Last reply
                      0
                      • jsulmJ jsulm

                        @InsideFPV https://www.ijg.org/files/

                        I Offline
                        I Offline
                        InsideFPV
                        wrote on last edited by
                        #18

                        @jsulm yes sir I am build this library but getting another error ..

                        Capture24.PNG Capture25.PNG

                        1 Reply Last reply
                        0
                        • jsulmJ jsulm

                          @InsideFPV https://www.ijg.org/files/

                          I Offline
                          I Offline
                          InsideFPV
                          wrote on last edited by
                          #19

                          @jsulm hello sir
                          please guide me for above error

                          jsulmJ 1 Reply Last reply
                          0
                          • I InsideFPV

                            @jsulm hello sir
                            please guide me for above error

                            jsulmJ Offline
                            jsulmJ Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on last edited by
                            #20

                            @InsideFPV Maybe you should ask QGCS project? It is not part of Qt...

                            https://forum.qt.io/topic/113070/qt-code-of-conduct

                            I 1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @InsideFPV Maybe you should ask QGCS project? It is not part of Qt...

                              I Offline
                              I Offline
                              InsideFPV
                              wrote on last edited by
                              #21

                              @jsulm yes sir I am asking about QGCS project
                              please help me for this

                              1 Reply Last reply
                              0

                              • Login

                              • Login or register to search.
                              • First post
                                Last post
                              0
                              • Categories
                              • Recent
                              • Tags
                              • Popular
                              • Users
                              • Groups
                              • Search
                              • Get Qt Extensions
                              • Unsolved