]>
Commit | Line | Data |
---|---|---|
8797188b | 1 | More complete build documentation is available on the libarchive |
1572069f | 2 | Wiki: https://github.com/libarchive/libarchive/wiki |
8797188b TK |
3 | |
4 | On most Unix-like systems, you should be able to install libarchive, | |
5 | bsdtar, and bsdcpio using the following common steps: | |
b3cfa26b TK |
6 | ./configure |
7 | make | |
8 | make install | |
9 | ||
10 | If you need to customize the target directories or otherwise adjust | |
11 | the build setting, use | |
12 | ./configure --help | |
13 | to list the configure options. | |
14 | ||
b60a5be8 TK |
15 | If you are developing libarchive and need to update the |
16 | configure script and other build files: | |
17 | /bin/sh build/autogen.sh | |
b3cfa26b | 18 | |
8797188b TK |
19 | To create a distribution, please use the 'distcheck' target: |
20 | /bin/sh build/autogen.sh && ./configure && make distcheck | |
21 | ||
7a8dcef3 | 22 | On Unix-like and non-Unix-like systems, use the "cmake" utility (available from |
d4682a2c TK |
23 | http://cmake.org/) to generate suitable build files for your platform. |
24 | Cmake requires the name of the directory containing CmakeLists.txt and | |
25 | the "generator" to use for your build environment. For example, to | |
26 | build with Xcode on Mac OS, you can use the following command: | |
27 | cmake -G "Xcode" ~/libarchive-download-dir/ | |
8797188b TK |
28 | The result will be appropriate makefiles, solution files, or project |
29 | files that can be used with the corresponding development tool. | |
7a8dcef3 TK |
30 | The default on Unix-like systems is to generate Makefiles, so you |
31 | can also use cmake instead of the configure script: | |
32 | cmake ~/libarchive-download-dir/ | |
33 | make | |
34 | make install | |
35 | See the libarchive Wiki or the cmake site for further documentation. |