Skip to main content

Questions tagged [cmake]

CMake is a cross-platform, open-source make system.

Filter by
Sorted by
Tagged with
268 votes
13 answers
786k views

How do I install the latest version of cmake from the command line?

I am trying to install latest cmake in my linux box and I am always getting the below exception - userName@phx5qa01c-4e23:~/build$ wget http://www.cmake.org/files/v2.8/cmake-2.8.11.tar.gz --2013-10-...
SSH's user avatar
  • 2,881
138 votes
8 answers
503k views

How to install cmake 3.2 on Ubuntu

Default cmake version of 14.04 is 2.8. How can I install cmake 3.2 and replace the default one? Or how can I upgrade 2.8 to 3.2?
ycshao's user avatar
  • 1,511
120 votes
3 answers
557k views

How to upgrade cmake in Ubuntu [duplicate]

CMake Error at CMakeLists.txt:1 (cmake_minimum_required): CMake 3.6.0 or higher is required. You are running version 3.5.1 -- Configuring incomplete, errors occurred! I know Ubuntu uses stable ...
Wolf's user avatar
  • 3,177
50 votes
4 answers
104k views

What package do I need to build a Qt 5 & CMake application?

I'm trying to build sdrangelove, which wants Qt 5 and uses CMake for its build system, on Ubuntu 13.10. What package do I need to install to give it the file it's asking for here? There are a lot of *...
Kevin Reid's user avatar
  • 1,150
38 votes
3 answers
143k views

CMAKE Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE)

I have been building freerpd client for Eclipse in Ubuntu 14.04 but an error is popping up : Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) when I use CMake 2.8. How can I get rid of it?
Ananthu r nath's user avatar
27 votes
3 answers
18k views

Is there a good PPA for cmake backports?

I am looking for a reliable PPA for cmake backports. I need it for both Xenial and Trusty (travis-ci). Ideally I would like to have at least cmake 3.8.
Juan Leni's user avatar
  • 2,198
17 votes
4 answers
66k views

CMake can not find PythonLibs

I am trying to build inria Graphite on my ubuntu which is running in a VirtualBox simulator, I follow the instructions, and install the python-dev packages, but when I run cmake , still got an error: ...
tintin's user avatar
  • 271
17 votes
1 answer
23k views

Installing clang 5.0 and using C++17

