8000 iconv.h is missing on some android platform · Issue #463 · zlib-ng/minizip-ng · GitHub
[go: up one dir, main page]

Skip to content

iconv.h is missing on some android platform #463

Closed

Description

@okhowang

I want use minizip with Android NDK.
and I found that some ndk version has poor iconv support (only support in 32 bits).

I notice iconv_* is only used in mz_os_utf8_string_create which is only called by mz_zip_reader_save_all with reader->encoding > 0 and reader->file_info->flag & MZ_ZIP_FLAG_UTF8.
it's useless in some situation.

Shall we add a build option to remove iconv dependency for some platform?
or use JNI to call Java API for encoding converting.

Activity

  1. nmoinvaz commented on Apr 8, 2020

    @nmoinvaz
    Member

    We probably need a HAVE_ICONV definition added to CMakeLists.txt, then we can check if we have it. If we don't then just put a compiler warning and skip iconv code.

  2. nmoinvaz commented on Apr 8, 2020

    @nmoinvaz
    Member

    I have made some changes to the dev branch. Please try them and let me know how it works for you.

  3. okhowang commented on Apr 8, 2020

    @okhowang
    ContributorAuthor

    It's OK to me.
    Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    build systemBuild system and script changesfixedIssue or bug has been fixed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0