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
Forum Updated to NodeBB v4.3 + New Features

QGCS error for Android

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
21 Posts 2 Posters 1.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
    25 Feb 2025, 07:20

    @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...?

    J Offline
    J Offline
    jsulm
    Lifetime Qt Champion
    wrote on 25 Feb 2025, 07:22 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 25 Feb 2025, 09:49
    0
    • J jsulm
      25 Feb 2025, 07:22

      @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 25 Feb 2025, 09:49 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 ?

      J 1 Reply Last reply 25 Feb 2025, 10:29
      0
      • I InsideFPV
        25 Feb 2025, 09:49

        @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 ?

        J Offline
        J Offline
        jsulm
        Lifetime Qt Champion
        wrote on 25 Feb 2025, 10:29 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 25 Feb 2025, 11:01
        0
        • J jsulm
          25 Feb 2025, 10:29

          @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 25 Feb 2025, 11:01 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
          • J jsulm
            25 Feb 2025, 10:29

            @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 27 Feb 2025, 07:11 last edited by
            #12

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

            J 1 Reply Last reply 27 Feb 2025, 07:42
            0
            • I InsideFPV
              27 Feb 2025, 07:11

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

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 27 Feb 2025, 07:42 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 27 Feb 2025, 08:44
              0
              • J jsulm
                27 Feb 2025, 07:42

                @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 27 Feb 2025, 08:44 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
                • J Offline
                  J Offline
                  jsulm
                  Lifetime Qt Champion
                  wrote on 27 Feb 2025, 09:12 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 27 Feb 2025, 10:06
                  0
                  • J jsulm
                    27 Feb 2025, 09:12

                    You're missing libjpeg library now. Install it.

                    I Offline
                    I Offline
                    InsideFPV
                    wrote on 27 Feb 2025, 10:06 last edited by
                    #16

                    @jsulm where to find or build this library ?

                    J 1 Reply Last reply 27 Feb 2025, 12:01
                    0
                    • I InsideFPV
                      27 Feb 2025, 10:06

                      @jsulm where to find or build this library ?

                      J Offline
                      J Offline
                      jsulm
                      Lifetime Qt Champion
                      wrote on 27 Feb 2025, 12:01 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 27 Feb 2025, 12:28
                      0
                      • J jsulm
                        27 Feb 2025, 12:01

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

                        I Offline
                        I Offline
                        InsideFPV
                        wrote on 27 Feb 2025, 12:28 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
                        • J jsulm
                          27 Feb 2025, 12:01

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

                          I Offline
                          I Offline
                          InsideFPV
                          wrote on 28 Feb 2025, 06:04 last edited by
                          #19

                          @jsulm hello sir
                          please guide me for above error

                          J 1 Reply Last reply 28 Feb 2025, 06:12
                          0
                          • I InsideFPV
                            28 Feb 2025, 06:04

                            @jsulm hello sir
                            please guide me for above error

                            J Offline
                            J Offline
                            jsulm
                            Lifetime Qt Champion
                            wrote on 28 Feb 2025, 06:12 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 28 Feb 2025, 06:30
                            0
                            • J jsulm
                              28 Feb 2025, 06:12

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

                              I Offline
                              I Offline
                              InsideFPV
                              wrote on 28 Feb 2025, 06:30 last edited by
                              #21

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

                              1 Reply Last reply
                              0

                              17/21

                              27 Feb 2025, 12:01

                              • Login

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