How to use zip plugin

I’m using Corona Enterprise on my job and developing application which using zip plugin.

It almost works well if building with SDK.

(Except Android devices with OS ver. 4.0.x, but it’s not the topic I wanna ask here)

On the document of zip plugin, there is little usage for Enterprise.

Just “TBD”.

Is it determined already? Would you please how can I use zip plugin on Enterprise.

There was a blog/article on this that might help you: http://www.coronalabs.com/blog/2013/05/21/tutorial-using-zip-plugin/

Thanks for reply.

Already implemented like in that blog entry.

It doesn’t work on Enterprise however works fine on SDK.

Hi.

What is the exact problem you are having? Does the plugin not work for you when using Enterprise but does when using Corona Starter?

I’m having problem in attacing zip plugin to my project.

I used version CoronaEnterprisePlugins.2013.1157

and linked libplugin.zip.a to Xcode, and I’m having below link error.

Undefined symbols for architecture armv7:
  “_crc32”, referenced from:
      _unzReadCurrentFile in libplugin.zip.a(unzip.o)
      _zipWriteInFileInZip in libplugin.zip.a(zip.o)
      getFileCrc(char const*, void*, unsigned long, unsigned long*) in libplugin.zip.a(ZipTask.o)
  “_deflate”, referenced from:
      _zipWriteInFileInZip in libplugin.zip.a(zip.o)
      _zipCloseFileInZipRaw64 in libplugin.zip.a(zip.o)
  “_deflateEnd”, referenced from:
      _zipCloseFileInZipRaw64 in libplugin.zip.a(zip.o)
  “_deflateInit2_”, referenced from:
      _zipOpenNewFileInZip4_64 in libplugin.zip.a(zip.o)
  “_get_crc_table”, referenced from:
      _zipOpenNewFileInZip4_64 in libplugin.zip.a(zip.o)
  “_inflate”, referenced from:
      _unzReadCurrentFile in libplugin.zip.a(unzip.o)
  “_inflateEnd”, referenced from:
      _unzCloseCurrentFile in libplugin.zip.a(unzip.o)
  “_inflateInit2_”, referenced from:
      _unzOpenCurrentFile3 in libplugin.zip.a(unzip.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Am I missing something?
 

When doing native Android development, you need to put 3rd party *.so libraries (such as our zip plugin) into the following directory of your Android project…

   ./MyAndroidProject/libs/armeabi-v7a

This is not a Corona thing.  This is where Google’s Android SDK/NDK build system wants you to put C/C++ libraries.  Google documents this here…

   http://developer.android.com/tools/sdk/ndk/index.html#Samples

Thanks for you reply, but as I wrote, the problem is when doing native iOS development. so I believe this is not the case.

Sorry about that.  I read your forum post a little too quickly.  I’m the Windows/Android developer here, so I don’t know either… but I’ll ask someone who does and write up a to-do item to have the zip plugin documentation updated.

@fuzzitter:

Can you include the error message you are receiving in Enterprise? Are you able to compile?

Regarding the Android 4.0.x build, the plugin has been fixed with the newest build. For enterprise you will want to have the latest enterprise SDK and the latest zip plugin.

@teamdtr

Your project appears to be missing libz.dylib in your Enterprise project within XCode. Please add libz.dylib to the target’s build phase in XCode as it is a dependency of the zip plugin.

There was a blog/article on this that might help you: http://www.coronalabs.com/blog/2013/05/21/tutorial-using-zip-plugin/

Thanks for reply.

Already implemented like in that blog entry.

It doesn’t work on Enterprise however works fine on SDK.

Hi.

What is the exact problem you are having? Does the plugin not work for you when using Enterprise but does when using Corona Starter?

I’m having problem in attacing zip plugin to my project.

I used version CoronaEnterprisePlugins.2013.1157

and linked libplugin.zip.a to Xcode, and I’m having below link error.

Undefined symbols for architecture armv7:
  “_crc32”, referenced from:
      _unzReadCurrentFile in libplugin.zip.a(unzip.o)
      _zipWriteInFileInZip in libplugin.zip.a(zip.o)
      getFileCrc(char const*, void*, unsigned long, unsigned long*) in libplugin.zip.a(ZipTask.o)
  “_deflate”, referenced from:
      _zipWriteInFileInZip in libplugin.zip.a(zip.o)
      _zipCloseFileInZipRaw64 in libplugin.zip.a(zip.o)
  “_deflateEnd”, referenced from:
      _zipCloseFileInZipRaw64 in libplugin.zip.a(zip.o)
  “_deflateInit2_”, referenced from:
      _zipOpenNewFileInZip4_64 in libplugin.zip.a(zip.o)
  “_get_crc_table”, referenced from:
      _zipOpenNewFileInZip4_64 in libplugin.zip.a(zip.o)
  “_inflate”, referenced from:
      _unzReadCurrentFile in libplugin.zip.a(unzip.o)
  “_inflateEnd”, referenced from:
      _unzCloseCurrentFile in libplugin.zip.a(unzip.o)
  “_inflateInit2_”, referenced from:
      _unzOpenCurrentFile3 in libplugin.zip.a(unzip.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Am I missing something?
 

When doing native Android development, you need to put 3rd party *.so libraries (such as our zip plugin) into the following directory of your Android project…

   ./MyAndroidProject/libs/armeabi-v7a

This is not a Corona thing.  This is where Google’s Android SDK/NDK build system wants you to put C/C++ libraries.  Google documents this here…

   http://developer.android.com/tools/sdk/ndk/index.html#Samples

Thanks for you reply, but as I wrote, the problem is when doing native iOS development. so I believe this is not the case.

Sorry about that.  I read your forum post a little too quickly.  I’m the Windows/Android developer here, so I don’t know either… but I’ll ask someone who does and write up a to-do item to have the zip plugin documentation updated.

@fuzzitter:

Can you include the error message you are receiving in Enterprise? Are you able to compile?

Regarding the Android 4.0.x build, the plugin has been fixed with the newest build. For enterprise you will want to have the latest enterprise SDK and the latest zip plugin.

@teamdtr

Your project appears to be missing libz.dylib in your Enterprise project within XCode. Please add libz.dylib to the target’s build phase in XCode as it is a dependency of the zip plugin.

this solved my problem. Thanks a lot, Bryan.

this solved my problem. Thanks a lot, Bryan.

Hi Joshua,

I’m having the same problem running my game that I compiled using enterprise. It says that I’m missing zip.plugin. Where do I find the 3rd parties .so ?

ps : I’m still evaluating enterprise and using build 1202

thanks