Questions tagged [cmake]

Questions specific for CMake build tool.

Filter by
Sorted by
Tagged with
1 vote
1 answer
91 views

building Debian package from Buster fails on Bookworm

I need to use older version of linphone on Debian 12. The version in bookworm is 4.4.10-3, and I actually need 3.12.0, which is available in Buster. On my bookworm build machine, I changed the sources,...
Martin Vegter's user avatar
0 votes
1 answer
52 views

How can I fix CMake installation?

I have CMake 3.16 on my remote machine which runs Ubuntu 20. However, I am unable to use it from command line: user_name@192:~$ sudo apt install cmake [sudo] password for user_name: Reading package ...
user366312's user avatar
0 votes
0 answers
70 views

When using CMake and g++, the compiler output does not have any coloring or formatting

I'm using Fedora 38 (KDE, wayland), g++ 13.1.1, CMake 3.26.4, and GNU Make 4.4. My problem is as follows: When running g++ directly, the output (e.g. errors, warnings, ...) is nicely formatted, using ...
RL-S's user avatar
  • 131
0 votes
0 answers
27 views

cmake: Why is CMAKE_SIZEOF_VOID_P empty on Apple Silicon macOS?

A promise of cmake is its cross-platform compatibility. So why does the following code does not print any value for CMAKE_SIZEOF_VOID_P on Apple Silicon macOS? File sizeofvoid.cmake: ...
codepoet's user avatar
  • 566
0 votes
1 answer
56 views

Convention to install files to /etc/ as non-root?

This question possibly has relevance in both Unix & Linux and Stack Overflow; I'm posting at Unix & Linux first, because I think I'd like to understand the issue from the perspective of Unix/...
StoneThrow's user avatar
  • 1,585
0 votes
1 answer
1k views

Cmake complaining about a required package was not found

I'm building a little flutter application to reproduce sound. So, I'm using this package that has linux support: https://github.com/bluefireteam/audioplayers Everything compiled ok before adding this ...
Notbad's user avatar
  • 105
0 votes
0 answers
30 views

Unable to run cmake with headers!

I am trying to follow the first step from this tutorial: Tutorial STEP1 I am having an issue with the third exercise there. We need to create a .h file in the build directory, but the .cxx "c++&...
A J's user avatar
  • 11
0 votes
1 answer
41 views

Cmake on Linux Lite 3.6

I am trying to build "Transmission" on my machine with Linux Lite v3.6, but cmake is needed. Successfully installed it with sudo apt install cmake, but it installed only cmake 3.5.1. And ...
Peter's user avatar
  • 5
0 votes
0 answers
184 views

How to install cmake on Astra Linux 4.7?

How to install cmake (also pbuilder, cowbuilder) on Astra Linux ? Details here: user@baikal:~$ apt policy cmake N: Unable to locate package cmake user@baikal:~$ sudo astra-ce status [sudo] password ...
Ekaterina Ivanova iceja.net's user avatar
0 votes
1 answer
75 views

How to install ttyd from source on Fedora?

I'm trying to compile ttyd that requires libwebsockets on Fedora. My system has an outdated version of ttyd and I need a newer one to run vhs tool. Both projects use CMake, I was able to compile and ...
jcubic's user avatar
  • 9,662
1 vote
1 answer
55 views

How to use Imlib2 in a Cmake project?

I have a Cmake project on arch linux and I need to use Imlib2. However, the cmake cannot find the package (see attached screenshot). Usually, this is resolved by installing the dev version of the ...
Eshy's user avatar
  • 165
0 votes
0 answers
346 views

What does `file INSTALL cannot copy file <file-in> to <file-out>: Success.` mean`

Sometimes when I install source packages to a directory shared between users, I get this funny message: $ make install Consolidate compiler generated dependencies of target sick-lms5xx [100%] Built ...
oarfish's user avatar
  • 384
0 votes
2 answers
120 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 ...
shirish's user avatar
  • 12k
0 votes
1 answer
216 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) [...
amordo's user avatar
  • 103
2 votes
1 answer
1k 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 ...
shyney's user avatar
  • 83
1 vote
0 answers
197 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: ...
Super User's user avatar
1 vote
1 answer
241 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; ...
Eric Sokolowsky's user avatar
0 votes
0 answers
1k 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/...
tabish's user avatar
  • 478
0 votes
1 answer
363 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 ...
pbhj's user avatar
  • 403
0 votes
0 answers
2k 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): ...
mYnDstrEAm's user avatar
  • 4,068
0 votes
1 answer
2k 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 -...
Sap BH's user avatar
  • 45
2 votes
2 answers
793 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-...
Luka Ivanić's user avatar
0 votes
1 answer
315 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 ...
TheEagle's user avatar
1 vote
1 answer
4k 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....
datahaki's user avatar
  • 113
0 votes
1 answer
130 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/...
megamence's user avatar
  • 103
0 votes
0 answers
456 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 ...
Vedant Nandwana's user avatar
0 votes
0 answers
1k 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 ...
zivo's user avatar
  • 1
0 votes
1 answer
1k 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 ...
stew's user avatar
  • 1
1 vote
1 answer
472 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 '...
Minh Nhật's user avatar
1 vote
1 answer
817 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 ...
ap84's user avatar
  • 13
0 votes
1 answer
280 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 ...
De Funct's user avatar
  • 105
0 votes
1 answer
686 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-...
mlodybukk's user avatar
3 votes
2 answers
1k 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 ...
DLCom's user avatar
  • 155
2 votes
1 answer
2k 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 ...
Parsa Mousavi's user avatar
0 votes
0 answers
323 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 ...
amy's user avatar
  • 3
0 votes
1 answer
1k 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 ...
mtpumpkin's user avatar
1 vote
1 answer
41k 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) : $...
user411453's user avatar
1 vote
1 answer
466 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 ...
einpoklum's user avatar
  • 8,852
28 votes
4 answers
134k views

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 ...
alec's user avatar
  • 1,548
3 votes
1 answer
5k 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 ...
shirish's user avatar
  • 12k
1 vote
1 answer
317 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 ...
Parsa Mousavi's user avatar
0 votes
0 answers
4k 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/...
Adam Glick's user avatar
0 votes
1 answer
392 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 ...
Minsky's user avatar
  • 164
2 votes
1 answer
2k 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 ...
nik's user avatar
  • 41
1 vote
2 answers
4k 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 ...
Buoy's user avatar
  • 111
0 votes
1 answer
3k 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....
Minding's user avatar
  • 103
2 votes
1 answer
1k 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 ...
avisitoritseems's user avatar
0 votes
1 answer
427 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 ...
OtagoHarbour's user avatar
0 votes
0 answers
667 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 ...
Jeremiah Perdue's user avatar
2 votes
0 answers
3k 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 ...
Johnny Tam's user avatar