Most voted "cmake" questions
Cmake is a cross-platform system for automated generation. It is comparable to the Unix Make program in which the generation process is ultimately controlled by the configuration files, in the case of Cmake called Cmakelists.txt files. If the question is not about Cmake, do not use this tag, even if you are using Cmake in your project.
Learn more…26 questions
Sort by count of
-
12
votes0
answers192
viewsHow to write programs that support internationalization using cmake?
I am writing a small software in c++ and I would like to be able to translate it into other languages. Looking quickly over the internet the most accepted tool in linux environments is the GNU…
-
9
votes0
answers94
viewsHow to use the AWS SDK C++ Xray in a "Layer" implemented in C++ of a Lambda AWS in Python?
My team implemented a Pipeline using Computer Vision (Opencv) and a DNN (Neural Network) in Tensorflow and Keras using C++. This Pipeline is an AWS "Layer" used by a Lambda Function implemented in…
-
4
votes1
answer91
viewsfind_package failed to generate project (in Qt) with Cmake
I’m trying to generate the build configuration of a simple Qt example using Cmake. The code of the example is this: #include <QApplication> #include <QTextEdit> int main(int argc, char**…
-
3
votes1
answer49
viewsDebug vs Release in Cmake
How to specify the flags for debug release vs C/C++.
-
3
votes1
answer538
viewsQt5widgets.dll error when it is installed to another computer
I’m trying to export an application built in Qt 5.7.0 (compiled to 32 bits, although development takes place in a Windows 10 environment, 64 bits) to another computer (this one with Windows 8.1, 32…
-
2
votes1
answer202
views -
2
votes1
answer55
viewsMultiple Cmake in one project
I am developing an application in C++, where I need to use a library I have developed before with Cmake. But I don’t want to call the binary directly because each platform will have to have a binary…
-
2
votes1
answer200
views -
1
votes2
answers61
viewsHow to print build and link commands in Cmake?
I have a project that uses the Cmake and would like to print the build commands generated by it. How to do this?
-
1
votes0
answers23
viewscmake source_group has no effect
I’m trying to organize the project generated in visual studio, for this I’m using the function source_group to add the directories I want, only it doesn’t seem to take effect: set(CPP_FILES_REGEX…
-
1
votes2
answers700
viewsFailed to execute "cmake." command at the prompt
I’m studying object detection with Python and Dlib and for that I need to compile the imglab folder inside the directory: "dlib-19.17 tools imglab" from the dlib-19.7 file I downloaded from the…
-
1
votes1
answer44
viewsLinphone build error in . /prepare.py
I downloaded the linphone project from git, installed all the necessary dependencies and set everything up right ( I believe ) but when executing the command ./prepare.py the same closes in the…
-
1
votes2
answers268
viewsError when compiling Cmake project
I have the following problem when trying to build a project using Cmake: -- The C compiler identification is unknown -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:2…
-
1
votes1
answer77
viewsProject shared with Cmake
I have a project with the following extrusion: Projeto A: | CMakeLists.txt | main.cpp | #include "ProjetoB/ClassB.cpp" | #include "ProjetoC/ClassC.cpp" | vendor/ | Projeto B: | CMakeLists.txt |…
-
1
votes0
answers41
viewsLinkage problem "Undefined Reference"
I’m trying to compile a dynamic library that uses a static library. I’m using cmake and the problem I’m having are linkage errors, where static library methods are giving error "Undefined…
-
0
votes1
answer79
viewsCmake Makefiles generator problem
Good ones I’m following this tutorial on how to install Allegro 5 with MSYS2. But I have a problem. At the moment I will run the command cmake \ -G"MSYS Makefiles" \…
-
0
votes1
answer39
viewsError compiling Caffe/Pycaffe
I’m trying to compile Caffe on an Ubuntu 14.04, but I keep getting the following error: /usr/bin/ld: cannot find -lboost_python-py35 /usr/bin/ld: cannot find -lpython3.5m collect2: error: ld…
-
0
votes1
answer182
viewsCodeblocks compile error - Libboost
I am compiling here in Codeblocks, already a week that I am trying to compile, but always some error, and now that is at the end of the compilation is giving some errors and I am not able to solve…
-
0
votes1
answer95
viewsLibraries in Cmake as a project submodule
I am developing a C++ project where I make use of some libraries that I produced earlier, the problem that I don’t know how to import them in this new project of mine without putting the full path…
-
0
votes1
answer430
viewsHow to use Cmake to compile a project with multiple libraries
I’m trying to develop a game in OpenGL, but the IDE I use makes use of the CMake and I’m not getting to set up the project. I’m totally lost. I searched several tutorials of Cmake on the internet,…
-
0
votes1
answer174
viewsHow to run cmake using MSYS2 without having to configure environment variable on Windows
I’m trying to use cmake to compile a project written in C++, the project builds smoothly if I use an IDE (tested in Qt Creator and Clion), but need to compile by command line, as I’m setting up the…
-
0
votes2
answers67
viewsCmake accuses multiple statements of a class
Structure of the "project": ->shop ---->cpp store. ---->shop. h ---->main.cpp ---->Cmakelists.txt When I try to compile Vscode accuses that there are multiple denifications of class…
-
0
votes1
answer40
viewsHow to load all . lib in a directory through Cmake?
I have in my CMakeLists.txt several calls to the add_library where these call libraries(.lib) are located in the same directory. I would like to import all libs from that directory /lib without…
-
0
votes1
answer32
views -
0
votes0
answers7
viewsError loading audio to SFML
My IDE is Clion when I try to open an audio file that way: Music menuMusic; if (!menuMusic.openFromFile("menu.wav")) return EXIT_FAILURE; It provides the this error: Failed to open sound file…
-
0
votes1
answer54
viewsHow to compile C programs in Visual Studio 2019 without opening a project or solution?
I’m new to programming and I’m trying to use Visual Studio 2019 to write C codes. But for that I need to create a project/solution within the IDE, Something that does not suit me because I am at all…