A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.

Questions tagged [cmake]

Questions specific for CMake build tool.

Filter by
Sorted by
Tagged with
0
votes
0answers
14 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
20 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
30 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
50 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
61 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 ...
0
votes
1answer
62 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
23 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
34 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
38 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
465 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
36 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
47 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
0answers
15 views

Plotinus - a searchable command palette

I've recently installed plotinus on my system by following the instructions at GitHub. Everythings seems to have gone just fine, and even the installation log is clean as a whistle. However, nothing ...
-1
votes
1answer
160 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
105 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 ...
0
votes
0answers
30 views

no rule to make target while compiling linux binaries

I am trying to compile source code from Elastic binaries. I am using ITK and CMAKE. I am able to compile the code, however when I navigate to the build direct and run make install I get the ...
1
vote
1answer
245 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
426 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
73 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
217 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 ...
0
votes
1answer
568 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
59 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
434 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
98 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
101 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
54 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
969 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
824 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
2k 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 ...
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
200 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
575 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
208 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 ...
0
votes
0answers
269 views

cmake: How to check existence of an unreadable file

Theoretically, cmake can check for the existence of a file if(EXISTS "/dev/spidev0.0") according to the documentation this should be True if the named file or directory exists. Behavior is well-...
0
votes
1answer
3k views

Cmake can't find X11 libs

I'm trying to compile a GUI-based package on my RHEL 7.2 (XFCE environment). But every time I run cmake .. , it fails with the report: [user@localhost build]$ cmake .. -- BUILD TYPE set to the ...
0
votes
1answer
2k views

Can't link opencv libraries via Cmake in Linux

I used to have OpenCV3 from the Arch Linux pckage manager(pacman) and it worked fine but when I removed it and install OpenCV 3.4.1 and OpenCV-Contrib from source code nothing worked even the old ...
0
votes
2answers
294 views

Can't add symbols to ../../lib/libLLVMSupport.a when building llvm-6.0.0 using llvm-5.0

Here is the information about my system and the compiler I use: Linux version 4.9.0-5-amd64 (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-1 8) ) #1 SMP Debian 4.9.65-3+...
1
vote
1answer
345 views

How to add dependency to CMakeLists.txt

I am working on an already build shared library. When I run cmake -C $ILCSOFT/ILCSoft.cmake the output says at somepoint: -- Check for FastJet (3.1.2) -- Check for FastJet_LIBRARIES: fastjet -- ...
2
votes
0answers
716 views

Is there an automatic translator from Makefile to CMakeLists.txt?

I have several inherited projects - on RHEL 7, part of which are created using make, and the rest are utilising cmake. I'm wondering: is there an automatic translator that will take a Makefile as ...
0
votes
1answer
112 views

Why does lxqt-build-tools fail to build?

I would like to build LxQt from sources on a Ubuntu xenial derivative system. I followed the oder as described on https://github.com/lxde/lxqt/wiki/Building-from-source and libqtxdg compiled and ...
0
votes
1answer
69 views

imake on fedora 25 doesn't work

I tried to personalize the Makefile.tmpl makefile.rules and since then I can’t get the imake to run anymore under Fedora 25. The command xmkmf -a gets me the following mv -f Makefile Makefile.bak ...
1
vote
1answer
1k views

gmodule-2.0 not found while compiling

I can't figure it out. I seem to have all deps installed, but I'm getting the following error while trying to compile ValaPanel on Xenial: ./configure Will output: -- Looking for RPMTools... - ...
1
vote
0answers
1k views

libstdc++.so.6: cannot open shared object file: No such file or directory

I'm trying to install this library for Ruby so I can work with FITS files, but during brew install sfitsio I encounter this error: Last 15 lines from /home/dachsroot/.cache/Homebrew/Logs/sllib/02....
-1
votes
1answer
158 views

Cmake: is correct this syntax for mandir,sysconfdir,etc? [closed]

On classic configure linux I use ./configure --mandir=/usr/man \ --sysconfdir=/etc \ --localstatedir=/var How to convert it to cmake? I tried.. cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ ...
4
votes
2answers
2k views

What is the Linux equivalent of Inno Setup on Windows?

Looking to create a Linux installer that will work similar to Inno Setup on Windows (which is a great little tool to create installers on Windows). My project is really simple (just a couple of ...
1
vote
0answers
376 views

can't make after doing cmake

Not sure this is the correct place to ask my question, but I'd like to give it a try as some people already managed to help me here in the past. I am trying to run this software on my computer: ...
1
vote
1answer
838 views

cmake find_package boost fails on Debian Jessie

I have a self-written C++ application that uses cmake as its build tool. The CMakeLists.txt has used worked perfectly on Debian 7 (Wheezy) but not for Debian 8 (Jessie) and it drives me crazy. In ...
2
votes
1answer
1k views

ERROR: Bitbake couldn't find CMakelists.txt after extraction (Yocto)

I am trying to compile Ceres solver on a yocto build (for Intel Aero drone). I earlier tried pulling using the git repository at https://ceres-solver.googlesource.com/ceres-solver/ but could not get ...
2
votes
0answers
373 views

Why find -name DIR -exec rm -rf {} + does not remove directories [duplicate]

I want to cleanup my cmake project and run this command find -name CMakeFiles -o -name CMakeCache.txt -exec rm -rf "{}" + It deletes files CMakeCache.txt but refuses to remove directories. So I have ...