Questions tagged [cmake]
CMake is a cross-platform, open-source make system.
352
questions
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-...
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?
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 ...
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 *...
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?
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.
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:
...
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 (...
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
...
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.
...
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 ...
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?
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 ...
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 =
-...
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 ...
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-...
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 ...
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-...
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....
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.
...
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:
...
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 `...
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, ...
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 ...
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....
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 ...
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, ...
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 ...
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-...
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 ...
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 ...
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 ...
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 -...
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 ...
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 ...
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 ...
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
-- ...
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 "...
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-...
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 ...
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....
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 ...
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 ...
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 ...
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 ...
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
...
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 ...
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 (...
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 ...
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 ...