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
28
votes
4 answers

cmake cannot find libraries installed with vcpkg

I want to use vcpkg in a CMake project in Windows, because I need boost and xerces that are both handled by this package manager. I've the following CMakeLists.txt: cmake_minimum_required (VERSION 3.12.0) project (myproj) set (CMAKE_PREFIX_PATH…
Jepessen
  • 11,744
  • 14
  • 82
  • 149
27
votes
1 answer

How to remove vcpkg and all libraries installed with vcpkg

How does one completely remove vcpkg and all installations/system changes made by it? I recall seeing some FAQ about vcpkg where it said that you could just delete the vcpkg folder. However, I've been trying to find that same FAQ for over an hour…
Adomas Baliuka
  • 1,384
  • 2
  • 14
  • 29
21
votes
3 answers

What is __CxxFrameHandler4 and what does linker error "unresolved external symbol __CxxFrameHandler4" mean, exactly?

I'm using several libraries built through vcpkg (such as civet-web and prometheus-cpp), against my Visual C++ projects. When building x86 all is perfect, in x64 I get a bunch of linker errors: error LNK2001: unresolved external symbol…
Mr. Boy
  • 60,845
  • 93
  • 320
  • 589
15
votes
2 answers

Getting cURL to work with Visual Studios 2017

*Edit: I got CURL working in VS 2017 on a 64 bit machine following these steps (see below for original problem): First install vcpkg: Clone vcpkg using gitbash into C:\Program Files In a command prompt navigate to C:\Program Files\vcpkg Run in the…
EliSquared
  • 1,409
  • 5
  • 20
  • 44
14
votes
1 answer

How to retrieve cmake target names from vcpkg?

After installing a package, vcppkg very helpfully displays the relevant CMake targets... The package libwebp:x64-windows provides CMake targets: find_package(WebP CONFIG REQUIRED) target_link_libraries(main PRIVATE WebP::webp WebP::webpdemux…
Thomas Sharpless
  • 949
  • 1
  • 8
  • 14
12
votes
1 answer

Can't use a library installed with VCPKG in CLion

I followed the tutorial described in the VCPKG github site and then installed OpenMesh 8.0, and after, i linked the toolchain -DCMAKE_TOOLCHAIN_FILE=/home/diolante/vcpkg/scripts/buildsystems/vcpkg.cmake in Clion toolchain settings and when I…
FourZeroFive
  • 145
  • 1
  • 12
12
votes
3 answers

Using static Boost libraries with vcpkg and CMake

I'm using the package manager vcpkg to install the (static) Boost libraries via vcpkg install boost:x64-windows-static. Furthermore, I use CMake as my build system and I'm passing C:\vcpkg\scripts\buildsystems\vcpkg.cmake to CMake via the…
BullyWiiPlaza
  • 17,329
  • 10
  • 113
  • 185
10
votes
1 answer

vcpkg + cmake + visual studio not working

I have a cmake-based C++ project using boost and zmq libraries. I'm trying to build it on Windows using Visual Studio Community 2017 and vcpkg. I installed vcpkg following the instructions on the project page. Now I can see the required packages…
fferri
  • 18,285
  • 5
  • 46
  • 95
9
votes
2 answers

How to feed CMake with vcpkg information?

Suppose I have installed some library with vcpkg and it's numerous dependencied (say cgal). Now I want to compile some program against these libraries with CMake. How should I tell CMake about all locations of all libraries I have downloaded?…
Dims
  • 47,675
  • 117
  • 331
  • 600
9
votes
2 answers

CMake `INSTALL` for targets and its SO dependencies

My target linked with several libraries using TARGET_LINK_LIBRARIES with PUBLIC keyword, The INSTALL command looks like INSTALL(TARGETS foo DESTINATION ${CMAKE_INSTALL_PREFIX}/bin). I want somehow to force the cmake to include all (preferably…
kreuzerkrieg
  • 3,009
  • 3
  • 28
  • 59
9
votes
1 answer

Unresolved external symbol error with Google Mock and Vcpkg

I have created a simple C++ test project with one mocking class: #include #include class TestMock { public: MOCK_CONST_METHOD0(Method1, void()); }; TEST(Test, Test1) { TestMock mock; } int main(int argc,…
Hein Gustavsen
  • 395
  • 3
  • 15
8
votes
2 answers

vcpkg: recalling the CMake instructions shown after installing a package?

After installing packages with vcpkg, help text is shown, eg... The package fmt:x64-windows provides CMake targets: find_package(fmt CONFIG REQUIRED) target_link_libraries(main PRIVATE fmt::fmt fmt::fmt-header-only) ... for the varying…
PaulR
  • 706
  • 9
  • 27
8
votes
1 answer

How to statically link VCPKG produced .lib file in Visual Studio

I use VCPKG to build third party libraries like libcurl for example. I have dynamic and static builds. Obviously, import .lib and object .lib files are contained in two different folders, x64-windows and x64-windows-static respectively. I want to…
Alex1844
  • 313
  • 2
  • 8
8
votes
1 answer

Error linking boost with Visual Studio and vcpkg

I am trying to accomplish a simple task in order to check how easy is to develop "Linux apps" in Windows. I am using vcpkg from Microsoft in order to setup headers and libs and crow , an c++ http server that uses boost as a driver project The source…
cateof
  • 6,608
  • 25
  • 79
  • 153
8
votes
2 answers

vcpkg does not work for google test

I installed and integrated latest version of vcpkg: e:\work\vcpkg>vcpkg version Vcpkg package management program version 0.0.65-692a363701156f1bc319306fbde93fb6748325f6 See LICENSE.txt for license information. e:\work\vcpkg>vcpkg integrate…
Mikhail
  • 20,685
  • 7
  • 70
  • 146
1
2 3
39 40