Questions tagged [cmake]

Questions specific for CMake build tool.

CMake is an open-source, cross-platform family of tools designed to build, test and package software. CMake is used to control the software compilation process using simple platform and compiler independent configuration files, and generate native makefiles and workspaces that can be used in the compiler environment of your choice.

137 questions
27
votes
4 answers

Why is there `No CMAKE_CXX_COMPILER could be found.` and how to solve?

I just installed cmake but I'm getting compiler not found error. In trying to build https://gitlab.com/interception/linux/tools on a new Kubuntu installation, running cmake .. from the tools/build directory returns the error: CMake Error at…
alec
  • 1,508
  • 3
  • 15
  • 26
26
votes
4 answers

How to compile without optimizations -O0 using CMake

I am using Scientific Linux (SL). I am trying to compile a project that uses a bunch of C++ (.cpp) files. In the directory user/project/Build, I enter make to compile and link all the .cpp files. I then have to go to user/run/ and then type…
user4352158
  • 431
  • 2
  • 6
  • 9
12
votes
3 answers

How do I set a cmake policy?

I'm trying to compile the Paraview graphical visualization software for my ARM-based laptop; however, I am getting a few configuration warnings that seem to relate to cmake 'policies'. The warning text and the cmake man page suggest that I should be…
Time4Tea
  • 2,288
  • 5
  • 23
  • 54
12
votes
2 answers

cmake error: could NOT find LibLZMA (missing: LIBLZMA_INCLUDE_DIR

I am trying to install this software called acqu-root. It depends on the main software called root. I managed to install the main software but having problems with the acqu-root. I get the following error. [kabi@localhost build]$ cmake .. -- ***…
S L
  • 273
  • 1
  • 4
  • 10
6
votes
2 answers

What is the Linux equivalent of Inno Setup on Windows?

Looking to create a Linux installer that will work similar to Inno Setup on Windows (which is a great little tool to create installers on Windows). My project is really simple (just a couple of folders) so I think that using autotools or cmake is…
5
votes
0 answers

CMake Error: The current directory is different than

I'm trying to compile the source code for Shrewsoft VPN. The instructions say to compile the source on step 4. However... I get this error: user@ubuntu:~/Ubuntu One/Programs/ShrewSoft VPN$ sudo cmake –DQTGUI=YES –DETCDIR=/etc –DNATT=YES CMake…
Ben
  • 151
  • 1
  • 2
  • 5
5
votes
3 answers

Compile program in GNU GuixSD with cmake

I am trying to compile Xash3D on GuixSD v1.0.0 and gcc 8.3.0. As is shown below, ld (GNU Linker) is giving me errors, that ctr1.o and ctri.o are missing. These files exist elsewhere under multiple directories, within…
user77647
5
votes
1 answer

ld cannot find -lgfortran

I'm trying to compile Knut (a maths program) on Arch Linux with CMake and I'm getting the following error: /usr/bin/ld: cannot find -lgfortran /usr/bin/ld: cannot find -lquadmath collect2: error: ld returned 1 exit status make[2]: ***…
itsok-dontworry
  • 233
  • 2
  • 8
5
votes
1 answer

how to specify the libstdc++.so.6 to use

I am trying to compile a program of mine, that needs C++11 features and a newer version of boost than is installed on the target machine. I therefore compiled and installed gcc 4.9 to some local directory (/secured/local) with an in-tree build of…
janoliver
  • 1,776
  • 2
  • 19
  • 34
4
votes
1 answer

Cross-compiling and CMake

I am trying to cross-compile CGAL on an amd64 Linux machine to the ARM architecture. CGAL uses CMake for building. CGAL has several dependencies, including GMP and MPFR libraries. When CMake runs, it needs to determine the versions of these…
Philip
  • 283
  • 2
  • 9
4
votes
0 answers

How to Run ld in Script with A Smaller Memory Footprint?

I'm trying to build Swift 3 on FreeBSD. The last thing I need to do is run the build-script. My problem is that at some point the script runs: Linking CXX executable bin/llvm-lto Which consistently kills my system by using all of its 16GB memory…
Brandon Bradley
  • 339
  • 3
  • 9
4
votes
2 answers

Building error - how to fix missing header file

I'm trying to build cuneiform from source with imageMagick support, but it looks like the debian package missing a header file. When I'm running make it fails at the very end of the process: [100%] Building CXX object…
Gergely Lukacsy
  • 155
  • 1
  • 7
4
votes
1 answer

Why when loading an SO file does it append a version to the end?

I use CMake and Ninja to build a test executable of mine written in C++. I use gcc 4.8. I'm on Ubuntu 14. I run CMake to configure the ninja build scripts, then I run ninja to build. I specify the libcrypto.so and other openssl *.so files as target…
void.pointer
  • 325
  • 4
  • 17
3
votes
2 answers

Is there a way to make vim run the "make" command in another terminal window?

I mainly use vim as an editor for C/C++ programming. Unfortunately, I'm not quite satisfied with the way my build process works. I know that it's possible to type in (or map to a key) :make to run the make process. I dislike the way this command…
DLCom
  • 155
  • 4
3
votes
1 answer

Is there a way to make cmakelists.txt more verbose for compilation

Many a times while compiling some binary or library, I feel a need to have much verbose output of the build/compilation. Is there a flag or something I can write in the cmakelists.txt so I get much more verbose output. FWIW, I'm using cmake 3.16.3…
shirish
  • 11,967
  • 27
  • 107
  • 190
1
2 3
9 10