当前位置:网站首页>Getting started with vcpkg
Getting started with vcpkg
2022-04-23 18:52:00 【Brick Porter】
About VCPKG Compile and use basic methods , Other articles have made it clear . I also learned a lot according to the articles of leaders . Let's talk about my usage findings .
One 、 The library and its support library are always updated , So it usually takes a period of time to update , In order to obtain the support of the newly added Library .
Two 、 How to know which libraries it supports , see Under subdirectories ports. Each folder corresponds to a library .vcpkg install Add the name of this directory to install the corresponding library .
3、 ... and 、 Some libraries provide some options and some compilation and library features . Use this parameter :
vcpkg install Library name [ Options ]: Version options
Library name , How to check has been mentioned above , open ports Under the directory of the library vcpkg.json File to see the options it supports . Let's say curl Support brotli Format support, i.e Accept-Encoding Can support br. By default vcpkg The default compilation option can only decompress gzip Format . open ports/curl In the catalog vcpkg.json You know , see default-features Node can know , By default, the options it uses are "non-http", "ssl",features All the options it supports are listed under the node , You can know brotli Also supported, so use vcpkg install curl[brotli]:x86-windows Can be compiled to support brotli The library of . Of course, there are many options under it , You need other support to add it .
Besides , stay vs2019 or 2022 Has directly provided vcpkg Support for , If installed vcpkg In the future, there will be one more compilation option vcpkg The tab of .
If you use x86-windows-static/x64-windows-static Compiled the static library , Then pay attention to use static libraries Change to yes , Otherwise, the compilation will fail to link the library .
版权声明
本文为[Brick Porter]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210603257228.html
边栏推荐
猜你喜欢

解决:cnpm : 無法加載文件 ...\cnpm.ps1,因為在此系統上禁止運行脚本

ESP32 LVGL8. 1. Detailed migration tutorial of m5stack + lvgl + IDF (27)

After opening the original normal project, the dependency package displays red and does not exist.

【C语言进阶11——字符和字符串函数及其模拟实现(2))】

Teach you to quickly rename folder names in a few simple steps

Eight bit binary multiplier VHDL

ESP32 LVGL8. 1 - slider slider (slider 22)

ctfshow-web362(SSTI)

【科普】CRC校验(一)什么是CRC校验?

【数学建模】—— 层次分析法(AHP)
随机推荐
ctfshow-web362(SSTI)
Résolution: cnpm: impossible de charger le fichier... Cnpm. PS1 parce que l'exécution de scripts est désactivée sur ce système
ESP32 LVGL8. 1 - input devices (input devices 18)
QT curve / oscilloscope customplot control
Coolweather is revised and connected to the wind weather interface to realize the broken line diagram of temperature
Esp32 drive encoder -- siq-02fvs3 (vscade + IDF)
Get a list of recent apps
程序员如何快速开发高质量的代码?
Simplified path (force buckle 71)
Seata处理分布式事务
昇腾 AI 开发者创享日全国巡回首站在西安成功举行
Scrollto and scrollby
数据库上机实验四(数据完整性与存储过程)
Database computer experiment 4 (data integrity and stored procedure)
【数学建模】—— 层次分析法(AHP)
ESP32 LVGL8. 1 - calendar (calendar 25)
在渤海期货办理开户安全吗。
iptables -L执行缓慢
How can programmers quickly develop high-quality code?
The type initializer for ‘Gdip‘ threw an exception