Click here to Skip to main content
15,906,645 members
Everything / Cmake

Cmake

cmake

Great Reads

by honey the codewitch
Presenting a simple to create understandable and maintainable builds for projects with dependencies
by Marius Bancila
This article provides an introduction to CMake through a series of examples to help you, as VC++ developers, to create and maintain CMake projects.
by Sébastien Jodogne
This article explains how to create a basic WADO server to provide Web access to DICOM images. The WADO server is implemented as a plugin for Orthanc, a lightweight DICOM store.
by Greg Utas
Analogous functions, subtle differences, multiple compilers...

Latest Articles

by honey the codewitch
Presenting a simple to create understandable and maintainable builds for projects with dependencies
by Greg Utas
Analogous functions, subtle differences, multiple compilers...
by Iqra Ali
This article gives a practical overview of using GitHub Actions to automate a CI pipeline to build C++ project which is configured using CMake.
by Vhalun
A step-by-step tutorial about how to build a Qt/C++ project on Android

All Articles

Sort by Score

Cmake 

31 Dec 2019 by k5054
Take a look here: CMake Tutorial — CMake 3.16.2 Documentation[^]. That should guide you in creating your CMakeList.txt file. Are you sure you're using cmake, though? Generating a Makefile through cmake should produce a Makefile that is many lines long. In my case, even the simplest cmake...
20 Oct 2021 by Rick York
I use VS19 also and I make libraries all the time, no pun intended. Portability to other environments is of zero concern for me so I just use VS19's built-in settings to make it happen. I select a configuration type of static library which is...
3 Oct 2023 by honey the codewitch
Presenting a simple to create understandable and maintainable builds for projects with dependencies
21 Feb 2021 by Rick York
It says, Could not find compiler set in environment variable CXX: g++-4.9. That means the EV is set to g++-4.9 but that compiler can not be found. You need to either make that compiler accessible to Cmake or set the environment variable CXX to...
8 Jun 2021 by Richard MacCutchan
As far as I am aware it is a standard part of the Visual Studio installation.
3 Oct 2022 by Richard MacCutchan
Possibly because your include statement is telling the compiler to look in the standard library locations and your opencv is in your project folder. Try changing it to #include "opencv2/xfeatures2d.hpp" with double quotes rather than angle...
13 Aug 2023 by Andre Oosthuizen
This seems to be an issue all over, have a look at these 2 links which has some kinds of solutions - "Installing..." is taking forever, unity hub[^] Unity Hub SDK and NDK tools download freeze[^]
16 Oct 2011 by OlegKrivtsov
Hello,I generate a shared library named, for example, mylib80.dll (it haspostfix "80", because I want to embed version info into library name.I use set_target_properties with _POSTFIX property to achievethis. By default, CMake names corresponding import library asmylib80.lib. But I...
14 Jan 2012 by 01.mandar
i have set up target fs on /home/myself/filesys/bin..etc//GCC compile:host $ arm_v5t_le-gcc hello.c -o helloRun:target $ cd /opt/hellotarget $./helloi have installed opencv2.3 on host ubuntu machine now i want opencv to be ported to DM6446 so i follow 1 uncompress opencv2.3...
27 Apr 2015 by KarstenK
you must build the dll in release mode. Check the compiler settings in your project. In a release build these macro should not get compiled in the binary output.Maybe you should look WHERE the release dll is build. :-O
22 Jul 2015 by mayooran99
I have created a C++ file which has a function that should be called from the Python file. But this C++ file requires to be built through cmake as there are OpenCV dependencies. When I run the main Python file I am getting the following error:ImportError:...
23 Jul 2015 by Albert Holguin
Your extension definition needs to include your dependencies.See here: https://docs.python.org/2/extending/building.html[^]Example from above:module1 = Extension('demo', define_macros = [('MAJOR_VERSION', '1'), ...
23 Jul 2015 by Albert Holguin
I don't think you can... if you want to use CMake, you'd have to use Swig to tie your C++ in with your Python. You're sort of mixing two things that don't have too much to do with each other.
28 Jul 2016 by OriginalGriff
The best thing for you to do is contact the author: go to the GIT page, click on the author name and you should see his email.He is the person you need to talk to, not a completely unrelated site...I suspect it's this guy: edoren (Manuel Sabogal) · GitHub[^]
31 Aug 2017 by forest-321
Hi, friends! I want to compile a open source c++ project on windows system. But this project is configured linux cpp, h files and configure files such as 'configure', 'Makefile', 'Makefile.am', 'Makefile.in' and so on. Thanks. What I have tried: To compile on windows, I tried to use cmake,...
25 Sep 2018 by soul.at.peace
I am trying to use mFast for FastFix protocol on my windows machine but not able to install using cmake-gui.exe I am using Visual studio 2010 on Windows Server 2003. CMAKE-LISTS.txt file (GLOB headers "*.h") ## retrieve all header files in current directory file (GLOB sources "*.cpp") ##...
22 Feb 2019 by Member 13233096
I am using R studio, Now i want to install LightGBM for window. I have Installed Git for Window, CMAKE and MINGW64. The path of GIT is C:\Program Files\Git\bin and the path of CMAKE is C:\Users\MuhammadMaqsood\Downloads\cmake-3.13.3-win64-x64\bin I have set...
31 Dec 2019 by TankRockett
Recently i've just built an SFML/C++ project on Visual Studio Code using CMake and MinGW.I've successfully compiled and run a test file in my project folder. Here's my Makefile: StarFire: g++ main.cpp -o main.exe -DSFML_STATIC -I F:\SFMLPrj\StarFirestc\Prefixes\include -L...
19 Mar 2020 by lock&_lock
Hi, I've been following an OpenCV tutorial from a book. Prior to it, I have OpenCV already installed on my machine. I'm working with OpenCV & C++ on a terminal and compile my program with CMake. Here's my Ubuntu OpenCV version : Ubuntu 18.04.4...
14 Apr 2020 by lock&_lock
Took me almost 2 weeks tried to integrate QT and OpenGL. I changed my CMake settings back & forth so I'm not exactly sure if this will be the same case for everyone but this this what worked for me. Make sure you have Java installed and...
22 Jul 2020 by Vassili Kravtchenko-Berejnoi
I'm currently working in a c++/MinGW64 project where I'd like to use VS2019. The project uses CMake in combination with Ninja, so I simply open it in a "Folder View". I have brought VS2019 to generate the ninja makefiles and build the entire...
8 Jun 2021 by Southmountain
I try to pick up CMake build tool and manually install a copy of CMake directly from www.cmake.org. Late on I start a CMake project inside Visual Studio 2019 enterprise, and find out CMake is installed already on my machine. Also I notice,...
20 Oct 2021 by Weird Japanese Shows
Hello guys, Whenever I need to change my pc, I'm haunted by the thoughts of rebuilding external libraries. Some libraries have step-by-step insturctions which prevents it from becoming a challenge but some libraries like libpqxx(postgresql's c++...
20 Oct 2021 by Richard MacCutchan
This is the Quick Answers forum, and there is nowhere near enough space (or time) to provide product tutorials. You will need to find them for yourself. For example: CMake Reference Documentation — CMake 3.22.0-rc1 Documentation[^], make(1) -...
3 Oct 2022 by Member 11246616
I have project written in cmakelists.txt using opencv. And, I want to run this project in QT in ubuntu. But there is an error; `/home/asiye/ 38 | #include | ...
28 Feb 2023 by Shobhit_23
I was writing a calculator project containing multiple source and header files. I had uploaded those files on Github, but left out the cmakefile. Due to some reasons I lost access to my older account and had to reinstall the system. Now when I am...
30 Mar 2023 by twhall
In a CMake project: I have a directory "A" for an external project. Its CMakeLists.txt file first attempts find_package (A-PKG ...). If A-PKG_FOUND, it extracts some paths, and defines some variables according to what it found. Else, it sets...
28 Oct 2021 by User 15226833
Hi everyone. My question is same title. Yes problem when compile. Please help me. This is a code of my program (in CPP): // Written by UKI COMPUTERS (ukicomputers.github.io - github.com/ukicomputers) // Based on (C) UKI COMPUTERS Self-Protecting...
2 Oct 2023 by honey the codewitch
I can't seem to find this answer anywhere. I have several libraries that are header-only due to being templatized. What I'd like is to provide a CMakeLists.txt under each of them that exports their include folder as an include location, if that...
2 Oct 2023 by honey the codewitch
Declare using INTERFACE add_library(htcw_bits INTERFACE) target_include_directories(htcw_bits INTERFACE "${PROJECT_SOURCE_DIR}/include" "${PROJECT_BINARY_DIR}" )
21 Feb 2021 by User 14731409
While following this article https://medium.com/@ivan.mejia/modern-c-micro-service-implementation-rest-api-b499ffeaf898[^] I tried to clone and build the rest sdk for linux from GitHub - ivanmejiarocha/micro-service: sample micro-service in...
10 Apr 2017 by Marius Bancila
This article provides an introduction to CMake through a series of examples to help you, as VC++ developers, to create and maintain CMake projects.
18 Jul 2016 by Sébastien Jodogne
This article explains how to create a basic WADO server to provide Web access to DICOM images. The WADO server is implemented as a plugin for Orthanc, a lightweight DICOM store.
7 Jul 2022 by Greg Utas
Analogous functions, subtle differences, multiple compilers...
8 Nov 2015 by Michael Pan
Presenting techniques for effective usage of Google unit test frameworks in embedded environment.
14 Jun 2017 by Vhalun
A step-by-step tutorial about how to build a Qt/C++ project on Android
20 Apr 2020 by Iqra Ali
This article gives a practical overview of using GitHub Actions to automate a CI pipeline to build C++ project which is configured using CMake.
13 Aug 2023 by OriginalGriff
We can't help you - we have no access to your systems, or any clue what is happening at the Unity end. Try here: Unity Customer Service: Technical Support & Training | Unity[^]
27 Apr 2015 by Kornfeld Eliyahu Peter
When you are using predefined macros like __FILE__ the compiler (at the pre-processing stage) puts the evaluated value of the macro in the binary created. For __FILE__ that value is the full path to the file as loaded by the pre-processor...If you do not want to see it don't use it or use it...
31 Aug 2017 by Jochen Arndt
There is no ready-to-use conversion. But before trying to compile you should check if the source can be build for Windows. That should be stated somewhere in the documentation. If it is a rather simple project, just create a new console or DLL project (depends on the type of the source), add...
18 Oct 2021 by OriginalGriff
Read the error message: Quote: master/src/rp2_common/pico_standard_link/crt0.S.obj: in function `__get_current_exception': (.reset+0x9c): undefined reference to `main' You application does not contain an entry point, and cannot be built into an...
13 Aug 2023 by Mus_ 90YT
So when trying to install one version of unity in unity hub, the last 2 files are bugged; -Android NDK: Freezed at 22% -CMake: Download failed: Validation Failed Even tho I've restarted the failed downloads nothing has changed. I'm scared...
27 Apr 2015 by babbbam
Hi,I have a c++ program that compiles to a dll.When i open the dll in a text editor i noticed that in some part of the dll i can actually see a full path to the source files i.e c:\myproject\myfile.hI have noticed that this happens when i use macro in my code with __FILE__ and when...
22 Jul 2015 by mayooran99
I have a C++ logic which I'm calling from Python. I have created a setup.py using distutils to build and install. The C++ logic has a cmake file. To build the C++ this cmake file needs to be incorporated into the setup.py file. How can I do this? Below is my cmake file for the C++...
29 Jul 2021 by Member 11246616
I run Cmake for install opencv for windows 10 but there is an error CMake Error at CMakeLists.txt:107 (enable_language): Generator CMake Error at CMakeLists.txt:107 (enable_language): Generato Visual Studio 17 2022 could not find any...
28 Oct 2021 by User 15226833
In this line: #include "keypad/pico_keypad4x4.h" Replace with this: #include "keypad/pico_keypad4x4.c" Beacuse, this library HAS NOT GOT a main function (.h file C++ in this thing calculate as program).
28 Feb 2023 by Richard MacCutchan
Take a look at cmake(1) — CMake 3.26.0-rc4 Documentation[^] for guidance on creating your make file.