Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. 3rd Party Software
  4. Build QuaZip for Android Qt
Forum Updated to NodeBB v4.3 + New Features

Build QuaZip for Android Qt

Scheduled Pinned Locked Moved Solved 3rd Party Software
16 Posts 4 Posters 5.6k 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.
  • SGaistS SGaist

    Hi,

    What exactly doesn't work ?

    CharlieGC Offline
    CharlieGC Offline
    CharlieG
    wrote on last edited by
    #3

    Hi @SGaist ,

    Ohh yes ... sorry. Here the message of terminal :

    MBPdeChrlesElie:quazip charlie$ /Applications/Qt/Qt5.8.0/5.8/android/bin/qmake -spec android-g++ PREFIX=/Applications/Qt/Qt5.8.0/5.8/android
    MBPdeChrlesElie:quazip charlie$ make
    rm -f libquazip.so
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-g++ --sysroot=/Users/charlie/Library/Android/sdk/ndk-bundle/platforms/android-16/arch-arm/ -Wl,-rpath=/Applications/Qt/Qt5.8.0/5.8/android/lib -Wl,--no-undefined -Wl,-z,noexecstack -shared -Wl,-soname,libquazip.so -o libquazip.so .obj/qioapi.o .obj/JlCompress.o .obj/quaadler32.o .obj/quacrc32.o .obj/quagzipfile.o .obj/quaziodevice.o .obj/quazip.o .obj/quazipdir.o .obj/quazipfile.o .obj/quazipfileinfo.o .obj/quazipnewinfo.o .obj/unzip.o .obj/zip.o .obj/moc_quagzipfile.o .obj/moc_quaziodevice.o .obj/moc_quazipfile.o  -L/Users/charlie/Library/Android/sdk/ndk-bundle/sources/cxx-stl/gnu-libstdc++/4.9/libs/armeabi-v7a -L/Users/charlie/Library/Android/sdk/ndk-bundle/platforms/android-16/arch-arm//usr/lib -L/Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x -lz -L/Applications/Qt/Qt5.8.0/5.8/android/lib -lQt5Core -lgnustl_shared -llog -lz -lm -ldl -lc -lgcc 
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/qioapi.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/JlCompress.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/quaadler32.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/quacrc32.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/quagzipfile.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/quaziodevice.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/quazip.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/quazipdir.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/quazipfile.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/quazipfileinfo.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/quazipnewinfo.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/unzip.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/zip.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/moc_quagzipfile.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/moc_quaziodevice.o:1:1: invalid character
    /Users/charlie/Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/../lib/gcc/arm-linux-androideabi/4.9.x/../../../../arm-linux-androideabi/bin/ld: error: .obj/moc_quazipfile.o:1:1: invalid character
    collect2: error: ld returned 1 exit status
    make: *** [libquazip.so] Error 1
    MBPdeChrlesElie:quazip charlie$ 
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #4

      Where did you download QuaZip from ?

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

      CharlieGC 1 Reply Last reply
      0
      • SGaistS SGaist

        Where did you download QuaZip from ?

        CharlieGC Offline
        CharlieGC Offline
        CharlieG
        wrote on last edited by
        #5

        @SGaist
        https://sourceforge.net/projects/quazip/

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

          Sorry, I couldn't reproduce your problem.

          Which NDK are you using ? I have the r13b

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

          CharlieGC 1 Reply Last reply
          2
          • SGaistS SGaist

            Sorry, I couldn't reproduce your problem.

            Which NDK are you using ? I have the r13b

            CharlieGC Offline
            CharlieGC Offline
            CharlieG
            wrote on last edited by CharlieG
            #7

            @SGaist
            Super...

            I have just update my NDK (13.0 to 13.1) and the building works.

            Thank you very much.

            PS: mark to solved doesn't work ???

            1 Reply Last reply
            0
            • CharlieGC Offline
              CharlieGC Offline
              CharlieG
              wrote on last edited by CharlieG
              #8

              Re,

              So, the building works, but I have 2 problems with the library :

              • impossible to find the quazip lib in the folder : /Applications/Qt/Qt5.8.0/5.8/android
              • I have this message wher execute the code undefined reference to 'JlCompress::compressFile(QString, QString)'

              Do you have any idea about these problems?

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

                Where is the file located ?

                The second error comes from the first. If the linker can't find the library it can't link to it thus you'll have symboles missing.

                As for the "solving" part. You need to select ask as question from the "Topic Tools" button and then click on it again to mark the thread as solved.

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

                CharlieGC 1 Reply Last reply
                0
                • SGaistS SGaist

                  Where is the file located ?

                  The second error comes from the first. If the linker can't find the library it can't link to it thus you'll have symboles missing.

                  As for the "solving" part. You need to select ask as question from the "Topic Tools" button and then click on it again to mark the thread as solved.

                  CharlieGC Offline
                  CharlieGC Offline
                  CharlieG
                  wrote on last edited by CharlieG
                  #10

                  @SGaist said in Build QuaZip for Android Qt:

                  Where is the file located ?

                  The lib ? Precisely I don't know. With the QuaZip for Mac OS, I have /Applications/Qt/Qt5.8.0/5.8/clang_64/lib/libquazip.1.0.0.dylib.
                  But with QuaZip for Android, I have nothing in /Applications/Qt/Qt5.8.0/5.8/android/lib. Still, I have the headers in /Applications/Qt/Qt5.8.0/5.8/android/include

                  @SGaist said in Build QuaZip for Android Qt:

                  As for the "solving" part. You need to select ask as question from the "Topic Tools" button and then click on it again to mark the thread as solved.

                  Yes, but here I only have two possibilities : Delete topic & Ask as question :(

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

                    Did you install the library ?

                    You must first click on "Ask as question" and then when you open it again you'll have the "mark as solved".

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

                    CharlieGC 1 Reply Last reply
                    0
                    • SGaistS SGaist

                      Did you install the library ?

                      You must first click on "Ask as question" and then when you open it again you'll have the "mark as solved".

                      CharlieGC Offline
                      CharlieGC Offline
                      CharlieG
                      wrote on last edited by
                      #12

                      @SGaist
                      Sorry, ... I hadn't to be awake...

                      The lib is installed in / libs / armeabi-v7a. So I copied it to /Applications/Qt/Qt5.8.0/5.8/android/lib for ease.

                      Thank you a lot.

                      G 1 Reply Last reply
                      0
                      • CharlieGC CharlieG

                        @SGaist
                        Sorry, ... I hadn't to be awake...

                        The lib is installed in / libs / armeabi-v7a. So I copied it to /Applications/Qt/Qt5.8.0/5.8/android/lib for ease.

                        Thank you a lot.

                        G Offline
                        G Offline
                        GulsahAkt
                        wrote on last edited by GulsahAkt
                        #13

                        @CharlieG
                        I am currently trying to use Quazip for Android, but I cannot use Quazip in QT and I am getting an error. What I did was I installed quazip-dev for Ubuntu and referenced it to my qt project, but it does not recognize the library. How did you install Quazip and compile it for Android? Can you please help?

                        jsulmJ 1 Reply Last reply
                        0
                        • G GulsahAkt

                          @CharlieG
                          I am currently trying to use Quazip for Android, but I cannot use Quazip in QT and I am getting an error. What I did was I installed quazip-dev for Ubuntu and referenced it to my qt project, but it does not recognize the library. How did you install Quazip and compile it for Android? Can you please help?

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

                          @GulsahAkt said in Build QuaZip for Android Qt:

                          What I did was I installed quazip-dev for Ubuntu and referenced it to my qt project, but it does not recognize the library. How did you install Quazip and compile it for Android? Can you please help?

                          I already told you in your other thread what you need to do:

                          1. Build QuaZip for android
                          2. Use this build to build your app for Android

                          What about following this suggestion?

                          Installing QuZip packages for your Linux distribution will not help you because those are for your desktop Linux, not for Android...

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

                          G 2 Replies Last reply
                          0
                          • jsulmJ jsulm

                            @GulsahAkt said in Build QuaZip for Android Qt:

                            What I did was I installed quazip-dev for Ubuntu and referenced it to my qt project, but it does not recognize the library. How did you install Quazip and compile it for Android? Can you please help?

                            I already told you in your other thread what you need to do:

                            1. Build QuaZip for android
                            2. Use this build to build your app for Android

                            What about following this suggestion?

                            Installing QuZip packages for your Linux distribution will not help you because those are for your desktop Linux, not for Android...

                            G Offline
                            G Offline
                            GulsahAkt
                            wrote on last edited by
                            #15

                            @jsulm I'm very sorry, after your answer I'm looking into how to compile it for Android. I don't know what I need to do to compile for Android. I couldn't find what to do for Android from Quazip's own instructions.

                            I am inexperienced in this matter and unfortunately this was the only post I came across on the forum about it.

                            1 Reply Last reply
                            0
                            • jsulmJ jsulm

                              @GulsahAkt said in Build QuaZip for Android Qt:

                              What I did was I installed quazip-dev for Ubuntu and referenced it to my qt project, but it does not recognize the library. How did you install Quazip and compile it for Android? Can you please help?

                              I already told you in your other thread what you need to do:

                              1. Build QuaZip for android
                              2. Use this build to build your app for Android

                              What about following this suggestion?

                              Installing QuZip packages for your Linux distribution will not help you because those are for your desktop Linux, not for Android...

                              G Offline
                              G Offline
                              GulsahAkt
                              wrote on last edited by
                              #16

                              @jsulm I managed to zip/unzip with quazip for Android device. With guidance from @jsulm. Thank you.

                              https://forum.qt.io/topic/151699/how-to-unzip-an-application-running-on-an-android-device-using-qt

                              1 Reply Last reply
                              1

                              • Login

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