I have been trying for 3 days to install clang 5.0 on an Ubuntu 16.04 machine. I have tried various guides, but nothing seems to work. When I try to simply grab the latest from SVN and build/install (...
Steve D's user avatar
  • 267
16 votes
5 answers
81k views

CMake Error: Could not find CMAKE_ROOT?

I'm trying to build a github project using cmake and I've been having a lot of trouble. I'm creating a build directory and calling cmake like so: cd github_project_directory mkdir build cd build ...
ellen's user avatar
  • 277
14 votes
3 answers
77k views

undefined reference to symbol 'exp@@GLIBC_2.2.5'

Similar question has been asked here but is unanswered. I have an implementation of Levenberg-Marquardt (downloaded from somewhere) and I'm trying to compile it but getting the following error. ...
Shashwat's user avatar
  • 348
14 votes
1 answer
107k views

How do I remove CMake after installing it from source?

I wanted to update my cmake version. So I had first uninstalled it and then tried to install as given in this post by teocci. However, it was giving some errors on entering make and now I want to ...
Surabhi Verma's user avatar
14 votes
5 answers
17k views

How to build cmake-gui on Linux from source?

I tried downloading https://cmake.org/files/v3.11/cmake-3.11.0.tar.gz and building it, but there is no cmake-gui in ./bin subfolder after build. Is cmake-gui supplied in another source archive?
stiv's user avatar
  • 525
13 votes
2 answers
34k views

Ubuntu 14.04 Qt5 development libraries?

I want to build applications requiring Qt5 via CMake. Which libraries do I have to install to achieve that? What I have tried so far is searching for anything containing qt 5 core and dev, but have ...
codeling's user avatar
  • 649
11 votes
2 answers
45k views

CMake can't find X11

I'm trying to compile Minetest 0.4.10 on Ubuntu 12.04.3 LTS with CMake, but I get this error: andrew@rasts-tv:~$ cmake \Minetest-0.4.10 -- *** Will build version 0.4.10 *** -- IRRLICHT_SOURCE_DIR = -...
user249312's user avatar
10 votes
4 answers
24k views

cmake 2.8.9 on Ubuntu 10.04

I have installed cmake using apt-get and the "latest" version is 2.8.0. But when I try to used, my project requires cmake version 2.8.9. I try to update but without any success using apt-get. How ...
Victor's user avatar
  • 213
10 votes
1 answer
7k views

Install latest cmake binary and accept licence automatically

I'm trying to install the latest binary version of cmake, on Ubuntu 16.04 LTS, automatically (via ansible). I have so far done: mkdir ~/tmp cd ~/tmp wget https://cmake.org/files/v3.10/cmake-3.10.0-...
Rekovni's user avatar
  • 223
10 votes
1 answer
12k views

Could not locate BerkeleyDB

I am trying to install a bitcoin-repote-rpc miner from [http://www.mediafire.com/file/ve608cl5mk1ka3l/bitcoin-remote-rpc-20110227-src.zip] on my laptop running on ubuntu quantal. I need to use CMake ...
Nadeem Muhammad's user avatar
9 votes
1 answer
34k views

How to install cmake 3.7 in Ubuntu 16.04 using its binary archive file? [duplicate]

I'm on Ubuntu 16.04. I installed cmake with the command sudo apt install cmake It installed cmake 3.5.1. Now I want to use cmake 3.7 - I downloaded an archive with binaries (i.e cmake-3.7.0-Linux-...
nikitablack's user avatar
8 votes
2 answers
71k views

Installing latest cmake on Ubuntu 18.04.3 LTS run via WSL: OpenSSL error

Using CLion on Windows (a C++ IDE), I'd like to install the latest version of cmake on Ubuntu 18.04.3 LTS run via WSL (the current version of CLion requires cmake > 3.15, while I have only version 3....
Unis's user avatar
  • 183
8 votes
4 answers
32k views

cmake 3.0.2 can't find boost on 14.04

I have the latest cmake 3.0.2 compiled from sources, also libboost-all-dev installed. And find_package(Boost) can't find it. Here is output of cmake: Unable to find the requested Boost libraries. ...
GLaz's user avatar
  • 323
8 votes
2 answers
7k views

What is the ECM used in building fcitx?

I am trying to rebuild fcitx on Xenial (16.04.3) so that I can debug the failure to respond to R-ALT when using an M17N input method. My attempt to rebuild fcitx fails with the error message: ...
Richard Wordingham's user avatar
8 votes
1 answer
69k views

CMake can't find pthread

pthreads works on the system: $ gcc -o what what.c /tmp/ccI6m52b.o: In function `main': what.c:(.text+0x37): undefined reference to `pthread_create' what.c:(.text+0x48): undefined reference to `...
Claudiu's user avatar
  • 193
7 votes
3 answers
25k views

Package 'cmake' has no installation candidate ubuntu 12.04

When I run sudo apt-get install cmake I get the following response: Package cmake is not available, but is referred to by another package. This may mean the package is missing, has been obsoleted, ...
ttt's user avatar
  • 71
7 votes
4 answers
4k views

CMAKE 3 binary package for PRECISE

Does anyone know where this package would be available? I am looking to use it on Travis-CI so building from sources takes too long and is not an option. a dpkg would suffice if you know where to ...
Carneiro's user avatar
  • 173
7 votes
1 answer
22k views

How to install cmake 3.14 on ubuntu 18.04

My version of Ubuntu is 18.04,I want to install the latest version of Cmake.However,I just can find the example on Ubuntu 16.04.Because I am a beginner,I want to know if I could follow the example....
abyssiridescent's user avatar
7 votes
0 answers
6k views

Boost 1.58 installed, but boost_thread and boost_locale missing

Trying to build a project that requires boost. I get the following error: Unable to find the requested Boost libraries. Boost version: 1.58.0 Boost include path: /usr/include Could not find ...
Jonathan Lindgren's user avatar
6 votes
1 answer
3k views

A binary file exists but shell says no such file

I'm using the Ubuntu in UserLAnd on an android. I just installed from the Android SDK Manager sdkmanager cmake 3.18.1. Now, I can see the cmake executable from its directory cmake/3.18.1/bin byls, ...
wicstas's user avatar
  • 79
6 votes
2 answers
10k views

Is there a PPA offering CMake >= 3.2 for Ubuntu Precise?

I'm trying to get cmake 3.2 or newer on travis-ci, which runs precise. Is there any PPA? I found ppa:george-edison55/cmake-3.x but it doesn't offer precise. I found this question offering manual ...
Daenyth's user avatar
  • 768
6 votes
3 answers
27k views

How do I install Eigen2?

Eigen is a C++ template library for linear algebra: matrices, vectors, numerical solvers, and related algorithms. I've been having trouble installing it. When I ran cmake '/home/brentonhorne/eigen-...
Josh Pinto's user avatar
  • 7,949
6 votes
1 answer
7k views

source vs export vs export LD_LIBRARY_PATH

When compiling applications from source code using make or cmake the instructions usually say, source <some path> <parameter> export <some text> Also, a lot of time ...
ankit7540's user avatar
  • 4,185
6 votes
1 answer
15k views

how to solve No CMAKE_Fortran_COMPILER could be found.?

how to solve No CMAKE_Fortran_COMPILER could be found. ? CMake Error at CMakeLists.txt:3 (project): No CMAKE_Fortran_COMPILER could be found. Tell CMake where to find the compiler by ...
spiralcules's user avatar
6 votes
1 answer
27k views

Cmake has been installed but when other program need to use it, it still says not installed

I am on Ubuntu 16.04. First time using a Linux system. I installed cmake and I can check it in the terminal by typing /opt/cmake/bin/cmake -version cmake version 2.8.3 However, when I try to install ...
kim kevin's user avatar
6 votes
1 answer
7k views

How can I build i386 and amd64 packages on my amd64 laptop using debuild

I would like to be able to build multiple versions (i386 and amd64) of my package that has non trivial dependencies (gtk, etc). My build script uses cmake. At the moment, the command debuild -i -us -...
Name is carl's user avatar
6 votes
2 answers
7k views

How do I install pybel such that my python environment recognizes it?

On Chemistry Stack Exchange I asked a question regarding Open Babel & Python being used together. The problem is that the answer I was provided (by Geoff Hutchinson) requires Python to be able to ...
Josh Pinto's user avatar
  • 7,949
6 votes
0 answers
664 views

Latest Avogadro build- finding it impossible to install on Ubuntu 14.04

I'm on Ubuntu 14.04, trying to install the latest version of Avogadro (because the version in Software Center is showing issues) and when I get to make, it prints all these errors: [ 98%] Linking CXX ...
jnowat's user avatar
  • 61
5 votes
2 answers
11k views

Linking error when trying to compile on a shared drive

I am trying to compile the OpenCV library on a shared drive on my system. I was able to configure and generate makefiles successfully by using these settings, but when I try to compile I get the ...
bubble's user avatar
  • 399
5 votes
2 answers
2k views

Managing dependencies for GNU radio to compile from source

Ettus research gives a big list of dependencies for 18.04 which almost works for compiling gnu radio from source. cmake gives the following config error: -- Python checking for PyQt5 - found -- ...
nickhansenrf's user avatar
5 votes
2 answers
24k views

Default installation prefix QT5 / QT5 Widgets Ubuntu

I have a CMake project. I am trying to switch from QT4 to QT5. find_package(QT5Widgets REQUIRED) EDIT HERE IS A TYPO problem solved (Qt5... instead of QT5...) already gives me By not providing "...
BuddhaWithBigBelly's user avatar
4 votes
2 answers
44k views

Errors occured when doing cmake in ubuntu

-- Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE) Git commit: v0.9.1-21-gcabdedb, Git version: 0.9.1 PolarSSL not found Tomcrypt found -- checking for module 'libnl-tiny' -- package 'libnl-...
Maxim's user avatar
  • 75
4 votes
1 answer
30k views

How to install dlib for python3 in Ubuntu 14.04

I'm following this guide https://cmusatyalab.github.io/openface/setup/ of installation. I did: mkdir -p ~/src cd ~/src tar xf dlib-19.1.0.tar.gz cd dlib-19.1.0/python_examples mkdir build cd ...
wasd's user avatar
  • 359
4 votes
3 answers
3k views

OpenCV compiles correctly but fails during .deb packaging

Attempting to follow some tutorials on building a .deb package for a newer version of OpenCV in Ubuntu 18.04. Here are my steps: wget https://github.com/opencv/opencv/archive/4.1.0.zip unzip 4.1.0....
Stéphane's user avatar
  • 2,536
4 votes
1 answer
14k views

Installing CMAKE's latest version from binary without using sudo [duplicate]

I am currently trying to install some executable files in the cluster supported by my academic institution. When running the installation for a particular executable, I am asked to update my CMake ...
Oscar Araiza Bravo's user avatar
4 votes
1 answer
389 views

How to bump the version of a package available in another user's PPA?

When looking for a recent version of CMake 3.2 for Ubuntu 15.04 I came across this PPA. However, instead of CMake 3.2.1 I'd like to use version 3.2.3. How can I easily build upon the existing work ...
sschuberth's user avatar
4 votes
1 answer
3k views

/usr/local/bin first in PATH, but executable in /usr/bin found first

I'm having a strange problem with an Ubuntu 12.04 server: hithwen@ip:~$ cmake --version cmake version 2.8.12.2 buildbot@ip:~$ cmake --version cmake version 2.8.7 So, different users are executing ...
hithwen's user avatar
  • 195
4 votes
1 answer
2k views

Error installing avogadro with CMake 'lconvert: could not exec No such file or directory'

I'm brand new in ubuntu. I'm trying to install Avogadro. The program need the following packages, which I could install: CMake - OpenBabel 2.3.2 - Qt4 - Git - Eigen2. Here it is the recepy to ...
Orr22's user avatar
  • 197
4 votes
1 answer
9k views

uninstall cmake in Ubuntu 18.04

I need to uninstall cmake from my Ubuntu machine. I tried via command line as I saw in How can I uninstall software in Ubuntu? sudo apt-get remove cmake sudo apt-get purge cmake sudo apt remove cmake ...
lior.i's user avatar
  • 142
4 votes
1 answer
185 views

pbuilder-dist fails if cmake can't find non-mandatary c++ feature support?

I'm trying to submit a deb to my PPA according to this manual: https://packaging.ubuntu.com/html/packaging-new-software.html I'm able to build my app with bzr builddeb -- -nc -us -uc and to sign it ...
truf's user avatar
  • 191
4 votes
4 answers
12k views

Cmake can not find ZLIB on Ubuntu 20.04

I am running Ubuntu 20.04 on Windows Subsystem for linux. Cmake is version 3.16.3. I am trying to build a project with a zlib dependency, and I get the following error... Could NOT find ZLIB (...
Scorb's user avatar
  • 870
4 votes
2 answers
23k views

cmake fails with "Could NOT find HDF5"

My project compiles flawlessly in Mac OS X and now that I try building in Ubuntu 12.x latest as of today, I get the error -- Could NOT find HDF5 (missing: HDF5_LIBRARIES HDF5_INCLUDE_DIRS). If I take ...
SkyWalker's user avatar
  • 343
4 votes
1 answer
706 views

Creating a Debian package for a Qt application built using CMake

I would like to create a .deb installation package for a GUI based Qt5 application. Most of the links available for this problem are pretty old, so I'm curious if there are more up-to-date solutions ...
Alex Baum's user avatar

1
2 3 4 5
8