All Questions
1,062
questions
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, ...
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 ...
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 ...
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 ...
-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 ...
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::...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...