How to build - gtoubassi/femtozip GitHub Wiki
The following builds femtozip and runs the unit tests. For a more detailed usage of the tools, see the Tutorial
A Mac with iPhone or XCode developer tools, or Linux with: gcc/g++, jdk, make, git, zlib-devel, ant, junit, ant-junit
% git clone https://github.com/gtoubassi/femtozip.git
% cd femtozip/cpp
% ./configure
% make
% fztests/src/fztests
The unit tests will take several seconds to run and should complete with 0 failures.
% sudo make install
At this point you have the femtozip library in /usr/local/lib
and the fzip
command line tool in /usr/local/bin
. You may uninstall with sudo make uninstall
. For a quick taste of FemtoZip on the command line, see the Tutorial.
% cd femtozip/java/femtozip
% ant jar
% ant test
The unit tests will take several seconds to run and should complete with 0 failures. To double check that there are no failures, the following command should return no input:
% ant test | grep Failures: | grep -v 'Failures: 0, Errors: 0,'
1. Get the source code per above and perform all steps above (build both native and java versions). Make sure you have installed the FemtoZip library (make install above)
% cd femtozip/java/jnifzip
% ./configure
% make
% sudo make install
4. Set your environment so the shared libraries for the JNI interface and FemtoZip are accessible. The following is for a Mac. On Linux set LD_LIBRARY_PATH instead of DYLD_LIBRARY_PATH:
% setenv DYLD_LIBRARY_PATH /usr/local/lib
% cd ../femtozip
% ant test-jni
The unit test should complete with 0 failures. To double check that there are no failures, the following command should return no input:
% ant test-jni | grep Failures: | grep -v 'Failures: 0, Errors: 0,'