vcpkg를 사용한 Windows 설치 예시
vcpkg를 사용하여 Windows에서 Protobuf 및 gRPC™ 패키지를 vcpkg를 사용하여 Windows에 설치할 수 있습니다.
Windows 설치 전제 조건:
vcpkg 는 크로스 플랫폼 C/C++ 패키지 관리자입니다. vcpkg 를 사용하여 Protobuf, gRPC 및 관련 종속성을 설치할 수 있습니다:
.\vcpkg.exe install protobuf protobuf:x64-windows
.\vcpkg.exe install grpc:x64-windows참고: 매니페스트 모드를 사용하는것을 권장합니다 . 이 모드는 선언형 JSON 파일을 사용하여 프로젝트에 대한 메타데이터를 기술합니다. 매니페스트 파일의 이름은 반드시 vcpkg.json이어야 합니다.
마지막으로, Protobuf 및 gRPC 을 지원하는 Qt 기반 프로젝트를 빌드하고 실행할 수 있습니다. 예를 들어, 설치된 Qt 버전에서 Magic 8 Ball을 실행해 보세요. Magic 8 Ball 은 애플리케이션의 서버 부분에 네이티브 C++ 소스 코드 생성기 플러그인을 사용하기 때문에, 이 예제를 실행하려면 두 패키지가 모두 설치되어 있어야 합니다. Magic 8 Ball 예제를 시작하려면 다음 단계를 수행해야 합니다:
Examples섹션에서 Magic 8 Ball을 찾습니다:
- Qt Creator 구성 설정에서 MSVC 기반 빌드 키트를 선택하세요:

Initial Configuration설정 블록 내의CMAKE_PREFIX_PATH환경 변수에 설치된 Protobuf 및 gRPC 패키지의 경로를 추가합니다:
- 빌드 및 실행을 수행합니다.
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.