stachenov / quazip

Qt/C++ wrapper over minizip
Other
582 stars 232 forks source link

Failed to build quazip for Android using qt 6.3.2 #168

Open Qmlio opened 1 year ago

Qmlio commented 1 year ago

I keep getting no such file or directory < qtzlib/zlib> when building qauzip for Android, please how can I fix it.

cen1 commented 5 months ago

This is a year late but I wanted to test this out our of sheer curiosity.

The whole setup is very complicated and paintful for someone doing this for the first time.

The overall steps are roughly:

  1. Using Qt online installer, custom install Qt6 Android + Qt5 compat module
  2. Open quazip in Qt creator, switch to autodetected Android kit (e.g. arm64-v8a kit), do a release build
  3. Built at e.g. build/Android_Qt_6_7_1_Clang_arm64_v8a-Release
  4. In app cmake, add
    set(QuaZip-Qt6_DIR "$MY_QUAZIP_DIR/build/Android_Qt_6_7_1_Clang_arm64_v8a-Release")
    find_package(QuaZip-Qt6 REQUIRED)
    target_include_directories(galleryexample PUBLIC QuaZip::QuaZip)
    target_link_libraries(galleryexample PUBLIC
    Qt6::Core
    Qt6::Gui
    Qt6::Quick
    Qt6::QuickControls2
    QuaZip::QuaZip
    )

Includes then start working and it compiles but I'll try to go further and produce a working zip/unzip sample application.