Advertisement
AlexNovoross87

VCPKG

Feb 12th, 2025
14
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.01 KB | None | 0 0
  1. 1##########################
  2. В папке куда хотим ставить:
  3. clone https://github.com/microsoft/vcpkg.git
  4.  
  5. 2##########################
  6. Заходим в склонированый репозиторй:
  7. .\bootstrap-vcpkg.bat
  8.  
  9. 3#########################
  10.  
  11. PS F:\COMPILESOFT\vcpkg> .\vcpkg integrate install
  12.  
  13. Applied user-wide integration for this vcpkg root.
  14. CMake projects should use: "-DCMAKE_TOOLCHAIN_FILE=F:/COMPILESOFT/vcpkg/scripts/buildsystems/vcpkg.cmake"
  15. All MSBuild C++ projects can now #include any installed libraries. Linking will be handled automatically. Installing new libraries will make them instantly available.
  16.  
  17. Применена интеграция для всего пользователя для этого корневого каталога vcpkg.
  18. В проектах CMake должно использоваться: "-DCMAKE_TOOLCHAIN_FILE=F:/COMPILESOFT/vcpkg/scripts/buildsystems/vcpkg.cmake"
  19. Все проекты MSBuild на C++ теперь могут включать любые установленные библиотеки. Связывание будет осуществляться автоматически. Установка новых библиотек сделает их мгновенно доступными
  20.  
  21. 4#######################
  22. ---------------------------------------------------------------------------------------------------------------------------------
  23. PS F:\COMPILESOFT\vcpkg> vcpkg help
  24. usage: vcpkg <command> [--switches] [--options=values] [arguments] @response_file
  25. @response_file Contains one argument per line expanded at that location
  26.  
  27. Package Installation:
  28. export Creates a standalone deployment of installed ports
  29. install Installs a package
  30. remove Uninstalls a package
  31. x-set-installed Installs, upgrades, or removes packages such that that installed matches
  32. exactly those supplied
  33. upgrade Rebuilds all outdated packages
  34.  
  35. Package Discovery:
  36. x-check-support Tests whether a port is supported without building it
  37. depend-info Displays a list of dependencies for ports
  38. list Lists installed libraries
  39. owns Searches for the owner of a file in installed packages
  40. x-package-info Display detailed information on packages
  41. portsdiff Diffs changes in port versions between commits
  42. search Searches for packages available to be built
  43. update Lists packages that can be upgraded
  44.  
  45. Package Manipulation:
  46. add Adds dependency to manifest
  47. x-add-version Adds a version to the version database
  48. create Creates a new port
  49. edit Edits a port, optionally with %EDITOR%, defaults to "code"
  50. env Creates a clean shell environment for development or compiling
  51. format-manifest Prettyfies vcpkg.json
  52. hash Gets a file's SHA256 or SHA512
  53. x-init-registry Creates a blank git registry
  54. new Creates a new manifest
  55. x-update-baseline Updates baselines of git registries in a manifest to those registries' HEAD
  56. commit
  57.  
  58. Other:
  59. ci Tries building all ports for CI testing
  60. x-ci-verify-versions Checks integrity of the version database
  61. contact Displays contact information to send feedback
  62. fetch Fetches something from the system or the internet
  63. integrate Integrates vcpkg with machines, projects, or shells
  64.  
  65. For More Help:
  66. help topics Displays full list of help topics
  67. help <topic> Displays specific help topic
  68. help commands Displays full list of commands, including rare ones not listed here
  69. help <command> Displays help detail for <command>
  70.  
  71. For more help (including examples) see https://learn.microsoft.com/vcpkg
  72. ------------------------------------------------------------------------------------------------
  73.  
  74. PS F:\COMPILESOFT\vcpkg> vcpkg list
  75. No packages are installed. Did you mean `search`?
  76. PS F:\COMPILESOFT\vcpkg> vcpkg install libpqxx:static
  77. error: Invalid triplet: static
  78. Built-in Triplets:
  79. arm-neon-android
  80. arm64-android
  81. arm64-osx
  82. arm64-uwp
  83. arm64-windows-static-md
  84. arm64-windows
  85. x64-android
  86. x64-linux
  87. x64-osx
  88. x64-uwp
  89. x64-windows-static-md
  90. x64-windows-static
  91. x64-windows
  92. x86-windows
  93. Community Triplets:
  94. arm-android
  95. arm-ios
  96. arm-linux-release
  97. arm-linux
  98. arm-mingw-dynamic
  99. arm-mingw-static
  100. arm-uwp-static-md
  101. arm-uwp
  102. arm-windows-static
  103. arm-windows
  104. arm64-ios-release
  105. arm64-ios-simulator-release
  106. arm64-ios-simulator
  107. arm64-ios
  108. arm64-linux-release
  109. arm64-linux
  110. arm64-mingw-dynamic
  111. arm64-mingw-static
  112. arm64-osx-dynamic
  113. arm64-osx-release
  114. arm64-uwp-static-md
  115. arm64-windows-static-release
  116. arm64-windows-static
  117. arm64ec-windows
  118. armv6-android
  119. loongarch32-linux-release
  120. loongarch32-linux
  121. loongarch64-linux-release
  122. loongarch64-linux
  123. mips64-linux
  124. ppc64le-linux-release
  125. ppc64le-linux
  126. riscv32-linux-release
  127. riscv32-linux
  128. riscv64-linux-release
  129. riscv64-linux
  130. s390x-linux-release
  131. s390x-linux
  132. wasm32-emscripten
  133. x64-freebsd
  134. x64-ios
  135. x64-linux-dynamic
  136. x64-linux-release
  137. x64-mingw-dynamic
  138. x64-mingw-static
  139. x64-openbsd
  140. x64-osx-dynamic
  141. x64-osx-release
  142. x64-uwp-static-md
  143. x64-windows-release
  144. x64-windows-static-md-release
  145. x64-windows-static-release
  146. x64-xbox-scarlett-static
  147. x64-xbox-scarlett
  148. x64-xbox-xboxone-static
  149. x64-xbox-xboxone
  150. x86-android
  151. x86-freebsd
  152. x86-ios
  153. x86-linux
  154. x86-mingw-dynamic
  155. x86-mingw-static
  156. x86-uwp-static-md
  157. x86-uwp
  158. x86-windows-static-md
  159. x86-windows-static
  160. x86-windows-v120
  161. See https://learn.microsoft.com/vcpkg/users/triplets?WT.mc_id=vcpkg_inproduct_cli for more information.
  162.  
  163. PS F:\COMPILESOFT\vcpkg> vcpkg install libpqxx:x64-mingw-static
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement