Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to build quazip for Android using qt 6.3.2 #168

Open
Qmlio opened this issue Feb 10, 2023 · 1 comment
Open

Failed to build quazip for Android using qt 6.3.2 #168

Qmlio opened this issue Feb 10, 2023 · 1 comment

Comments

@Qmlio
Copy link

Qmlio commented Feb 10, 2023

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

@cen1
Copy link
Collaborator

cen1 commented Jun 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants