Questions tagged [vcpkg]

Vcpkg helps you manage C and C++ libraries on Windows, Linux and MacOS.

Repository: Github Microsoft/vcpkg

Documentation: vcpkg.readthedocs.io

591 questions
1
vote
1 answer

How to use vcpkg properly to use libraries?

I am new to CPP and I find the lack of proper package management quite cumbersome how can I use the library cpr with vcpkg? git clone https://github.com/Microsoft/vcpkg.git cd vcpkg ./bootstrap-vcpkg.sh ./vcpkg integrate install ./vcpkg install…
user17243726
1
vote
3 answers

How to include Vcpkg on CMakeLists.txt?

So I have a project which depends on opencv, which is installed with vcpkg. The project is build with cmake. CMakeLists.txt cmake_minimum_required(VERSION 3.19.1) set(CMAKE_TOOLCHAIN_FILE…
KcFnMi
  • 5,516
  • 10
  • 62
  • 136
1
vote
2 answers

vcpkg wxWidgets CMake linker error with libjpeg.a

I'm trying to use wxWidgets on an arm64 macOS with vcpkg, CMake, and VS Code. Everything is wired up correctly because other vcpkg libraries include, link, and run fine. But, when I try to use wxWidgets there's a linking error. My…
sr3
  • 389
  • 2
  • 4
  • 15
1
vote
1 answer

Qt5 build as shared library on macos using cmake and vcpkg

Building the Qt library as shared library using cmake and vcpkg on the macOS Monterey(version 12.2.1) fails. Using the default VCPKG_LIBRARY_LINKAGE though (i.e. static), builds the library and makes it usable successfully. The issue only happens…
Avi Biton
  • 13
  • 4
1
vote
1 answer

Is Qt QML installed by vcpkg?

I installed Qt via Vcpkg on macOS. Then I pointed QtCreator to that installation, going on: Preferences Kits Qt Versions Then, on right side click Add and choose qmake executable. But there I see No QML utility installed. I'm aware not everything…
KcFnMi
  • 5,516
  • 10
  • 62
  • 136
1
vote
1 answer

How to apply different settings when swtiching between Windows and WSL?

for example, I'm using CMake to build. But the toolchain arg is configured in setting.json, so when I switch to WSL from Windows, I have to change the directory so that CMake can find the right toolchain file. "cmake.configureArgs": [ //…
isudfv
  • 179
  • 1
  • 9
1
vote
0 answers

Installed VCPKG and Visual Studio Community 2022, but when installing a new library or dependency I get an error with ninja. Any idea how to fix this?

UPDATE: I attempted some more fixes, which involved installing some new components for visual studio community 2022. However, that didn't work and googling my issue further just brought up conflicting posts regarding RC.exe not being found and CMAKE…
1
vote
2 answers

how to properly link mingw libraries using cmake and vcpkg?

I've getting used to simple cmake codes like this cmake_minimum_required(VERSION 3.20) project(trial VERSION 0.1.0) set(CMAKE_CXX_STANDARD 20) find_package(fmt CONFIG REQUIRED) add_executable(trial main.cpp) target_link_libraries(trial PRIVATE…
isudfv
  • 179
  • 1
  • 9
1
vote
1 answer

how to build libfranka on Windows 11

Please advise me on the following issue. I am trying to build libfranka on Window 11 as explained here: https://frankaemika.github.io/docs/installation_windows.html. I could install eigen3 and poco packages through vcpkg. However, when I try to open…
ANA
  • 11
  • 1
1
vote
1 answer

Running Embedded Python in c++ using vcpkg to install

I do not understand how to install python through vcpkg. The CMakesLists file I have is: cmake_minimum_required(VERSION 3.8) if(NOT DEFINED CMAKE_TOOLCHAIN_FILE) set(CMAKE_TOOLCHAIN_FILE "./vcpkg/scripts/buildsystems/vcpkg.cmake" CACHE STRING…
Drew Smith
  • 73
  • 6
1
vote
0 answers

CMake not able to find magnum plug-ins installed with vcpkg

I've cloned and am trying to compile & run a c++ project from here: https://git.ist.ac.at/gsperl/MADYPG I've installed all the dependencies as listed with vcpkg, but I am getting an error regarding the jpeg, and png importer magnum plug-ins, despite…
1
vote
2 answers

Poco installed with vcpkg is missing ssl related header files

I use the command to install Poco. vcpkg.exe install openssl:x64-windows And openssl x64 is installed. When i use visual studio 2022, it show me that it can't found the file Poco/Net/SSLManager.h, and Other libraries related to ssl. Why is this…
ciel
  • 33
  • 5
1
vote
1 answer

Using VCPKG with cmake and Qt 6 for Windows ARM64

Qt 6.2 introduced Windows on Arm support (https://bugreports.qt.io/browse/QTBUG-85820). I tried to create a new cmake project set up using Qt Creator and everything works fine. Then I wanted to add some external packages to my project using vcpkg.…
mathripper
  • 299
  • 1
  • 12
1
vote
0 answers

Why is a wxWidgets hello world GUI application flagged as a virus by various AVs?

I made a GUI application in wxWidgets and kept receiving anti virus alerts by various users. I spent a great amount of time commenting out code and re-uploading the EXE to VirusTotal. It turns out, none of this was my code. Using the wxWidgets…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
1
vote
1 answer

How can I statically link my project dependencies using vcpkg with Visual Studio?

I've read some ways to do what I want but none of them worked and they end up using the same method. I've tried this solution, which I couldn't make it work... Here's what I get outputed: 1>libcurl.lib(memdebug.c.obj) : error LNK2001: unresolved…
kpp
  • 131
  • 5