Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [cmake]

Questions specific for CMake build tool.

0
votes
0answers
16 views

Install libraries needed for cmake in GuixSD

I am trying to compile Xash3D on GuixSD v1.0.0 and gcc 8.3.0. As is shown below, ld is giving me errors, that ctr1.o and ctri.o are missing. These files exist under a different directoy, under /gnu/...
0
votes
1answer
15 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
29 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
33 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
50 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
110 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/...
1
vote
0answers
31 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
34 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
23 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-...
0
votes
0answers
25 views

Problem finding required libraries on ubuntu 16.04

I have used the following command sudo apt-get install coinor-cbc and get the following result coinor-cbc is already the newest version However, when I am building a package which require some non-...
1
vote
0answers
310 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
0answers
325 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
638 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
616 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
31 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
132 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
345 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
103 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
148 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
1k 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
185 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
247 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
518 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
78 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
53 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 ...
0
votes
1answer
680 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
841 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
120 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 \ ...
3
votes
1answer
1k 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
289 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
665 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 ...
3
votes
1answer
903 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
129 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 ...
5
votes
0answers
98 views

How to Run ld in Script with A Smaller Memory Footprint?

I'm trying to build Swift 3 on FreeBSD. The last thing I need to do is run the build-script. My problem is that at some point the script runs: Linking CXX executable bin/llvm-lto Which ...
3
votes
2answers
2k views

Building error - how to fix missing header file

I'm trying to build cuneiform from source with imageMagick support, but it looks like the debian package missing a header file. When I'm running make it fails at the very end of the process: [100%] ...
1
vote
1answer
2k views

OBS Studio CMAKE unable to find FFmpeg?

I am trying to install OBS Studio on Debian 8. I tried to follow the official install guide for OBS Studio, but when I try to run cmake -DUNIX_STRUCTURE=1 DCMAKE_INSTALL_PREFIX=/usr .. I get the ...
3
votes
1answer
938 views

dh_install cannot find usr/lib/lib*.a

I am trying to create a .deb package for openCV 3.2 for raspberry pi. My control file is: Source: opencv Priority: optional Maintainer: xxx <xxx@xx.xx> Build-Depends: debhelper (>= 9), ...
0
votes
0answers
216 views

Error compiling LLVM

I am trying to compile LLVM with LLD (I really just want LLD but it requires the rest of LLVM iirc). When I try to run CMake (cmake ..) in my build folder (inside the source folder), I get the ...
-1
votes
1answer
2k views

How do I make FFMPEG check yes while installing OPENCV

I run cmake -D CMAKE_BUILD_TYPE=RELEASE .. to configure opencv and here are some of the check result -- Video I/O: -- DC1394 1.x: NO -- DC1394 2.x: ...
1
vote
1answer
1k views

libcrypto.so.1.0.0: no version information available (required by /opt/Android/Sdk/cmake/3.6.3155560/bin/cmake)

I met this problem only with Android-studio, system cmake works fine. /opt/Android/Sdk/cmake/3.6.3155560/bin/cmake: /usr/lib/libcrypto.so.1.0.0: no version information available (required by /opt/...
0
votes
1answer
428 views

Fedora 24: how to get the wx-config script detected in openSUSE Build Service?

I have this spec file for building a CodeLite package and on Fedora 25 it builds fine. But on Fedora 24 instances of the Open Build Service (OBS) it fails giving the error [ 93s] -- ...
0
votes
1answer
76 views

GUI for a new cmake

I installed Cmake 3.5 and I want to have a GUI for it, as I had before with cmake-qt-gui. But what was installed is only cmake itself. I expected cmake-gui to come with the source of cmake, maybe I ...
1
vote
3answers
5k views

How to Install VTK (with Python Wrapper) on Red Hat Enterprise Linux (RHEL)

A program I need to compile is dependent on VTK v5.4+ with Python Wrapper. VTK is not in the standard YUM repo's. How can I install this dependency? I am running RHEL 7 under developer subscription....
1
vote
1answer
62 views

Use different versions of a program in different directories

I am accessing a server remotely and do not have sudo privileges. To get my work done I need to have a newer version of cmake. The admin will not update cmake globally so I need it to work in my ...
4
votes
1answer
2k views

ld cannot find -lgfortran

I'm trying to compile Knut (a maths program) on Arch Linux with CMake and I'm getting the following error: /usr/bin/ld: cannot find -lgfortran /usr/bin/ld: cannot find -lquadmath collect2: error: ld ...
2
votes
1answer
3k views

Cmake cannot find module Qt5WebEngineWidgets

I want to compile QSyncthingTray (https://github.com/sieren/QSyncthingTray) on my notebook running arch linux x86. I've set $QTDIR to /home/user/.qt/5.5/gcc/ as well as $CMAKE_PREFIX_PATH I've ...
1
vote
0answers
498 views

Making CMake apply -DCMAKE_INSTALL_PREFIX to everything

I'm trying to build this app with CMake, as a non-root user. I've run: cmake -DCMAKE_INSTALL_PREFIX:PATH=$HOME/opt but during make install, I get -- Installing: /usr/local/share/myapp/data CMake ...
1
vote
1answer
15k views

CMake not found, yet it is installed [closed]

I am attempting to install CMake in a cluster environment running Centos 7.2, by executing: ./bootstrap --prefix=/home/user/opt make make install Compiling doesn't give any errors, yet, ...
1
vote
1answer
696 views

Errors building and installing clBLAS on Ubuntu 16.04 (64bit)

I'm tring to build clBLAS from source on Ubuntu 16.04 (64bit). From the cmake configuration output it appear the dependencies have been satisfied. I'm being guided by instructions from here like so; ...