Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1##########################
- В папке куда хотим ставить:
- clone https://github.com/microsoft/vcpkg.git
- 2##########################
- Заходим в склонированый репозиторй:
- .\bootstrap-vcpkg.bat
- 3#########################
- PS F:\COMPILESOFT\vcpkg> .\vcpkg integrate install
- Applied user-wide integration for this vcpkg root.
- CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=F:/COMPILESOFT/vcpkg/scripts/buildsystems/vcpkg.cmake"
- All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available.
- Применена интеграция для всего пользователя для этого корневого каталога vcpkg.
- В проектах CMake должно использоваться: "-DCMAKE_TOOLCHAIN_FILE=F:/COMPILESOFT/vcpkg/scripts/buildsystems/vcpkg.cmake"
- Все проекты MSBuild на C++ теперь могут включать любые установленные библиотеки. Связывание будет осуществляться автоматически. Установка новых библиотек сделает их мгновенно доступными
- 4#######################
- ---------------------------------------------------------------------------------------------------------------------------------
- PS F:\COMPILESOFT\vcpkg> vcpkg help
- usage: vcpkg <command> [--switches] [--options=values] [arguments] @response_file
- @response_file Contains one argument per line expanded at that location
- Package Installation:
- export Creates a standalone deployment of installed ports
- install Installs a package
- remove Uninstalls a package
- x-set-installed Installs, upgrades, or removes packages such that that installed matches
- exactly those supplied
- upgrade Rebuilds all outdated packages
- Package Discovery:
- x-check-support Tests whether a port is supported without building it
- depend-info Displays a list of dependencies for ports
- list Lists installed libraries
- owns Searches for the owner of a file in installed packages
- x-package-info Display detailed information on packages
- portsdiff Diffs changes in port versions between commits
- search Searches for packages available to be built
- update Lists packages that can be upgraded
- Package Manipulation:
- add Adds dependency to manifest
- x-add-version Adds a version to the version database
- create Creates a new port
- edit Edits a port, optionally with %EDITOR%, defaults to "code"
- env Creates a clean shell environment for development or compiling
- format-manifest Prettyfies vcpkg.json
- hash Gets a file's SHA256 or SHA512
- x-init-registry Creates a blank git registry
- new Creates a new manifest
- x-update-baseline Updates baselines of git registries in a manifest to those registries' HEAD
- commit
- Other:
- ci Tries building all ports for CI testing
- x-ci-verify-versions Checks integrity of the version database
- contact Displays contact information to send feedback
- fetch Fetches something from the system or the internet
- integrate Integrates vcpkg with machines, projects, or shells
- For More Help:
- help topics Displays full list of help topics
- help <topic> Displays specific help topic
- help commands Displays full list of commands, including rare ones not listed here
- help <command> Displays help detail for <command>
- For more help (including examples) see https://learn.microsoft.com/vcpkg
- ------------------------------------------------------------------------------------------------
- PS F:\COMPILESOFT\vcpkg> vcpkg list
- No packages are installed. Did you mean `search`?
- PS F:\COMPILESOFT\vcpkg> vcpkg install libpqxx:static
- error: Invalid triplet: static
- Built-in Triplets:
- arm-neon-android
- arm64-android
- arm64-osx
- arm64-uwp
- arm64-windows-static-md
- arm64-windows
- x64-android
- x64-linux
- x64-osx
- x64-uwp
- x64-windows-static-md
- x64-windows-static
- x64-windows
- x86-windows
- Community Triplets:
- arm-android
- arm-ios
- arm-linux-release
- arm-linux
- arm-mingw-dynamic
- arm-mingw-static
- arm-uwp-static-md
- arm-uwp
- arm-windows-static
- arm-windows
- arm64-ios-release
- arm64-ios-simulator-release
- arm64-ios-simulator
- arm64-ios
- arm64-linux-release
- arm64-linux
- arm64-mingw-dynamic
- arm64-mingw-static
- arm64-osx-dynamic
- arm64-osx-release
- arm64-uwp-static-md
- arm64-windows-static-release
- arm64-windows-static
- arm64ec-windows
- armv6-android
- loongarch32-linux-release
- loongarch32-linux
- loongarch64-linux-release
- loongarch64-linux
- mips64-linux
- ppc64le-linux-release
- ppc64le-linux
- riscv32-linux-release
- riscv32-linux
- riscv64-linux-release
- riscv64-linux
- s390x-linux-release
- s390x-linux
- wasm32-emscripten
- x64-freebsd
- x64-ios
- x64-linux-dynamic
- x64-linux-release
- x64-mingw-dynamic
- x64-mingw-static
- x64-openbsd
- x64-osx-dynamic
- x64-osx-release
- x64-uwp-static-md
- x64-windows-release
- x64-windows-static-md-release
- x64-windows-static-release
- x64-xbox-scarlett-static
- x64-xbox-scarlett
- x64-xbox-xboxone-static
- x64-xbox-xboxone
- x86-android
- x86-freebsd
- x86-ios
- x86-linux
- x86-mingw-dynamic
- x86-mingw-static
- x86-uwp-static-md
- x86-uwp
- x86-windows-static-md
- x86-windows-static
- x86-windows-v120
- See https://learn.microsoft.com/vcpkg/users/triplets?WT.mc_id=vcpkg_inproduct_cli for more information.
- PS F:\COMPILESOFT\vcpkg> vcpkg install libpqxx:x64-mingw-static
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement