Category "cmake"

PCL problems in Ubuntu 20.04. how to get it running?

Make Error at CMakeLists.txt:12 (find_package): By not providing "FindPCL.cmake" in CMAKE_MODULE_PATH this project has asked CMake to find a package configu

How to use CMake FetchContent to link OpenSSL?

I don't quite understand how to integrate libraries by FetchContent if they were not found by find_package. Currently, I have the following code: # OpenSSL depe

Building a CMake project with OpenSSL as dependency

I would like to build my project with OpenSSL from sources. I am using a modern CMake with FetchContent feature. So far, I have no trouble using FetchContent wi

What is the difference between using a Makefile and CMake to compile the code?

I code in C/C++ and use a (GNU) Makefile to compile the code. I can do the same with CMake and get a Makefile. However, what is the difference between using a M

Cmake is not able to find Python-libraries

Getting this error: sudo: unable to resolve host coderw@ll -- Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS) CMake Error at /usr/s

problem installing nloptr 2.0.0 on debian 9 with R 4.2.0 and cmake 3.23.1

on my machine debian 9 (stretch), i have installed R4.2.0 from source. i have problem to install nloptr 2.0.0 using syntax: if (!require("nloptr", quietly = TRU

CLion make install globally

I would like to build and install my project using CLion, however it must be installed globally (i.e. to /usr/local/lib/cmake/). In bash I build with make -j$

QtCreator: Header files not found when using CMake

I have tried this on multiple platforms, experiencing the same issue every time. I successfully build and run my C++ OpenFrameworks application using QtCreator

LibTorch with OpenCV: version GOMP_5.0 not found

I'm trying to use OpenCV and LibTorch in the same project. Libtorch is installed in /usr/include/libtorch, downloaded from the PyTorch website. I'm using the cx

Include wxWidgets (3.1.1) installed with msys 2 into our project, using cmake

We are trying to include and make wxWidgets run in our project. We are using CMake to compile and to include our libraries with msys2. We are using CLion as IDE

ERROR: Could not build wheels for opencv-python which use PEP 517 and cannot be installed directly

I was trying to install OpenCV4 in a docker on jetson nano. It has jetpack 4.4 s os. The docker was successfully created and Tensorflow is running but while ins

Cmake executable with auto-generated sources

I want to make an executable from, for example, test_runner.cpp: add_executable(myexe ${CMAKE_CURRENT_BINARY_DIR}/test_runner.cpp) But this particular cpp fi

Can't run my built Qt Design Studio (Qt 6) project with CMake on Windows

I'm trying to run a compiled Qt6 project with CMake and mingw64, however, Qt6 apparently can't find QtQuick.Studio.Effects, QtQuick.Studio.Components and QtGrap

RShiny Deployment, CMake issue

I have written an app, which I can deploy on shinyapps.io with no problem from my old laptop with Windows 10, R version 4.1.0. When I try to deploy the exact sa

Generate script during build with cmake

I have a cmake project with a single source file called main.c. I want to additionally provide a wrapper script which calls main with specific parameters. My C

Error installing Dlib library for python

While trying to install Dlib library for Python, using this tutorial http://dlib.net/compile.html. This tutorial says to do this - cd examples mkdir build cd

How do I activate C++ 11 in CMake?

When I try to run a CMake generated makefile to compile my program, I get the error that range based for loops are not supported in C++ 98 mode. I tried a

How do I activate C++ 11 in CMake?

When I try to run a CMake generated makefile to compile my program, I get the error that range based for loops are not supported in C++ 98 mode. I tried a

How can I make CMake use GCC instead of Clang on Mac OS X?

I can't find any info on it, but only the other way around (e.g., how to set CMake to use clang). I've installed gcc-4.8 using brew, setup all dependencies, he

Parallel execution of cmake functions?

When running cmake on a large project, can it call a given cmake function in parallel? What I am concerned about is that when this (user defined) function store