Questions tagged [cmake]

Questions specific for CMake build tool.

Filter by
Sorted by
Tagged with
0
votes
0answers
12 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 '...
-2
votes
0answers
21 views

How do we avoid recompilation for unchanged source files using makefile (Compile only source changed files)

I would like to avoid recompilation of my entire project. Can you help if anyone knows about it I'm attaching my makefile below #-------------------------------------------------------------- # ...
0
votes
1answer
39 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
0answers
16 views

RE: 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
1answer
81 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
2answers
47 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 ...
0
votes
0answers
38 views

cmake does not find dll-libraries

I try to compile some code in linuxmint.I have the qt 5.12.2 and Qt creator 4.12.2 as well there is cmake 3.10.2 on my computer.When i configure my cmakelists txt with cmake or QT there is no fault in ...
1
vote
1answer
27 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
0answers
20 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
1answer
73 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
1answer
1k 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) : $...
0
votes
1answer
149 views

How to install latest Kodi on latest Debian?

The current version of Kodi in Debian10's repositories is v17.6. This version didn't work properly (it wasn't usable). Hence I'm trying to install the latest version. I followed the steps of the "...
0
votes
0answers
22 views

Install Qt WebEngine Widgets

I am running a Qt cmake project which gives me an error that: Could not find a package configuration file provided by "Qt5WebEngineWidgets" with any of the following names: ...
0
votes
1answer
30 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 ...
0
votes
1answer
4k 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
vote
1answer
109 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
1answer
38 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
0answers
667 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
0answers
22 views

cmake policy query

Background CMake policy is documented here. One may set the policy to a cmake version with cmake_policy(version ...), or by specific policy with cmake_policy(set ...). One may query the current ...
0
votes
1answer
111 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 ...
1
vote
1answer
175 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
2answers
481 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
1answer
519 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....
0
votes
1answer
148 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
1answer
153 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
0answers
56 views

make fails while installing darling

(Running Ubuntu 19.10) I was installing darling, a program that allows the running of Mac OS programs. I was going to use it to run iTerm2, as I love how it looks. I installed all of the needed ...
0
votes
0answers
251 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 ...
1
vote
0answers
1k 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
0answers
110 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
0answers
104 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
1answer
452 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
0answers
199 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
1answer
579 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 ...
4
votes
3answers
590 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
1answer
93 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
0answers
425 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 ...
2
votes
1answer
3k 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 ...
0
votes
1answer
68 views

Building in different linux-based OS

I'm not experienced in C, qt and cmake. I spent last 10 hours trying to build this project: https://github.com/moonlight-stream/moonlight-qt May main goal is to build it myself and run it on Ubuntu. ...
1
vote
0answers
595 views

Compiling python with custom library path [duplicate]

I'm trying to install the latest Python version on my workstation at work. Unfortunately I don't have root access, and they won't do it for me, so I have to compile from source and put it in ~/local/...
2
votes
0answers
202 views

CMake Debian vs Redhat/Arch-specific install directories

I have a systemd *.service file that I want to install using the CMake build system. According to Free Desktop policy used by Debian these go in /lib/systemd/system. In Red Hat policy these go in /...
1
vote
1answer
205 views

Remove debuild buildsystem=cmake linker flags

I'm trying to create a *.deb file from debian using cmake with a mingw cross-compiler. CMake's compiler test fails when using dpkg-buildpackage. Building normally is fine: mkdir build && ...
0
votes
1answer
127 views

Run 'cmake --help' for more information

I failed to compile the below software: git clone https://github.com/bioinfologics/satsuma2.git cd satsuma2 cmake Usage cmake [options] <path-to-source> cmake [options] <path-to-...
1
vote
0answers
1k views

Error adding symbols: DSO missing from command line while compiling Ogre Meshy

Yes I read many questions for ex. this and this and this and this but nothing works for me. So basicaly Im trying to compile Ogre Meshy but Im getting an error [100%] Linking CXX executable bin/...
1
vote
1answer
1k views

libzip Linux cross-compile configuration

I am trying to cross compile libzip-1.5.1 having previously successfully complied zlib-1.2.11 (these are required by libzip and I have installed in a local home path), but I am experiencing problems ...
1
vote
1answer
3k views

Building shared library which is executable and linkable using Cmake

How to create an executable shared-library using cmake? Something like: libtest.so :: linkable shared library libtest.so :: executable too Note: gcc/g++ options are known to achieve the same (...
1
vote
1answer
1k views

understanding .sh file terminology and cmake

I am trying to use cmake and OpenGL to learn computer graphics, and the tutorial included a run.sh file that is supposed to compile/build the cpp programs. Here is the code: #!/bin/bash #calls cd ...
0
votes
1answer
33 views

Question about installing programs - cmake/make v/s manual(?)

I am on Ubuntu 17 at the moment but this applies to all Linux operating systems. Many times I've ran into applications that are compressed in a tarball for me to install. The first time I ever run ...
1
vote
1answer
272 views

Building XFSTK error on Fedora 28 : /usr/bin/ld: cannot find -lboost_program_options

I downloaded xfstk source and built it. I installed dependencies such as boost, libusb-devel etc... but although I installed boost, I getting error messages, such as the one below, reporting that ...
1
vote
1answer
789 views

run make install twice

Let's suppose I have my sources/ directory and I run cmake from my home folder like this ~]$ cmake /path/to/my/sources/sources and afterwards I do the installation ~]$ make install After it's ...
0
votes
1answer
294 views

Please set them or make sure they are set and tested correctly in the CMake files: PYTHON_LIBRARY (ADVANCED)

For the past day and a bit I have been trying to install CERN's root program on Xubuntu (16.04.1) following their README (https://github.com/root-project/root/blob/master/README.md). I am doing ...