Skip to main content

Questions tagged [cmake]

Questions specific for CMake build tool.

Filter by
Sorted by
Tagged with
0 votes
1 answer
32 views

CMake against Conda environment

I am trying to build some project (crocoddyl) against the conda environment using CMake. Build command is: cmake -DCMAKE_INSTALL_PREFIX=$CONDA_PREFIX ${CMAKE_ARGS} -S . -B build I have all the ...
m8dotpie's user avatar
0 votes
1 answer
32 views

CMake error: In the make step, compiler is unable to see header file that does exist. Exporting pasth to CPATH doesn't help

On Pop!_OS 22.04 LTS x86_64, I am trying to install libLAS-1.8.1 from source (downloaded as a targz2)(as a dependency of ESRI - 3DForests. I am following the official? tutorial but am stuck. "...
ChiggyClaus's user avatar
3 votes
1 answer
542 views

fatal error: bsd/string.h: No such file or directory

According to the answer I need to include -lbsd to the gcc command. But I have no idea where I am supposed to insert it here. I'm using Ubuntu 24.04, Linux vivobook16-m1605xa-mb089 6.8.0-31-generic #...
chipichippichappachapppa's user avatar
0 votes
2 answers
26 views

Specifying a toplevel installation directory

I am building the lean prover system git clone https://github.com/leanprover/lean4 --recurse-submodules cd lean4 mkdir -p build/release cd build/release cmake ../.. make But rather than using a ...
Vera's user avatar
  • 1
1 vote
1 answer
62 views

How can I find the cmake variable that holds the path to a package

Let's say I used find_package(SDL REQUIRED) now I need to link to this library through target_link_libraries what would be the name of the variable to pass to target_link_libraries? In general is ...
SGriffeth's user avatar
0 votes
1 answer
169 views

CMake build can't find Qt6 library in /usr/local

I have an Orange Pi 5, an arm64 SBC running Joshua Riek's Ubuntu 22.04.4 for RK3588 (link to project). I'm trying to build Duckstation, a PS1 emulator, which depends on Qt 6.6.2. The latest arm64 Qt ...
eeliale's user avatar
  • 11
0 votes
0 answers
24 views

Terminal does not use .bashrc variables, but recognized them [duplicate]

I have installed the latest Pop!_OS version on my new computer and wanted to set the following environment variables: CC=/usr/bin/clang CXX=/usr/bin/clang++ CMAKE_GENERATOR=Ninja Instead of typing ...
mxHuber's user avatar
0 votes
1 answer
111 views

How do I make vcpkg install packages system wide

My system package manager dnf (Im using fedora Linux) doesn't have an imgui package or an assimp package so I decided to use vcpkg for installing imgui and assimp. The problem I think is that ...
SGriffeth's user avatar
0 votes
0 answers
45 views

MariaDB 10.9.* for Fedora 39 - CPack Error

I have updated my linux-server to Fedora 39 and my MariaDB doesn't work now, because old files have been generated for MariaDB 10.9, but after update it auto-install MariaDB 10.5. What I can do in ...
Timofey Stanskov's user avatar
0 votes
1 answer
45 views

Error "undefined reference to" when building package seafile-client on manjaro

My seafile-client on Manjaro stopped working. So, I removed it and tried to reinstall it. However, when I tried to build the seafile-client from AUR, the installation always aborts. The installation ...
YukiJ's user avatar
  • 101
0 votes
1 answer
58 views

What's overriding my .vimrc tabstop size setting for CMake files?

In my ~/.vim/vimrc, I have: set shiftwidth=4 set tabstop=4 and when I edit a plain text file, that is respected. However, when I edit a CMake file - these both becomes 8. I tried looking for the ...
einpoklum's user avatar
  • 9,643
0 votes
0 answers
37 views

Cannot compile critic2 using libxc. cmake says different compiler

$ cmake -DCMAKE_BUILD_TYPE=Release -DLIBXC_DIR=/usr/lib/x86_64-linux-gnu/libxc.so .. -- A library with BLAS API found. -- Could NOT find NUMDIFF (missing: NUMDIFF_EXE) -- Found libxc (lib=/usr/local/...
Kamalesh Roy's user avatar
3 votes
1 answer
58 views

Where should test executables be installed?

I am packaging a component that will also have test executables packaged with it (ideally in a separate package from the runtime package). Ideally, I don't want to package them in /usr/bin since the ...
Paul Fultz II's user avatar
0 votes
0 answers
42 views

cc linker error

I'm writing a C application based on GTKlibrary on Debian 12. The program is build by a Makefile, generated from cmake. The compile phase of the source files is correct but when the linker is fired I ...
SteMMo's user avatar
  • 197
1 vote
1 answer
215 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
566 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
262 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
  • 141
1 vote
0 answers
3k views

Compiling CFLAGS in a Yocto Recipe File

Issue: I have 2 macros I added in a c file and I have 2 machines. Using Yocto recipe I wish to build the code with specific macros for specific machines. Breaking down the issue in sub parts - hello.c ...
Nathan's user avatar
  • 21
0 votes
1 answer
164 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,787
0 votes
1 answer
3k 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
  • 115
0 votes
0 answers
34 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
59 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
  • 17
0 votes
0 answers
351 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
104 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,992
1 vote
1 answer
82 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
  • 285
0 votes
2 answers
290 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
  • 12.5k
0 votes
1 answer
315 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
  • 113
3 votes
1 answer
2k 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
  • 93
1 vote
0 answers
321 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
411 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
2k 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
  • 490
0 votes
1 answer
576 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
  • 423
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,388
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
1k 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
476 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
2 votes
1 answer
6k 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
  • 123
0 votes
1 answer
152 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
534 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
2k 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
2k 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
698 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
919 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
303 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
704 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
358 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
60k 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