Questions tagged [cmake-gui]

cmake-gui is CMake's bundled GUI wrapper for its command line interface. One can use this program for configure a CMake project and edit settings of such configuration. Use this tag for questions specifically about usage of the cmake-gui program.

From the reference documentation:

The cmake-gui executable is the CMake GUI. Project configuration settings may be specified interactively. Brief instructions are provided at the bottom of the window when the program is running.

Use this tag for questions specifically about usage of the cmake-gui program and not for questions about usage of CMake in general.

261 questions
1
vote
1 answer

Compile time error on building OBS-Studio on Windows 10

I am trying to build obs-studio by following official steps at https://github.com/obsproject/obs-studio/wiki/Install-Instructions#windows-build-directions I used cmake GUI to generate Visual Studio project. When I tried to build project in Visual…
Alok
  • 7,734
  • 8
  • 55
  • 100
1
vote
1 answer

How to force CMake to use a special version of Protobuf installed on system?

I want to set Protobuf_INCLUDE_DIRS to a directory of my choosing, however, I am not sure how to do that. $ locate FindProtobuf.cmake /usr/share/cmake-3.16/Modules/FindProtobuf.cmake I can see that in FindProtobuf.cmake, we have…
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
1
vote
1 answer

Unable to run a program in Visual studio 2019, Selecting Local Windows Debugger gives me error Access denied

Currently, I am working on cloning the Cilantro github repository. I did using Cmake and also downloaded the required dependencies. The issue is I cannot run any files inside the project as well as newly created .cpp files for testing. When I build…
1
vote
1 answer

Constraining Values with ComboBoxes in CMake (cmake-gui)

I encountered CMake project where cache entry in cmake-gui was presented as combobox. But I can't find this project. How to add cache entry to CMakeLists.txt with values constrained with combobox?
stnk
  • 13
  • 4
1
vote
1 answer

How to build OpenCV with Debug flags

I am currently trying to debug a chessboard corner detection algorithm in OpenCV. To do so, I have uncommented the #define DEBUG_CHESSBOARD line in the source code…
1
vote
0 answers

OpenCV Initializing Camera: Unknown query to pre-built opencv files

I downloaded the OpenCV repository from github and used CMake (GUI) and Visual Studio to build it. When I run the generic code example (C++) for opening the camera, when calling cap.open(0,0), I get the below message in the command prompt. Does…
Johnny M
  • 11
  • 1
1
vote
0 answers

I am unable to build using cmake error 1083

I've tried to search this problem and can't see any exactly related to my issue using windows 10 64bit and when I configure/generate in cmake for build azerothcore I get only one following…
Ddraig
  • 11
  • 2
1
vote
1 answer

How to link SDL2 manually in CMake

Recently I have started to learn CMake. To practice, I am trying to link SDL2 manually. I know that there is another way around using find_file which is easy. But I want to do it myself for practice. I get an error when I try to link the…
Vignesh
  • 13
  • 8
1
vote
1 answer

CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message)

I am trying to use cmake to compile darknet for YOLO V3. But I'm getting following error: CMake Error at C:/Program Files/CMake/share/cmake-3.16/Modules/FindPackageHandleStandardArgs.cmake:146 (message): Could NOT find PThreads_windows…
Rukan Mahfuz
  • 87
  • 3
  • 6
1
vote
0 answers

Extract CMake commandline from cmake-gui output

I am using a thirdparty library that is using CMake. This library is highly configurable. For the projects I am using this library I tend to create a specific configuration of this library (its an embedded use-case). Being lazy I use the cmake-gui…
Frank Meerkötter
  • 2,778
  • 2
  • 20
  • 26
1
vote
1 answer

Dependent options caching in cmake via ccmake

Im working on a project with multiple OPTION commands in the cmake hierarchy. If one option is enabled (OPTION_A=ON), than other options (OPTION_B) are added via newly included subdirectory into the cmake cache: CMakeLists.txt: OPTION(OPTION_A "Do…
Roy Nadler
  • 45
  • 7
1
vote
0 answers

CMake (cmake-gui) silently crashes on Windows 10

After months of working correctly I've found that running CMake in GUI form on Windows 10 suddenly began silently crashing on every launch. It does not appear to be the fault of a recent Windows update given an associate of mine has experienced the…
Sarkis
  • 303
  • 2
  • 12
1
vote
0 answers

Importing Assimp: Assimp.xcodeproj Project Failed Build Error

I am using the CMake gui to import assimp into my openGL project in Xcode. I am following the instructions here: How to import assimp to my my Xcode project? However, my Assimp.xcodeproj does not build. Here is the error message in Xcode: Invalid…
user11546534
1
vote
1 answer

CMake build directory (chosen in gui) variable

While running the cmake's script, I would like to obtain the path to the main build folder, which one chooses, for example in CMake Gui via "Where to build the binaries" text input. Best match that I have found so far is the PROJECT_BINARY_DIR…
GpG
  • 502
  • 5
  • 11
1
vote
0 answers

Differences between CMakeCache.txt and CMakeVars.txt

Context: When I want to build a projet, there are usually CMakeCache.txt and CMakeVars.txt files that are created at a first stage, e.g. using cmake-gui > configure. Questions: What are the differences between these files and what are they used…
swiss_knight
  • 5,787
  • 8
  • 50
  • 92