Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
0 votes
0 answers
27 views

CMAKE: External project, configure fails on GithubActions - works locally

I made a function that downloads a ZIP then unpacks it, and then copies part of the subtree to the build dir (i need some resources in my build dir). The function works here on my Windows machine, ...
elcuco's user avatar
  • 9,120
1 vote
1 answer
59 views

How do I make CMake find default system libraries to link against without manual script manipulation?

I am trying to build a CMake project on my new pc, I have installed the appropriate Windows 10 Dev kit. But when trying generate the build files using cmake, I am getting linking errors by the cmake's ...
LakshyaK2011's user avatar
0 votes
0 answers
21 views

CMake project with WINDOWS_EXPORT_ALL_SYMBOLS fails to build .PYDs from the first attempt

I use the WINDOWS_EXPORT_ALL_SYMBOLS property in a CMake project to port it on Windows. CMake successfully generates the build files using the Visual Studio 17 2022 generator. It can build normal ...
Yurii S's user avatar
  • 335
0 votes
0 answers
22 views

No known features for CXX complier Error for Windows

enter image description hereI was trying to install opencv file paths and qt on cmake. I added the appropriate paths and configured, I did not receive any errors, but when I try to generate, I get a ...
Anka Hanım's user avatar
-1 votes
0 answers
17 views

How to cross compile for windows from linux using cmake

I tried to cmake using toolchain linking mingw gcc and g++ compiler but it's throwed error that zmq.h wasn't found. My question is how can i link zmq like external libraries. I even tried cloning zmq ...
Mathav Krishnan's user avatar
0 votes
1 answer
60 views

Visual studio 10 fails to build a test example (32bit) of boost regex (1.47): link error 1104

Boost provides a test example (linked to boost_regex): // test.cpp #include <boost/regex.hpp> #include <iostream> #include <string> int main() { std::string line; boost::...
Rosssssss's user avatar
0 votes
0 answers
59 views

how to configure CMake project so that clangd extension can see system headers in VS Code?

I have a setup of VS Code in windows 10 using MinGW for c++ development and I want to use the clangd extension for code completion and insights, the problem I'm having is that clangd can't find system ...
Teo's user avatar
  • 23
0 votes
2 answers
103 views

building OpenCV with GStreamer on Windows, copy to other computer without install GStreamer on Windows

I want OpenCV-python with GStreamer on Windows. I once installed GStreamer runtime and GStreamer development, and downloaded the opencv and opencv- contrib sources on a Windows machine. Using these, I ...
knob's user avatar
  • 11
0 votes
0 answers
32 views

"Loadable modules not supported on this platform" when building SkeletonPass on Windows [duplicate]

I'm trying to build Skeleton Pass https://github.com/sampsyo/llvm-pass-skeleton on Windows but I'm not sure if it is supported This is not duplicate, because the other question asks about Linux Here's ...
EUV's user avatar
  • 1
0 votes
0 answers
37 views

cmake execute_process OUTPUT_VARIABLE Empty and RESULT_VARIABLE 0

Trying to execute cmake execute_process with following command: cmake_minimum_required(VERSION 3.26) project(test_cmake) execute_process(COMMAND "some_executable.exe" --python-version ...
user6038334's user avatar
0 votes
0 answers
39 views

github actions: windows-latest can not open gomp.lib

I have a c++&cmake project where I am using github actions to build and test on ubuntu 22.04 and windows latest platforms. Unfortunately, the windows-latest linker fails with LINK : fatal error ...
skrat's user avatar
  • 636
0 votes
0 answers
38 views

Why is CMake locating incorrect package when building once, but finds the correct location when building again? [Windows, C++]

I have a small C++ program that uses an external library fmt located at the location C:\msys64\ucrt64\include\fmt. I build my program using cmake: mkdir build1 cd build1 cmake .. -G "MinGW ...
ray_lv's user avatar
  • 105
1 vote
0 answers
95 views

How to exclude some symbols from DLL when linking with a program?

I have a C++ program that I'm trying to link with a rather complicated DLL. When I link the DLL directly in visual studio, I get a number of errors telling me about symbols being "already ...
KyleL's user avatar
  • 1,375
0 votes
0 answers
39 views

How can I link Boost library against my project using Github Actions under Windows? [CMake]

I'm currently struggling with Gihub Actions and can't manage to build Boost tests under Windows machine using CMake. CMake built the project without any issues, but it couldn't link against the Boost ...
Andrei Pchalavodau's user avatar
0 votes
0 answers
44 views

Compiling with CMake and mingw32

I’m currently trying to compile a program using CMake on windows (for multiple reasons) so I downloaded the MinGW32 compiler. By doing the following command on PowerShell (admin): cmake -G «MinGW ...
Clément Leroy's user avatar

15 30 50 per page
1
2 3 4 5
71