Questions tagged [cmake]
Questions specific for CMake build tool.
128
questions
2
votes
1
answer
71
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 ...
1
vote
0
answers
11
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
18
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
11
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
27
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 ...
0
votes
0
answers
60
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/...
0
votes
1
answer
78
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 ...
0
votes
0
answers
479
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):
...
0
votes
0
answers
28
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-------". ...
0
votes
1
answer
252
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 -...
0
votes
0
answers
20
views
make results in 'No idlpp IDL pre-processor found!' error
I am trying to build a private project using make, but I keep getting the error:
CMake Error at cmake/config_opensplice.cmake:8 (message):
No idlpp IDL pre-processor found!
Call Stack (most recent ...
0
votes
0
answers
242
views
How to fix No rule to make target when compiling cmake
The catkin was compiled normally, but suddenly it gives this error when using "catkin_make"
make[2]: *** No rule to make target '/usr/lib/x86_64-linux-gnu/libsdformat9.so.9.2.0', needed by '/...
2
votes
2
answers
508
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
78
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
879
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....
0
votes
1
answer
36
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/...
0
votes
0
answers
218
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
167
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 ...
0
votes
1
answer
442
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 ...
0
votes
1
answer
206
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
404
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 ...
0
votes
1
answer
190
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 ...
0
votes
1
answer
562
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
550
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 ...
1
vote
1
answer
943
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
68
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 ...
0
votes
1
answer
582
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
13k
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
307
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 ...
14
votes
1
answer
71k
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 (...
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 ...
1
vote
1
answer
191
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
313
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
...
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 ...
1
vote
2
answers
2k
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....
1
vote
1
answer
631
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
327
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
589
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
211
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
197
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 ...
-1
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' ...
0
votes
0
answers
571
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 ...
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 ...
0
votes
1
answer
121
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 ...
1
vote
0
answers
965
views
How do you specify the pkg-config path when compiling something with cmake?
I want to build ffmpeg with support for the av1 codec on CentOS 7.
I start by following the instructions here:
git clone https://aomedia.googlesource.com/aom
mkdir aom_build
cd aom_build
cmake ../aom
...
8
votes
3
answers
8k
views
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 ...