Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7710605
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:10:03+00:00 2026-06-01T01:10:03+00:00

I am having trouble getting minizip to work on android. I first tried to

  • 0

I am having trouble getting minizip to work on android. I first tried to link it as a static against my application shared library. However as soon as I used code from that minizip library I got a
UnsatisfiedLinkError. I have a few other libraries that do work, libzip and libpng. So to compare I compiled all three into shared libraries and use System.loadLibrary(“libpng”); System.loadLibrary(“libzip”);
System.loadLibrary(“minizip”); to load them before the application.

The LogCat outputs this:


02-28 21:12:23.371: D/dalvikvm(21023): Trying to load lib /data/data/com.flotsamworks.seadrift/lib/liblibpng.so 0x4a315c18
02-28 21:12:23.381: D/dalvikvm(21023): Added shared lib /data/data/com.flotsamworks.seadrift/lib/liblibpng.so 0x4a315c18
02-28 21:12:23.381: D/dalvikvm(21023): No JNI_OnLoad found in /data/data/com.flotsamworks.seadrift/lib/liblibpng.so 0x4a315c18, skipping init
02-28 21:12:23.411: D/dalvikvm(21023): Trying to load lib /data/data/com.flotsamworks.seadrift/lib/liblibzip.so 0x4a315c18
02-28 21:12:23.421: D/dalvikvm(21023): Added shared lib /data/data/com.flotsamworks.seadrift/lib/liblibzip.so 0x4a315c18
02-28 21:12:23.431: D/dalvikvm(21023): No JNI_OnLoad found in /data/data/com.flotsamworks.seadrift/lib/liblibzip.so 0x4a315c18, skipping init
02-28 21:12:23.431: D/dalvikvm(21023): Trying to load lib /data/data/com.flotsamworks.seadrift/lib/libminizip.so 0x4a315c18
02-28 21:12:23.451: I/dalvikvm(21023): Unable to dlopen(/data/data/com.flotsamworks.seadrift/lib/libminizip.so): Cannot load library: link_image[2033]: failed to link libminizip.so

As you can see minizip fails. but why? I really have no clue. Compiling is effortless, no problems there. I suspect its relying on some stuff android doesn’t have or a more up to date libz.

As for compiling I only have these linker options set which are the very same for libzip and libpng. -shared -Wl,–fix-cortex-a8 -lz

I have uploaded the project if you would like to have a look at the makefiles and code.
I code/ is the code…. in build/android8_gmake/ you can find build.sh, configure the three paths to gcc, g++ and ar.
In ./debug/bin you’ll find the already build shared objects i used.

http://projects.woutervandongen.com/thirdparty_sharedlibs_28_2_12.zip

I use NDKr7b with the custom toolchain generated by:
make-standalone-toolchain.sh –platform=android-8 –install-dir=./standalone-toolchain-api8

Please help

Regards,

Wouter

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T01:10:04+00:00Added an answer on June 1, 2026 at 1:10 am

    Quite stupid!

    Since Android does not support fseeko64 minizip won’t link properly.
    I looked for a define to get around this and found it to be;

    USE_FILE32API
    

    Problem solved!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Im having trouble getting some html 5 code to work on the android. It
I'm having trouble getting a rotary encoder to work properly with AVR micro controllers.
I've been having trouble getting my ASP.NET application to automatically log users into the
I'm having trouble getting the following to work in SQL Server 2k, but it
I am having trouble getting my ASP.NET application to start an application. For example
Having trouble getting the correct bounds for my iPad application when launching it in
Having trouble getting this to work. What's strange is that I have 10 bookmarks
I having trouble getting append() to work in safari for some reason, but it
I'm having trouble getting Jquery .closest() to work. Here's my code, it's simple and
I have been having trouble getting the screen dimensions for android. I do not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.