Blog categories

Comments

[C++] VCPKG 이용하여 zlib 설치하기

[C++] VCPKG 이용하여 zlib 설치하기

VCPKG란?

다양한 C++ Library 설치를 간편하게 해주는 툴.
Windows, Linux 및 MacOS에서 사용 가능.

VCPKG Install

소스코드를 받아 압축 해제한다.

vcpkg 설치를 위해 vcpkg 폴더에서 다음 명령 수행한다.

.\bootstrap-vcpkg.bat

설치 성공 시 Build succeeded. 문구가 출력된다.

Library 설치

vcpkg 폴더에서 Library 설치를 진행한다.

다음 명령 수행 시 설치 가능한 Library 목록이 출력된다.

.\vcpkg search

zlib 설치 시 다음과 같이 설치 가능하다.
상황에 따라 필요한 library를 설치하면 한다.

.\vcpkg install zlib:x64-windows
.\vcpkg install zlib:x86-windows
.\vcpkg install zlib:x86-windows-static

Library 설치가 완료되면, Visual Studio에서 사용 가능하도록 다음 명령을 수행한다.

.\vcpkg integrate install

이메일 주소는 공개되지 않습니다. 필수 필드는 *로 표시됩니다

div#stuning-header .dfd-stuning-header-bg-container {background-image: url(https://tech.sangron.com/wp-content/uploads/sites/2/2018/11/cpp_wallpaper_background.jpg);background-color: #3f3f3f;background-size: cover;background-position: top center;background-attachment: initial;background-repeat: no-repeat;}#stuning-header div.page-title-inner {min-height: 350px;}#main-content .dfd-content-wrap {margin: 0px;} #main-content .dfd-content-wrap > article {padding: 0px;}@media only screen and (min-width: 1101px) {#layout.dfd-portfolio-loop > .row.full-width > .blog-section.no-sidebars,#layout.dfd-gallery-loop > .row.full-width > .blog-section.no-sidebars {padding: 0 0px;}#layout.dfd-portfolio-loop > .row.full-width > .blog-section.no-sidebars > #main-content > .dfd-content-wrap:first-child,#layout.dfd-gallery-loop > .row.full-width > .blog-section.no-sidebars > #main-content > .dfd-content-wrap:first-child {border-top: 0px solid transparent; border-bottom: 0px solid transparent;}#layout.dfd-portfolio-loop > .row.full-width #right-sidebar,#layout.dfd-gallery-loop > .row.full-width #right-sidebar {padding-top: 0px;padding-bottom: 0px;}#layout.dfd-portfolio-loop > .row.full-width > .blog-section.no-sidebars .sort-panel,#layout.dfd-gallery-loop > .row.full-width > .blog-section.no-sidebars .sort-panel {margin-left: -0px;margin-right: -0px;}}#layout .dfd-content-wrap.layout-side-image,#layout > .row.full-width .dfd-content-wrap.layout-side-image {margin-left: 0;margin-right: 0;}