[docs][packaging-zlib] Fix example doc.

This commit is contained in:
Robert Schumacher 2018-01-31 12:20:27 -08:00
parent 1f6f27a548
commit 53e61d4ab5

View File

@ -16,7 +16,7 @@ Finally, if the server's name for the archive is not very descriptive (such as d
All this information can then be passed into the `create` command, which will download the sources and bootstrap the packaging process inside `ports\<packagename>`. All this information can then be passed into the `create` command, which will download the sources and bootstrap the packaging process inside `ports\<packagename>`.
```no-highlight ```no-highlight
PS D:\src\vcpkg> .\vcpkg create zlib2 http://zlib.net/zlib128.zip zlib128.zip PS D:\src\vcpkg> .\vcpkg create zlib2 http://zlib.net/zlib-1.2.11.tar.gz zlib-1.2.11.zip
-- Generated portfile: D:/src/vcpkg/ports/zlib2/portfile.cmake -- Generated portfile: D:/src/vcpkg/ports/zlib2/portfile.cmake
``` ```
@ -39,29 +39,28 @@ PS D:\src\vcpkg> .\vcpkg build zlib2
-- DOWNLOADS=D:/src/vcpkg/downloads -- DOWNLOADS=D:/src/vcpkg/downloads
-- CURRENT_PACKAGES_DIR=D:/src/vcpkg/packages/zlib2_x86-windows -- CURRENT_PACKAGES_DIR=D:/src/vcpkg/packages/zlib2_x86-windows
-- CURRENT_BUILDTREES_DIR=D:/src/vcpkg/buildtrees/zlib2 -- CURRENT_BUILDTREES_DIR=D:/src/vcpkg/buildtrees/zlib2
-- CURRENT_PORT_DIR=D:/src/vcpkg/ports/zlib2 -- CURRENT_PORT_DIR=D:/src/vcpkg/ports/zlib2/.
-- Using cached D:/src/vcpkg/downloads/zlib128.zip -- Using cached D:/src/vcpkg/downloads/zlib-1.2.11.tar.gz
-- Extracting source D:/src/vcpkg/downloads/zlib128.zip -- Testing integrity of cached file...
-- Testing integrity of cached file... OK
-- Extracting source D:/src/vcpkg/downloads/zlib-1.2.11.tar.gz
-- Extracting done -- Extracting done
-- Configuring x86-windows-rel -- Configuring x86-windows-rel
CMake Error at scripts/cmake/vcpkg_execute_required_process.cmake:13 (message): -- Configuring x86-windows-rel done
Command failed: C:/Program Files -- Configuring x86-windows-dbg
(x86)/CMake/bin/cmake.exe;D:/src/vcpkg/buildtrees/zlib2/src/zlib128;-G;Ninja;-DCMAKE_VERBOSE_MAKEFILE=ON;-DCMAKE_BUILD_TYPE=Release;-DCMAKE_TOOLCHAIN_FILE=D:/src/vcpkg/triplets/x86-windows.cmake;-DCMAKE_PREFIX_PATH=D:/src/vcpkg/installed/x86-windows;- -- Configuring x86-windows-dbg done
DCMAKE_INSTALL_PREFIX=D:/src/vcpkg/packages/zlib2_x86-windows -- Build x86-windows-rel
-- Build x86-windows-rel done
-- Build x86-windows-dbg
Working Directory: D:/src/vcpkg/buildtrees/zlib2/x86-windows-rel -- Build x86-windows-dbg done
-- Performing post-build validation
See logs for more information: Include files should not be duplicated into the /debug/include directory. If this cannot be disabled in the project cmake, use
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
D:/src/vcpkg/buildtrees/zlib2/config-x86-windows-rel-out.log /debug/share should not exist. Please reorganize any important files, then use
D:/src/vcpkg/buildtrees/zlib2/config-x86-windows-rel-err.log file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
The software license must be available at ${CURRENT_PACKAGES_DIR}/share/zlib2/copyright
Call Stack (most recent call first): Found 3 error(s). Please correct the portfile:
scripts/cmake/vcpkg_configure_cmake.cmake:15 (vcpkg_execute_required_process) D:\src\vcpkg\ports\zlib2\portfile.cmake
ports/zlib2/portfile.cmake:8 (vcpkg_configure_cmake)
scripts/ports.cmake:105 (include)
scripts/ports.cmake:184 (build)
``` ```
At this point, it is a matter of reading the error messages and log files while steadily improving the quality of the portfile. Zlib required providing a discrete copy of the LICENSE to copy into the package, suppressing the build and installation of executables and headers, and removing the static libraries after they were installed. At this point, it is a matter of reading the error messages and log files while steadily improving the quality of the portfile. Zlib required providing a discrete copy of the LICENSE to copy into the package, suppressing the build and installation of executables and headers, and removing the static libraries after they were installed.
@ -73,8 +72,8 @@ In the `ports\` directory are many libraries that can be used as examples, inclu
- rapidjson - rapidjson
- range-v3 - range-v3
- MSBuild-based - MSBuild-based
- cppunit
- mpg123 - mpg123
- glew
- Non-CMake, custom buildsystem - Non-CMake, custom buildsystem
- openssl - openssl
- boost - ffmpeg