A library using 7z.dll/7z.so(from 7-Zip) to handle different archive types. lib7zip is based on 7zip/p7zip source code, but NOT including any source code from 7zip/p7zip.
- Build lib7zip
- Under UNIX/LINUX like system
- Get a copy of p7zip source code, and extract to a folder
- Define a env P7ZIP_SOURCE_DIR point to the extracted folder
- cmake -DBUILD_SHARED_LIB=OFF -DP7ZIP_SOURCE_DIR=${P7ZIP_SOURCE_DIR}
- Under windows
- Get mingw from http://www.mingw.org
- Get a copy of original 7zip source code, NOT the p7zip for linux
- Define a env P7ZIP_SOURCE_DIR point to the extracted folder
- cmake -DBUILD_SHARED_LIB=OFF -DP7ZIP_SOURCE_DIR=${P7ZIP_SOURCE_DIR}
- Under UNIX/LINUX like system
- Run lib7zip
- Under UNIX/LINUX like system
- install p7zip binary
- find 7z.so path, export LD_LIBRARY_PATH=<where 7z.so existing>
- Under Windows
- install 7zip binary
- copy 7z.dll to where your application existing
- Under UNIX/LINUX like system
Any time or any problem about lib7zip, please feel free to write me an email.
Any feature or patch request, please also feel free to write me an email.
- Many thanks to Joe who provide so many great patches
- Many thanks to Christoph who give so many great advises and patch.
- Many thanks to Christoph Thielecke to provide great patches for OS2 and dynamic library
- Add Compress function to library
- Python Binding created by Mark, http://github.com/harvimt/pylib7zip
- move build system to cmake
- fix bug when do signature detect for dmg files
- fix bug of memory leaking when deal with sub archive
- Make the library compiling with latest p7zip 15.9.0 and 7zip 15.10.0
- Fix bug in test7zipmulti
- Add new parameter bool fDetectFileTypeBySignature to OpenArchive, when fDetectFileTypeBySignature = true, lib7zip will using file signature instead file name extension to detect file type
- remove out-of-dated visual studio files
- add AUTHORS COPYING file
- add LIB7ZIP_ prefix to error code enum,break the old client, please update your code
- add APIs SetLib7ZipLocale and GetLib7ZipLocale, client could use these API to force lib7zip locale, otherwise lib7zip will use current user's locale
- add list of path to find 7z.so when 7z.so is not in users ld path
- fix Mac OSX compile fail problem
- Add GetLastError to C7ZipLibrary and Error code define in lib7zip.h
- open archive with password now work for archive created by 7za a -mhe -p, who encrypted the file names in archive
- Fixed broken windows built system
- Fixed build script for windows
- Add OS2 support
- create dynamic library along with static library
- Add Multi-Volume support
- Add Password support
- Add GetProperty functions to C7ZipArchive to retrieve archive properties
- Add kpidSize to return Item umcompressed size, the same as GetSize returning
- Add patches from Christoph
- make the test program works when no Test7Zip.7z found
- Add functions to get more property about items in the archive
- Tested on Mac OS X
- Move source control to Mercurial for better distributed development
- Add patches from Joe,
- make the library work with latest p7zip 9.20
- Add patches from Joe,
- Add a method to get the compressed size
- Add a method to expose whether the file is encrypted
- Build scripts update
- Small fix to make the lib working with the latest p7zip source
- First release, support both LINUX and windows platform.