702
questions
0
votes
0
answers
41
views
building qtwebengine:x64-windows failed
I want to use Qt in my Visual Studio project. And I decided to install Qt using vcpkg. But at the installation stage, qtwebengine causes an error:
Computing installation plan...
The following packages ...
0
votes
0
answers
37
views
How to set up seres-solver with visual studio 2022 and vcpkg [duplicate]
I want to use ceres-solver for curve fitting, I am very beginner at this and I don't know where to start, I am using Visual studio 2022 and vcpkg, but I could not make the test program to compile, the ...
0
votes
0
answers
21
views
How to copy vcpkg installed dlls using cmake install() [duplicate]
I've added vcpkg to my CMake project, and everything builds fine, but I would like the vcpkg installed dependencies to be added to my install directory.
My project consists of a core library, a ...
0
votes
1
answer
29
views
Error in loading Ogre plugins in build directory with CMake
I've create a CMake project that needs Ogre library. I've installed it with vcpkg and then I use it in my CMakeLists.txt, that's like the following one:
cmake_minimum_required (VERSION ${...
0
votes
1
answer
200
views
Can't install library with vcpkg using MinGW compiler
I'm trying to install the tbb library on Windows using the MinGW C++ compiler g++ and the vcpkg package manager. However, running .\vcpkg install tbb --triplet=x64-mingw-static --host-triplet=x64-...
0
votes
0
answers
38
views
vcpkg error: BUILD_FAILED when "Getting CMake variables for x64-windows"
I'm trying to install ffmpeg via vcpkg on Windows by running the following command:
vcpkg.exe install ffmpeg
The installation throws an error when getting CMake variables for x64-windows.
-- Getting ...
0
votes
0
answers
55
views
Visual Studio 2022 Remote CMake CMAKE_TOOLCHAIN_FILE incorrect
I'm currently trying to work out how to use cmake, so I can start moving some of our windows c++ code into docker containers. As part of that work I need to start using a package manager and so I'm ...
0
votes
1
answer
47
views
CMAKE cannot find the protobuf package
I want to use the protobuf package in my C++ project, and I have downloaded the binary executable of protoc from github, on the WIndows platform. I according to the contents of the https://github.com/...
0
votes
0
answers
19
views
Does a cmake project with a dependency that uses vcpkg also need to use vcpkg itself? [duplicate]
I've been learning cmake recently and managed to convert a couple personal projects of mine to leverage it. One project is a utility library with a test executable, and the other is the main project ...
0
votes
0
answers
33
views
Install gettext library, always loaded
enter image description hereWhen I use vcpkg to configure the project, when installing
gettext has been loading for more than one night. How can I solve this problem?
I reinstalled vcpkg, reacquired ...
0
votes
0
answers
64
views
Crosscompiling a C++ Project (cmake) on linux with vcpkg dependencys switches to wrong compiler after vcpkg setup is done
i try to crosscompile a c++ project for a specific glibc/kernel version in debian container. The toolchain was created with crosstool-ng and works fine as i can tell.
The project uses vcpkg for ...
0
votes
0
answers
29
views
Compiling vcpkg librairies with different versions of C++ (CMake)
I have an application that uses multiple libraries imported/compiled via VCPKG. The project is then built with cmake with C++14 using set(CMAKE_CXX_STANDARD 14) since Activemq-cpp cannot be built with ...
0
votes
0
answers
83
views
How do I cross compile vcpkg packages on Linux for Windows?
I am looking to use a Linux machine to use vcpkg to install and export packages for use by a Windows machine.
Steps on the Linux machine:
Clone VCPKG
vcpkg install openssl --triplet=x64-windows-...
0
votes
0
answers
37
views
How to install libshout using cmake in Windows 11 (NO MSYS2 answers)?
How to install libshout (and all it dependencies) in Windows 11 using cmake or vcpkg?
I don't want msys2/mingw answers.
I sucessfully build libogg, libvorbis and speex with cmake but i cannot install ...
0
votes
0
answers
26
views
Vcpkg + cmake + pybind issue "Could not find platform independent libraries <prefix>"
I found out about vcpkg earlier and its seems interesting, but leak of easy to use.
As I understand, after a day of investigations, vcpkg pybind11 goes with vcpkg Python. But when I start a simple ...
0
votes
0
answers
43
views
How to build `boost_stacktrace_backtrace` in vcpkg?
I want to use Boost.stacktrace library to call boost::stacktrace::stacktrace::from_current_exception().
I read configuration_and_build page but I don't understand what kind of macros is and where to ...
0
votes
0
answers
24
views
Set compiler flag when installing with vcpkg
I am trying to install pugixml using vcpkg and linking to it using cmake. I want to use it on windows and therefor want to use wchar_t instead of char. I know that pugixml has a compiler flag for this ...
1
vote
0
answers
44
views
wxWidgets vcpkg link errors
I installed vcpkg and then ran the command vcpkg install wxwidgets. This has successfully installed wxwidgets. To test it, I have the following files:
wxsample.cpp
class MyApp : public wxApp
{
public:
...
0
votes
0
answers
91
views
CMake project builds with Github Actions with windows, but not Linux
I have a cmake project using vcpkg as my dependency manager that I would like to build using Github Actions, however I'm having trouble building the project for Linux. The project builds perfectly ...
0
votes
0
answers
43
views
pthreads_cross.h error: conflicting declaration of C function from pthread.h
I have a cmake project where I'm using vcpkg as a package manager. One of the dependencies I need is the apriltag dependency which is dependent on the pthread dependency.
the project seems to ...
0
votes
0
answers
59
views
Issues With Clang Locating C++ Libraries on M3 Chipset
I'm on a Macbook Pro 2023 with an M3 chip. I've been attempting to get Poco (and all of its library files) as well as libpq to be properly located by Clang while using a Makefile. All my attempts have ...
0
votes
0
answers
75
views
Could not find a configuration file for package "Protobuf" that is compatible with requested version "3.1.0"
I'm trying to fork an old program, and I used CMake to grab the necessary dependencies. Here's the thing: when loading up the project folder, I get the error:
Could not find a configuration file for ...
0
votes
1
answer
270
views
VCPKG failed on boost-thread
I am using Visual Studio 2022 version 17.10.3 and managing Boost dependencies through vcpkg in manifest mode. However, when I build a simple project, I encounter errors specifically related to ...
1
vote
0
answers
51
views
Is there a way to get the SHA512 hash of a Github project archive without downloading the whole archive (.tar.gz file)?
When updating one of my ports in my custom overlay registry for vcpkg, the "portfile.cmake" file requires me to provide the "SHA512" hash of the Github project archive, example:
...
0
votes
0
answers
63
views
MSVC .dll build FAILED without indication as to why (fails only for vcpkg port)
I have a C++ library that builds successfully using Visual Studio 2022 (MSVC 17.6) in both Release and Debug configurations. It also builds successfully without any warnings using WSL (Ubuntu 20.04.6 ...
0
votes
1
answer
97
views
Application fails to link with library linked against OpenImageIO
I have a library that uses many dependencies managed by vcpkg. I have never had any issues until I recently added OpenImageIO.
On Windows 10 (MSVC 17.6) my library builds and links successfully, and ...
0
votes
1
answer
55
views
vcpkg and vcpkg_from_gitlab - wrong hashes
I'm trying to use our custom registry to download a port of our library from gitlab, unfortunately vcpkg can't verify the hash since gitlab always generates a new package with a different hash as it ...
1
vote
0
answers
30
views
Can I have several versions of the same package installed side-by-side?
I used to use libraw 0.19.0 in my project. Then I started using vcpkg and allowed it to just install the latest libraw package (0.21.2). Then I noticed that the images I was getting from libraw looked ...
0
votes
0
answers
199
views
vcpkg "error: while detecting compiler information"
I can not install vtk:x64-linux because of this message:
PS C:\Users\Juan\Desktop\VCPKG> ./vcpkg install vtk:x64-linux
Computing installation plan...
The following packages will be built and ...
0
votes
1
answer
321
views
Unable to build app using vcpkg and Ninja
I am creating a simple test c++ application which is using spdlog for logging.
I am using vcpkg as package manager and Ninja as generator and cmake.
My package is installed successfully inside my ...
0
votes
1
answer
63
views
Is it possible to use vcpkg on a github library with no install target?
I'm trying to learn my way around cmake projects for c++ and today I'm working on learning how to use vcpkg. One of the libraries I'm interested in trying is cpp-dotenv but it's not currently in the ...
0
votes
2
answers
99
views
Trying to build shared library by using third party libraries, cmake and vcpkg
File Structure
Just wanted to create a library using third party library, I am using Vcpkg and Cmake
CMakeLists.txt
cmake_minimum_required(VERSION 3.28)
project(Vcpkg)
set (CMAKE_CXX_STANDARD 20)
...
1
vote
0
answers
51
views
vcpkg doesn't install .so or .a files for libmagic C library
I am attempting to use libmagic in a rust project, using the magic rust crate which provides rust bindings for the libmagic C library. Instructions for Windows say to install libmagic using vcpkg, ...
0
votes
0
answers
241
views
i have trouble in building abseil using vcpkg
Iam trying to build aseil for MSVC17. the build is not generated corectly.
I have tried by reinstalling the VCPKG package manager and also check for log files. I thought proving the error logs would ...
1
vote
0
answers
95
views
Install qt6 in CLion with vcpkg
I'm new to CLion and vcpkg and started using it, because I want to use CGAL for my studies. I managed to install Qt5 with vcpkg by running C:\dev\vcpkg> .\vcpkg.exe install qt5.
With that I can run ...
0
votes
1
answer
57
views
Running executable that was statically linked with OpenCV with Qt option
Hi:I've successfully built the OpenCV 4.8.0 library in static library mode with the Qt option using vcpkg.
vcpkg.exe install opencv[ade,contrib,default-features,dnn,eigen,ffmpeg,freetype,gdcm,jasper,...
1
vote
0
answers
379
views
error <glog/logging.h> was not included correctly. See the documention for how to consume the library
I am trying to use glog in my Visual Studio c++ console app. I used vcpkg to install the library, but I get the following error when compiling:
Error C1189 #error: <glog/logging.h> was not ...
1
vote
0
answers
233
views
__builtin_FUNCSIG" is undefined error when integrating Boost with Visual Studio 2022
I'm working on a Windows 10 system using Visual Studio 2022 as my IDE. I installed the Boost library and integrated it into my Visual Studio project using the following commands:
vcpkg install boost
...
1
vote
1
answer
112
views
vcpkg_execute_required_process not setting OUTPUT_VARIABLE?
I'm not very familiar w/ cmake or vcpkg, but I've been assigned to work on a task to build some libraries using a tool which wraps the latter.
My goal, in the interests of perhaps helping me solve ...
0
votes
1
answer
46
views
vcpkg.json: select newest available major version
The vcpkg documentation has the following to say about how to constrain the version of a dependency in vcpkg.json:
version>=
Expresses a minimum version requirement, version>= declarations put ...
0
votes
1
answer
110
views
C++ VCPKG Install external library
I'm stuck with installing tinyxml2 to using vcpkg and link it using CMake
The following steps were taken
Install vcpkg
Run vcpkg add port tinyxml2
Run vcpkg to install tinyxml2
Run vcpkg integrate ...
0
votes
0
answers
91
views
vcpkg package "fatal error: curl/curl.h: No such file or directory" when i compile
I started c++ a week or two ago, and I have some problems with the vcpkg lib to install other lib more “easily”. I watched several videos that all used the same way of installation, when I install a ...
0
votes
1
answer
47
views
How can vcpkg-installed-lib and single-down-load lib use together in CLion
Case 1.
I usually install cxx libs with vcpkg.
I use Clion to build and run my project. My CLion version is 2024.1.1
I set -DCMAKE_TOOLCHAIN_FILE=/path/to/my/vcpkg/scripts/buildsystems/vcpkg.cmake on ...
0
votes
1
answer
147
views
FFmpeg find_package not found
CMake cannot find FFmpeg even though everything is right setup. I used vcpkg to install ffmpeg
I can't find any information to setup ffmpeg with CMake. I'm on Windows 10 with Visual Studio.
Get ...
0
votes
1
answer
102
views
CMake with CTest is not able to find any of my google tests written in gtest
I'm new to both cmake and visual studio code although I've been a software engineer for a decade. I've just never had to use these tools. Following the documentation from microsoft I setup vcpkg as my ...
0
votes
0
answers
104
views
Install a specific version of a package
this is my vcpkg.json file.
{
"dependencies": ["boost","hiredis","nlohmann-json","spdlog","fmt","libpq","librdkafka",...
0
votes
0
answers
58
views
Linkage error of libpqxx (postgresql) on Windows
I added libpqxx (pqxx) via vcpkg to CMake project, however it's failed while building.
Here is CMake code:
find_package(libpqxx CONFIG REQUIRED)
target_link_libraries(PqDataBase PRIVATE libpqxx::pqxx)...
0
votes
2
answers
176
views
How to link VCPKG libraries with G++
I have got vcpkg fully installed and working (installed in C:/vcpkg) and I have installed a library I want to use, in this case, cppzmq/zmq (ZeroMQ).
The header files and .lib files are present in C:/...
0
votes
0
answers
60
views
override sub dependencies in vcpkg
I am using vcpkg in manifest mode in CMake, by setting the toolset in the CMakeLists.txt.
I have as a dependency VTK and that has also a Qt dependency, but I am also using Qt in my own project. How ...
0
votes
0
answers
37
views
why openCV is not found by cmake when using vcpkg in manifest mode?
I have this cmake file:
cmake_minimum_required(VERSION 3.24)
File(TO_CMAKE_PATH $ENV{VCPKG_ROOT} VCPKG_ROOT)
message(STATUS ${VCPKG_ROOT})
set(CMAKE_TOOLCHAIN_FILE "${VCPKG_ROOT}/scripts/...