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. Trying to build QMsgPack lib for Android 6.2.0 Clang arm64-v8a

Trying to build QMsgPack lib for Android 6.2.0 Clang arm64-v8a

Scheduled Pinned Locked Moved Solved Mobile and Embedded
48 Posts 2 Posters 9.9k 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.
  • K Offline
    K Offline
    Kris Revi
    wrote on last edited by Kris Revi
    #1

    Following this -> https://qmsgpack.readthedocs.io/en/latest/install.html

    at the bottom it states Also you can just open qmsgpack.pro in Qt Creator and build it from there.

    and that's what i did!

    This is the Compile Output

    C:\AndroidSDK\ndk\21.3.6528147/toolchains/llvm/prebuilt/windows-x86_64/bin/../lib/gcc/aarch64-linux-android/4.9.x/../../../../aarch64-linux-android/bin\ld: cannot find -lqmsgpackd
    clang++: error: linker command failed with exit code 1 (use -v to see invocation)
    make[2]: *** [Makefile:69: libtst_streamtest_arm64-v8a.so] Error 1
    make[2]: Leaving directory 'C:/build-qmsgpack-Android_Qt_6_2_0_Clang_arm64_v8a-Release/tests/stream'
    make[1]: *** [Makefile:47: sub-stream-make_first] Error 2
    make[1]: Leaving directory 'C:/build-qmsgpack-Android_Qt_6_2_0_Clang_arm64_v8a-Release/tests'
    make: *** [Makefile:73: sub-tests-make_first] Error 2
    15:48:55: The process "C:\AndroidSDK\ndk\21.3.6528147\prebuilt\windows-x86_64\bin\make.exe" exited with code 2.
    Error while building/deploying project qmsgpack (kit: Android Qt 6.2.0 Clang arm64-v8a)
    When executing step "Make"
    15:48:55: Elapsed time: 00:06.
    

    now is there something i've missed or is there some error in the lib for Qt 6.2.0 or android?

    1 Reply Last reply
    0
    • K Offline
      K Offline
      Kris Revi
      wrote on last edited by
      #2

      so i can build it for the kit Desktop Qt 6.2.0 MinGw 64-bit but i dunno what todo from here :S

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Kris Revi
        wrote on last edited by
        #3

        so it works for the kit Desktop Qt 6.2.0 MinGw 64-bit but not for Android 6.2.0 Clang arm64-v8a

        Error:
        9188c350-7491-4f4b-afbe-d74224b63db7-image.png

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Hi,

          The last image suggest that you may be trying to use the version of QMsgPack that you built for a different architecture.

          How did that file end up in that folder ?

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          K 1 Reply Last reply
          1
          • SGaistS SGaist

            Hi,

            The last image suggest that you may be trying to use the version of QMsgPack that you built for a different architecture.

            How did that file end up in that folder ?

            K Offline
            K Offline
            Kris Revi
            wrote on last edited by
            #5

            @SGaist so i need to remove everything, download QMsgPack again, open the .pro file and ONLY build for Android 6.2.0 Clang arm64-v8a kit and not for Desktop Qt 6.2.0 MinGw 64-bit

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Do out of source builds, so you can use it for all the target platforms you need.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              K 1 Reply Last reply
              1
              • SGaistS SGaist

                Do out of source builds, so you can use it for all the target platforms you need.

                K Offline
                K Offline
                Kris Revi
                wrote on last edited by
                #7

                @SGaist out of source? im not good with this compiling / building lib thing

                1 Reply Last reply
                0
                • SGaistS Offline
                  SGaistS Offline
                  SGaist
                  Lifetime Qt Champion
                  wrote on last edited by
                  #8

                  Literally: "Do not build in the sources".

                  By default Qt Creator uses shadow builds which are out of source builds.

                  Interested in AI ? www.idiap.ch
                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                  K 1 Reply Last reply
                  0
                  • SGaistS SGaist

                    Literally: "Do not build in the sources".

                    By default Qt Creator uses shadow builds which are out of source builds.

                    K Offline
                    K Offline
                    Kris Revi
                    wrote on last edited by
                    #9

                    @SGaist 09bf266c-81d1-4410-8563-66a177614293-image.png

                    tick off this?

                    1 Reply Last reply
                    0
                    • SGaistS Offline
                      SGaistS Offline
                      SGaist
                      Lifetime Qt Champion
                      wrote on last edited by
                      #10

                      On the contrary, keep it.

                      If you have already used it, then it's strange that building your application it looked for the library in the wrong place.

                      How are you pointing to it in your main project ?

                      Interested in AI ? www.idiap.ch
                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                      K 1 Reply Last reply
                      0
                      • SGaistS SGaist

                        On the contrary, keep it.

                        If you have already used it, then it's strange that building your application it looked for the library in the wrong place.

                        How are you pointing to it in your main project ?

                        K Offline
                        K Offline
                        Kris Revi
                        wrote on last edited by
                        #11

                        @SGaist the error comes from the trying to build the QMsgPack from the .pro file!

                        1 Reply Last reply
                        0
                        • SGaistS Offline
                          SGaistS Offline
                          SGaist
                          Lifetime Qt Champion
                          wrote on last edited by
                          #12

                          There's an issue in the .pro file. It does not properly set dependencies so you might be building the tests before the library.

                          Either switch to cmake since Qt Creator also supports it or change the .pro file. See here.

                          Interested in AI ? www.idiap.ch
                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                          K 1 Reply Last reply
                          0
                          • SGaistS SGaist

                            There's an issue in the .pro file. It does not properly set dependencies so you might be building the tests before the library.

                            Either switch to cmake since Qt Creator also supports it or change the .pro file. See here.

                            K Offline
                            K Offline
                            Kris Revi
                            wrote on last edited by
                            #13

                            @SGaist a03812ca-ffbf-434e-b990-45987f7808f0-image.png

                            here you mean?

                            1 Reply Last reply
                            0
                            • SGaistS Offline
                              SGaistS Offline
                              SGaist
                              Lifetime Qt Champion
                              wrote on last edited by
                              #14

                              No, modify the qmsgpack.pro file content.

                              Interested in AI ? www.idiap.ch
                              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                              K 1 Reply Last reply
                              0
                              • SGaistS SGaist

                                No, modify the qmsgpack.pro file content.

                                K Offline
                                K Offline
                                Kris Revi
                                wrote on last edited by
                                #15

                                @SGaist this is the entire content for qmsgpack.pro

                                TEMPLATE = subdirs
                                
                                SUBDIRS += \
                                    src \
                                    tests
                                
                                
                                1 Reply Last reply
                                0
                                • SGaistS Offline
                                  SGaistS Offline
                                  SGaist
                                  Lifetime Qt Champion
                                  wrote on last edited by
                                  #16

                                  I know, and that's the one you need to modify in order to ensure that src is built before tests following the instructions in the wiki I linked in my previous message.

                                  The alternative is to comment out tests and the backslash after src but you won't have the tests built.

                                  Interested in AI ? www.idiap.ch
                                  Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                  K 1 Reply Last reply
                                  0
                                  • SGaistS SGaist

                                    I know, and that's the one you need to modify in order to ensure that src is built before tests following the instructions in the wiki I linked in my previous message.

                                    The alternative is to comment out tests and the backslash after src but you won't have the tests built.

                                    K Offline
                                    K Offline
                                    Kris Revi
                                    wrote on last edited by
                                    #17

                                    @SGaist do i even need the tests? :S

                                    1 Reply Last reply
                                    0
                                    • SGaistS Offline
                                      SGaistS Offline
                                      SGaist
                                      Lifetime Qt Champion
                                      wrote on last edited by
                                      #18

                                      Technically it ensures that the library is working properly if they run.

                                      Interested in AI ? www.idiap.ch
                                      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                      K 1 Reply Last reply
                                      0
                                      • SGaistS SGaist

                                        Technically it ensures that the library is working properly if they run.

                                        K Offline
                                        K Offline
                                        Kris Revi
                                        wrote on last edited by
                                        #19

                                        @SGaist ah, cause i tested now with "tests" commented out and all i got wasa8c25b78-bdc3-4ba4-b76b-9365998a58dc-image.png

                                        1 Reply Last reply
                                        0
                                        • SGaistS Offline
                                          SGaistS Offline
                                          SGaist
                                          Lifetime Qt Champion
                                          wrote on last edited by
                                          #20

                                          Did you also comment out the \ as suggested ?

                                          Interested in AI ? www.idiap.ch
                                          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                                          K 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