|
Packit |
08bd4c |
More complete build documentation is available on the libarchive
|
|
Packit |
08bd4c |
Wiki: https://github.com/libarchive/libarchive/wiki
|
|
Packit |
08bd4c |
|
|
Packit |
08bd4c |
On most Unix-like systems, you should be able to install libarchive,
|
|
Packit |
08bd4c |
bsdtar, and bsdcpio using the following common steps:
|
|
Packit |
08bd4c |
./configure
|
|
Packit |
08bd4c |
make
|
|
Packit |
08bd4c |
make install
|
|
Packit |
08bd4c |
|
|
Packit |
08bd4c |
If you need to customize the target directories or otherwise adjust
|
|
Packit |
08bd4c |
the build setting, use
|
|
Packit |
08bd4c |
./configure --help
|
|
Packit |
08bd4c |
to list the configure options.
|
|
Packit |
08bd4c |
|
|
Packit |
08bd4c |
If you are developing libarchive and need to update the
|
|
Packit |
08bd4c |
configure script and other build files:
|
|
Packit |
08bd4c |
/bin/sh build/autogen.sh
|
|
Packit |
08bd4c |
|
|
Packit |
08bd4c |
To create a distribution, please use the 'distcheck' target:
|
|
Packit |
08bd4c |
/bin/sh build/autogen.sh && ./configure && make distcheck
|
|
Packit |
08bd4c |
|
|
Packit |
08bd4c |
On Unix-like and non-Unix-like systems, use the "cmake" utility (available from
|
|
Packit |
08bd4c |
http://cmake.org/) to generate suitable build files for your platform.
|
|
Packit |
08bd4c |
Cmake requires the name of the directory containing CmakeLists.txt and
|
|
Packit |
08bd4c |
the "generator" to use for your build environment. For example, to
|
|
Packit |
08bd4c |
build with Xcode on Mac OS, you can use the following command:
|
|
Packit |
08bd4c |
cmake -G "Xcode" ~/libarchive-download-dir/
|
|
Packit |
08bd4c |
The result will be appropriate makefiles, solution files, or project
|
|
Packit |
08bd4c |
files that can be used with the corresponding development tool.
|
|
Packit |
08bd4c |
The default on Unix-like systems is to generate Makefiles, so you
|
|
Packit |
08bd4c |
can also use cmake instead of the configure script:
|
|
Packit |
08bd4c |
cmake ~/libarchive-download-dir/
|
|
Packit |
08bd4c |
make
|
|
Packit |
08bd4c |
make install
|
|
Packit |
08bd4c |
See the libarchive Wiki or the cmake site for further documentation.
|