Questions tagged [cmake]

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

CMake is used to control the software compilation process using simple platform and compiler independent configuration files. CMake generates native makefiles and workspaces that can be used in the compiler environment of your choice. CMake is quite sophisticated: it is possible to support complex environments requiring system configuration, pre-processor generation, code generation, and template instantiation.

CMake was developed by Kitware as part of the NLM Insight Segmentation and Registration Toolkit project. The ASCI VIEWS project also provided support in the context of their parallel computation environment. Other sponsors include the Insight, VTK, and VXL open source software communities.

349 questions
120
votes
3 answers

How to upgrade cmake in Ubuntu

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 releases that it can support, but some repos require…
Wolf
  • 3,147
17
votes
4 answers

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: CMake Error at…
tintin
  • 271
  • 1
  • 2
  • 8
6
votes
1 answer

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 another program that needs cmake git clone…
6
votes
1 answer

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 setting either the environment variable "FC" or the…
4
votes
2 answers

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-tiny' not found -- checking for module…
Maxim
  • 75
4
votes
1 answer

Installing CMAKE's latest version from binary without using sudo

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 version to at least 3.1 (the cluster currently has…
3
votes
0 answers

CMake can't detect freetype although it is inatalled

I'm trying to install OGRE3D but when I build it using CMake3.2.2, I get the error that I don't have freetype although I do have freetype and it is fully upgraded (I get "libtypefree6-dev is already the newest version" when I use command sudo…
Zargham
  • 31
  • 5
2
votes
0 answers

Displaying Cmake variables without running Cmake on CMakeLists.txt

Suppose I have a package called Foo. If I run cmake on a CMakeLists.txt file that contains find_package(Foo), then I can print out the values of variables such as ${Foo_LIBRARIES} and ${Foo_INCLUDES}. Is there an easy way to display these variables…
Karnivaurus
  • 1,024
  • 3
  • 15
  • 34
2
votes
1 answer

Cmake error while building gromacs (ubuntu 14.10 64 bit)

I installed cmake without any error in Ubuntu 14.10 64-bit I am getting this error while running cmake in gromacs build directory CMake Error: Could not find CMAKE_ROOT !!! CMake has most likely not been installed correctly. Modules directory not…
2
votes
1 answer

CMake Error: The source directory /home/pi/opencv-3.0.0/build/BUILD_EXAMPLES=ON does not exist

I ran the following lines cmake -D CMAKE_BUILD_TYPE=RELEASE \ -D CMAKE_INSTALL_PREFIX=/usr/local \ -D INSTALL_C_EXAMPLES=ON \ -D INSTALL_PYTHON_EXAMPLES=ON \ -D OPENCV_EXTRA_MODULES_PATH=~/opencv_contrib-3.0.0/modules \ -D…
Nauman Ahmed
  • 21
  • 1
  • 1
  • 2
1
vote
1 answer

Binary distribution from cmake.org - what to do with the downloaded binaries?

After downloading and extracting them, how do I install the CMAKE binary files in Ubuntu 14.04 so that they're recognized with cmake --version?
Anthony
  • 11
1
vote
2 answers

How can CMake 3.4.1 or greater be installed on Ubuntu?

I have attempted to install a current version of CMake on Ubuntu 15.10, but this has resulted in only version 3.4.1 being installed. sudo apt-get install software-properties-common sudo add-apt-repository ppa:george-edison55/cmake-3.x sudo apt-get…
d3pd
  • 3,661
1
vote
0 answers

CCmake installation changes my cmake version back to 2.8

I've installed latest Cmake version (3.2.2) in Ubuntu 14.04LTS after i install ccmake through sudo apt-get install cmake-curses-gui It runs as cmake 2.8.12 But I need Cmake 3x versions to be executed
1
vote
1 answer

Installation of cmake 2.8.11 on ubuntu 13.04

I tried to install cmake 2.8.11 on Ubuntu 13.04. I got cmake 2.8.11 source and during installing some errors happened. And Ubuntu installs cmake 2.8.10. Because of a lot of dependencies I am not able to install manually. Please suggest how I can…
hadizs
  • 11
  • 1
  • 1
  • 2
1
vote
1 answer

CGAL library installation!

I am running Ubuntu 12.04 and I want to install the CGAL library on my Desktop for my study purpose.I have tried its installation process for 1000 times(trying all different ways) but still I am unable to make it work. This is Cmake output. Any help…
Null pointer
  • 2,547
  • 5
  • 26
  • 38
1
2