Skip to content

Commit

Permalink
Merge pull request #74 from ctabin/fix-readme
Browse files Browse the repository at this point in the history
Fixes README for libzip 1.7.1
  • Loading branch information
ctabin authored Jul 11, 2020
2 parents cfa4004 + 15ac939 commit 89d1e01
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ TLDR: Use the standard CMake workflow: `mkdir build && cd build && cmake <-D...>
- Click `Configure` & `Generate`
- If CMake can't find zlib and/or libzip you need to set `CMAKE_PREFIX_PATH` to the directories where you installed those into
(either via `-DCMAKE_PREFIX_PATH=<...>` or via the GUI)
- Example: `-DCMAKE_PREFIX_PATH=/home/user/libzip-1.6.1:/home/user/zlib-1.2.11`
- Example: `-DCMAKE_PREFIX_PATH=/home/user/libzip-1.7.1:/home/user/zlib-1.2.11`
- Compile as usual
- Linux: `make && make install`
- Windows: Open generated project in MSVC. Build the `INSTALL` target to install.
Expand All @@ -73,13 +73,13 @@ Given that it was installed (via `CMAKE_INSTALL_PREFIX`) into a standard locatio
`CMAKE_PREFIX_PATH` you can simply call `find_package(libzippp 3.0 REQUIRED)` and link against `libzipp::libzipp`.

When not using CMake to consume libzipp you have to pass its include directory to your compiler and link against `libzippp.{a,so}`.
Do not forget to also link against libzip libraries e.g. in *lib/libzip-1.6.1/lib/.libs/*).
Do not forget to also link against libzip libraries e.g. in *lib/libzip-1.7.1/lib/.libs/*).
An example of compilation with g++:

```shell
g++ -I./lib/libzip-1.6.1/lib -I./src \
g++ -I./lib/libzip-1.7.1/lib -I./src \
main.cpp libzippp.a \
lib/libzip-1.6.1/lib/.libs/libzip.a \
lib/libzip-1.7.1/lib/.libs/libzip.a \
lib/zlib-1.2.11/libz.a
```

Expand Down Expand Up @@ -126,14 +126,14 @@ It may need some adjusting though.

0. Make sure you have cmake 3.10 (*cmake.exe* must be in the PATH) and MS Visual Studio 2012.

1. Download [libzip](http://www.nih.at/libzip/libzip-1.6.1.tar.gz) and [zlib](http://zlib.net/zlib1211.zip) sources and extract them in the 'lib' folder.
1. Download [libzip](http://www.nih.at/libzip/libzip-1.7.1.tar.gz) and [zlib](http://zlib.net/zlib1211.zip) sources and extract them in the 'lib' folder.
You should end up with the following structure:
```
libzippp/compile.bat
libzippp/lib/zlib-1.2.11
libzippp/lib/libzip-1.6.1
libzippp/lib/libzip-1.7.1
```
2. Apply the modifications described in libzippp/lib/libzip-1.6.1-windows.patch.
2. Apply the modifications described in libzippp/lib/libzip-1.7.1-windows.patch.

3. Execute the *compile.bat* (simply double-click on it). The compilation should
go without error.
Expand Down

0 comments on commit 89d1e01

Please sign in to comment.