Git Product home page Git Product logo

lua-minizip's Introduction

lua-minizip

minizip 的 LuaJIT FFI 绑定,只实现了 mem 模块。Linux | MACOSX, minizip v1.1 + LuaJIT v2。

构建 v1.1 版

  1. 下载 minizip v1.1 源码包,解压。
  2. minizip-1.1_CMakeLists.txt 覆盖其中的 CMakeLists.txt 。会构建测试用的可执行文件、共享库、链接 bzip2 库、链接 compression 库(MACOSX)。
  3. 进入源码目录,构建 minizip 共享库:cmake .; make
  4. 将 libminizip.dylib 拷贝到 Lua 库路径中,改为名 libminizip_1_1.dylib (dylib: MACOSX, so: Linux)。
  5. 测试 zip ,生成 zip.zip 文件:luajit test_zip.lua
  6. 测试 unzip ,显示 zip.zip 的信息、内容:luajit test_unzip.lua

构建 master 版

  1. git clone https://github.com/nmoinvaz/minizip.git
  2. cp minizip.git_CMakeLists.txt minizip/CMakeLists.txt
  3. cd minizip; cmake .; make
  4. mv libminizip.<SO_EXT> <LUA_PATH>/libminizip_dev.<SO_EXT>
  5. luajit test_zip.lua
  6. luajit test_unzip.lua

lua-minizip's People

Contributors

hshq avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.