Questions tagged [cmake]

Questions specific for CMake build tool.

Filter by
Sorted by
Tagged with
0 votes
0 answers
46 views

using cmake to install esmini fails because of undefined reference to pthread_yield

I have spent the last 5h searching the web to find a solution for my problem. I want to install esmini from github and followed the user guide (installed all dependencies). When it comes to the ...
0 votes
2 answers
32 views

How do I enable cmake give me the compilation output one screenful at a time instead of just giving me the dump at end

I am running cmake version 3.23.2 on Debian teseting. If I put - $cmake . It would generate the output but that's too fast for me to read. If I do something like - cmake . > cmake-build.txt that ...
  • 11.2k
0 votes
1 answer
29 views

What option provide to CMake to demangle stackframe output?

To print the stackframe this method is used. But it prints mostly executable name with addresses. 0 ./fish(+0xa307b) [0x556c9198c07b] 1 ./fish(+0xb0cf2) [0x556c91999cf2] 2 ./fish(+0xb218a) [...
  • 103
0 votes
0 answers
41 views

/usr/bin/ld: cannot find -lpython3.9d

I have this error on ubuntu 20.04 while running cmake then make [100%] Linking CXX executable /home/hilti/tmp/DearPyGuiDearSandbox/DearSandbox /usr/bin/ld: cannot find -lpython3.9d collect2: error: ld ...
  • 1
2 votes
1 answer
443 views

binaries not executable by user (Permission denied) after cmake install / make install to /usr/local/bin

After I install any project on my Debian (Buster) machine with sudo cmake install or sudo make install command, the binary gets placed inside /usr/local/bin but although the PATH variable is set ...
  • 83
1 vote
0 answers
60 views

Permission denied error when using make all-recursive?

I am using autotools and GNU make to build a C library, there is a line all: config.h $(MAKE) $(AM_MAKEFLAGS) all-recursive In the Makefile, and I get an error compiling make all-recursive make: ...
1 vote
1 answer
67 views

Modifying compiler options when building RPMS that use cmake

I'm building a package on Rocky 8 that works fine on Fedora 35. When I tried to compile it on Rocky 8 using rpmbuild -ba, I got the error: relocation xxxxx can not be used when making a shared object; ...
0 votes
0 answers
24 views

Need Help with Gene Sequencer Install

ok so i might be overlooking something simple but... i'm installing iontorrent from source via github using docker on a fresh ubuntu 18.04 bionic beaver install(w/xubuntu desktop as per request) ...
0 votes
0 answers
84 views

CMake, specify (or ensure) compilation order

I am migrating a library from one platform to another, so there are tons of problems in each and every source file. The problem I have is that make compiles all these files in some random order, and ...
  • 2,285
0 votes
0 answers
390 views

cmake unable to find CC

I am newbie in Linux, I am using WSL ubuntu 20.04. I am trying to build a project using cmake file. I am getting following error:- CMake Error at /usr/local/share/cmake-3.20/Modules/...
  • 468
0 votes
1 answer
136 views

Using checkinstall in place of sudo cmake?

I've been trying to compile digikam and as part of that process needed to compile jasper. Jasper developers use cmake, I wanted to make a .deb package -- in fact was trying to learn how to make a ...
  • 353
0 votes
0 answers
752 views

CMake error "Could not find a package configuration file provided by "Qt5QuickControls2""

I'm trying to build the vvave music player on Debian11/KDE but running cmake .. fails - it shows this error: -- The CXX compiler identification is unknown CMake Error at CMakeLists.txt:23 (project): ...
  • 3,440
0 votes
0 answers
33 views

Linux gcc make creates randomly unreadable folders

Recently i get some strange problems on compiling cmake linux project. The compiler creates folders at the CMakeFiles folder. But, some of those are created in write only mode "--w-------". ...
  • 11
0 votes
1 answer
686 views

Add multiple options in cmake flag in a shell script and run the shell script

I want to run a set of commands from a bash script. How ever I don't know how to put the quotation in a bash script. The following is the bash script which I want to run, how ever in the cmake -...
  • 35
2 votes
2 answers
587 views

Boost continually fails to download while using cmake for ethminer

I've been stuck with this since this morning. Basically I ran into an issue with this cmake .. -DETHASHCUDA=ON -DETHASHCL=OFF command while following this https://medium.com/coinmonks/eth-x-nvidia-x-...
0 votes
1 answer
135 views

Weird linking issue with libldap using cmake

I am trying to build SimGear from the FlightGear project using the download_an_compile.sh script (which uses CMake to build the binaries). The build went fine so far, but when the script tried linking ...
0 votes
1 answer
2k views

Installation of libglib2.0-dev on Fedora

Recently, I switched from Ubuntu to Fedora. Now, I would like to run the Fedora equivalent to the Ubuntu command sudo apt-get install libglib2.0-dev Because when I cmake a project (in particular lcm 1....
  • 103
0 votes
1 answer
62 views

What is the reason for error in CMake?

I am running the following script to change the name by which I call my GROMACS command from gmx to gmx_196g. The script employs CMake: cd gromacs-2019.6/build_stage3/ suffix=196g install_path=/home/...
  • 103
0 votes
0 answers
307 views

How to install vala app menu on fedora?

I browsed very much on internet and I followed This website . And I got errors and warnings . CMake Warning: No source or binary directory provided. Both will be assumed to be the same as the ...
0 votes
0 answers
550 views

"make" not looking for files in /usr/local/

I'm trying to build a package from source (ROCm) (Distro:Solus): libnuma isn't available so I had to build it from source. And once I installed it, even though the files are in /usr/local, make still ...
  • 1
0 votes
1 answer
655 views

colcon can not find my package

I have been writing some ROS2 code in C++ using colcon on Ubuntu 20.04, all has been working fine, up until now. colcon all of a sudden started complaining that it couldn't find my packages. When I ...
  • 1
0 votes
1 answer
266 views

Error #2 when trying to install ECM (Extra Cmake Modules)

I am trying to install extra-cmake-modules from source, and then I get an error after executing make command: Extension error: Could not import extension ecm (exception: No module named '...
0 votes
1 answer
539 views

C++ linking error: 'libcairo.so: undefined reference to FT_Get_Var_Blend_Coordinates'

I'm trying to build a C++ project via CLion and have been unable to get past this error in the linking process: /lib/../lib64/libcairo.so: undefined reference to `FT_Get_Var_Blend_Coordinates' I'm ...
  • 3
0 votes
1 answer
216 views

cmake and Installing opencv 4.x on Linux Debian 10 with Kernel 4.19.x

I am finding this info. online for building OpenCV 4.x on their homepage. I have not found a way to compile the samples or examples. Is it possible with cmake to install examples from the OpenCV 4.x ...
  • 103
0 votes
1 answer
613 views

Error while building OBS from source code | CentOS 8

I've a problem with OBS source code, because it isn't detecting ffmpeg who's installed on my computer. [mlodybukk@localhost build]$ cmake -DUNIX_STRUCTURE=0 -DCMAKE_INSTALL_PREFIX="${HOME}/obs-...
3 votes
2 answers
704 views

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 ...
  • 155
1 vote
1 answer
1k views

Installing KDE4 development files in 2020

I want to compile the Oxygen-transparent project which requires KDE4. I've tried building and installing the KDELibs 4 Support package , but still there's no kde4-config in my system. Here's the ...
0 votes
0 answers
123 views

Undefined reference to SDL functions in c for Conways Game of Life

I'm writing GameOfLife game in c with SDL2 but while compiling the files with CMake, it appears as an undefined reference to SDL functions: What can be the problem and how can I fix it? my ...
  • 3
0 votes
1 answer
726 views

Gmake on FreeBSD: exec: “clang”: executable file not found in $PATH [closed]

I'm trying to install Filebeat (elasticsearch log shipping) on PfSense 2.4.5. I follow the instruction from: https://blog.securitybits.io/2019/12/beats-7.5.0-on-pfsense-2.4.4/ At the make step, I got ...
1 vote
1 answer
17k views

makefile error "No rule to make target" how to solve it?

what's wrong with my makefile? CC = gcc OBJS = main.o map.o extended_map.o election.o utilities.o EXEC = election DEBUG_FLAG = -DNDEBUG COMP_FLAG = -std=c99 -Wall -pedantic-errors -Werror $(EXEC) : $...
1 vote
1 answer
356 views

How friendly is checkinstall with CMake rather than autotools?

It's been recommended to me to use the checkinstall mechanism to install artifacts I build from source. But - the example involves GNU autotools (./configure) while I use CMake. How "friendly" is ...
  • 7,703
15 votes
2 answers
86k views

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

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 CMakeLists.txt:3 (...
  • 1,078
3 votes
1 answer
3k views

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 ...
  • 11.2k
1 vote
1 answer
228 views

KF5 Init package in Kubuntu

I'm trying to install Konsole from source but after running 'CMake' I got the following error : Could NOT find KF5Init (missing: KF5Init_DIR) Could NOT find KF5Init: found neither KF5InitConfig.cmake ...
0 votes
0 answers
3k views

CMAKE missing: X11_EXECUTABLE)

I'm trying to compile a program using CMAKE, but it requires X11 to be installed. I have X11 installed on my system. When I run apt-file find x11.so I get the output: aeolus: /usr/lib/aeolus/...
0 votes
1 answer
335 views

some troubles on installing deja-dup from source code

(Learning how to install programs on linux...) deja-dup source code can be downloaded on its GitHub repo. There is a makefile con the package. Once into the folder I run: santi@eoan:~/deja-dup$ make ...
  • 164
2 votes
1 answer
1k views

How to check if my ARM64 board supports 32 bit binary compilation? (error: unrecognized command line option ‘-m32’)

I have a ARM virtual machine on AWS with Ubuntu18.04 installed. dpkg & uname commands show this, $ dpkg --print-architecture arm64 $ uname -m aarch64 I've got a third-party precompiled static ...
  • 41
1 vote
2 answers
3k views

Passing options to cmake in bash script

I am trying to write a script that will build multiple cppUtes lib.a files for different sanitizers with a bash script. When trying to pass the compiler flags as variables to cmake I am unable to ...
0 votes
1 answer
2k views

Ubuntu sys/byteorder.h & sys/endian.h missing, while building MySQL Connector/C++

Bear in mind that I'm a beginner when it comes to building from source (tried a few times, almost always failed). I'm trying to build the MySQL Connector/C++ 8 for my Raspberry Pi 3b running Ubuntu 19....
  • 103
1 vote
1 answer
728 views

Is it possible to make -jN dynamic based on CPU load?

For example, would it not be beneficial to have -jN > nrcpus during the configure phase, where CPU load is low? Then have -jN = nrcpus during compilation, where load should be evenly distributed to ...
0 votes
1 answer
344 views

Installing gdcm on CentOS

I am using CentOS 7. I went to the gdcm source page and the only Linux distros that it had a link for were Debian and Ubuntu. I downloaded, and unzipped, GDCM-$VERSION-Linux.tar.gz. I then read ...
0 votes
0 answers
615 views

Why is this make not working?

I am attempting to install CERN's root software and I am on the final step of installation. The steps im taking are these. 1) Get the sources of the latest ROOT (see above) 2) Type the build ...
2 votes
0 answers
2k views

CMake Error: The source directory does not appear to contain CMakeLists.txt

I have found similar discussions from google but didn't work for me. I want to use a bioinformatics package called pompd. At the first use, the program will automatically compile another application ...
1 vote
0 answers
237 views

Native binary libraries containing duplicate composite symbols error

I am compiling a C/C++ library from source using GCC. The bulk of code was written for Unix with an emphasis for Linux kernels. I've been trying to adapt it for AIX. The majority of the changes I have ...
1 vote
0 answers
208 views

CMake failed to detect installed OpenSSL which was compiled from source

I am trying to compile Hadoop 3.2.0 from source on AIX 7.1 as the pre-built 32-bit binary is incompatible with the 64-bit machine we are using. The OpenSSL is built from source so I have both the ...
0 votes
1 answer
1k views

What CMake version can I rely on in current popular Linux distributions? [closed]

Suppose I'm writing a CMakeLists.txt file for a project of mine. I would like to use some newer CMake features... but I don't want to end up requiring a CMake version that's not present in many users' ...
  • 7,703
0 votes
0 answers
643 views

CMake + Ninja : argument list too long

On Kubuntu 18.04 with CMake 3.10.2, Ninja 1.9.0 (from git) and gcc 9.1.0 I've got error fatal: posix_spawn: Argument list too long while compilation of my project. Google say that this problem was ...
1 vote
1 answer
2k views

Packaging CMake components for Debian

I have a single upstream source package using cmake and I'd like to package it as two binary debian packages. $ tree proj proj/ ├── app1.c ├── app2.c └── CMakeLists.txt Upstream's CMakeLists.txt was ...
  • 9,856
5 votes
3 answers
1k views

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 ...
's user avatar
0 votes
1 answer
132 views

I'm trying to run build compton-conf but it's telling me "no targets specified and no makefile found. stop."

I'm trying to build compton-conf, but I keep getting that in the title. I'm running Arch Linux. I'm new to Linux but I build a couple programs before I didn't get any errors. ls into the directory ...