# Ccmake ver is different than cmake

**URL:** https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096
**Category:** Usage
**Created:** [April 7, 2021, 6:50pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096 "2021-04-07T18:50:42Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Kirk\_Pennock](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kirk_pennock/32/1350_2.png) [@Kirk\_Pennock](https://discourse.cmake.org/u/Kirk_Pennock)
#### Post date: [April 7, 2021, 6:50pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/1 "2021-04-07T18:50:42Z")

</div>

I just upgraded from 3.10 on ubuntu 18.04 to 3.20. Is there a matching version of ccmake or a gui?  
Am I supposed to use the ccmake ver 3.10 with cmake 3.20?

Thanks

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [April 7, 2021, 8:45pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/2 "2021-04-07T20:45:53Z")

</div>

Hmm. Seems that the `ccmake` package didn’t get updated? What versions of `cmake`, `cmake-curses-gui` and `cmake-qt-gui` do you have installed?

---

<div class="post-metadata">

### Author: ![Kirk\_Pennock](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kirk_pennock/32/1350_2.png) [@Kirk\_Pennock](https://discourse.cmake.org/u/Kirk_Pennock)
#### Post date: [April 7, 2021, 9:35pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/3 "2021-04-07T21:35:46Z")

</div>

I had cmake ccmake 3.10, updated from souce to cmake 3.20, did not have cmake-qt-gui  
Ran the bootstrap script, then make -j7, then sudo make install, the cmake 3.20 is working. Ccmake shows 3.10 when running.  
Tried uninstalling all, re installing with same procedure, cmake works, now no ccmake.  
Is ccmake something that comes with cmake?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [April 7, 2021, 9:41pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/4 "2021-04-07T21:41:34Z")

</div>

It does come with CMake, but only if enabled. You may not have either turned it on or were missing the required `libcurses-dev` package which provides the headers that it needs.

---

<div class="post-metadata">

### Author: ![Kirk\_Pennock](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kirk_pennock/32/1350_2.png) [@Kirk\_Pennock](https://discourse.cmake.org/u/Kirk_Pennock)
#### Post date: [April 7, 2021, 10:13pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/5 "2021-04-07T22:13:48Z")

</div>

kirk@Isaac:~$ sudo apt-get install libcurses-dev  
Reading package lists… Done  
Building dependency tree  
Reading state information… Done  
E: Unable to locate package libcurses-dev

Any ideas?

---

<div class="post-metadata">

### Author: ![Kirk\_Pennock](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kirk_pennock/32/1350_2.png) [@Kirk\_Pennock](https://discourse.cmake.org/u/Kirk_Pennock)
#### Post date: [April 7, 2021, 10:18pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/6 "2021-04-07T22:18:08Z")

</div>

I see lots of libncurse stuff, will that work?

---

<div class="post-metadata">

### Author: ![Kirk\_Pennock](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kirk_pennock/32/1350_2.png) [@Kirk\_Pennock](https://discourse.cmake.org/u/Kirk_Pennock)
#### Post date: [April 7, 2021, 10:19pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/7 "2021-04-07T22:19:05Z")

</div>

libncurses-gst/bionic,bionic 3.2.5-1.1 all  
Ncurses bindings for GNU Smalltalk

libncurses5/bionic-updates,now 6.1-1ubuntu1.18.04 amd64 [installed,automatic]  
shared libraries for terminal handling

libncurses5-dbg/bionic-updates 6.1-1ubuntu1.18.04 amd64  
debugging/profiling libraries for ncurses

libncurses5-dev/bionic-updates 6.1-1ubuntu1.18.04 amd64  
developer’s libraries for ncurses

libncursesada-doc/bionic,bionic 6.0.20170708-2 all  
Ada binding to the ncurses text interface library: documentation

libncursesada5/bionic 6.0.20170708-2 amd64  
Ada binding to the ncurses text interface library: shared library

libncursesada5-dev/bionic 6.0.20170708-2 amd64  
Ada binding to the ncurses text interface library: development

libncursesw5/bionic-updates,now 6.1-1ubuntu1.18.04 amd64 [installed,automatic]  
shared libraries for terminal handling (wide character support)

libncursesw5-dbg/bionic-updates 6.1-1ubuntu1.18.04 amd64  
debugging/profiling libraries for ncursesw

libncursesw5-dev/bionic-updates 6.1-1ubuntu1.18.04 amd64  
developer’s libraries for ncursesw

---

<div class="post-metadata">

### Author: ![Kirk\_Pennock](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kirk_pennock/32/1350_2.png) [@Kirk\_Pennock](https://discourse.cmake.org/u/Kirk_Pennock)
#### Post date: [April 7, 2021, 10:36pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/8 "2021-04-07T22:36:44Z")

</div>

The libncurses5-dev install and rebuild install did it thank you. Would be nice if the instructions text file mentioned that.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [April 8, 2021, 12:04am UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/9 "2021-04-08T00:04:35Z")

</div>

I’ve [opened an issue](https://gitlab.kitware.com/cmake/cmake/-/issues/22042). Note that for Debian and Ubuntu, we do provide up-to-date packages at [https://apt.kitware.com/](https://apt.kitware.com/)

---

<div class="post-metadata">

### Author: ![Kirk\_Pennock](https://discourse.cmake.org/user_avatar/discourse.cmake.org/kirk_pennock/32/1350_2.png) [@Kirk\_Pennock](https://discourse.cmake.org/u/Kirk_Pennock)
#### Post date: [April 8, 2021, 7:14pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/10 "2021-04-08T19:14:58Z")

</div>

Ok thanks

---

<div class="post-metadata">

### Author: ![tomoreilly](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@tomoreilly](https://discourse.cmake.org/u/tomoreilly)
#### Post date: [August 8, 2023, 5:43pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/11 "2023-08-08T17:43:47Z")

</div>

How exactly to enable ccmake build? I believe that on ubuntu ccmake would automatically be built if libncurses5-dev was already installed. That seems no longer the case with cmake-3.27.1 on ubuntu 20.04.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [August 8, 2023, 5:46pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/12 "2023-08-08T17:46:46Z")

</div>

There is also `-DBUILD_CursesDialog=ON` that is needed. I think it defaults based on finding curses, but that is only really done on the first configure, so installing it later won’t help.

---

<div class="post-metadata">

### Author: ![tomoreilly](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@tomoreilly](https://discourse.cmake.org/u/tomoreilly)
#### Post date: [August 8, 2023, 5:58pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/13 "2023-08-08T17:58:13Z")

</div>

> [@ben.boeckel](#):
>
> -DBUILD\_CursesDialog=ON

I tried

> make DBUILD\_CursesDialog=ON

But that didn’t build bin/ccmake. What am I missing?

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [August 8, 2023, 5:59pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/14 "2023-08-08T17:59:52Z")

</div>

Pass it to `cmake` when configuring the build, not the build tool.

---

<div class="post-metadata">

### Author: ![tomoreilly](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@tomoreilly](https://discourse.cmake.org/u/tomoreilly)
#### Post date: [August 8, 2023, 6:09pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/15 "2023-08-08T18:09:43Z")

</div>

> [@ben.boeckel](#):
>
> -DBUILD\_CursesDialog=ON

README.rst says run ‘./bootstrap’ then ‘make’. I try the following but get usage error:

> ./bootstrap -DBUILD\_CursesDialog=ON  
> Unknown option: -DBUILD\_CursesDialog=ON

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [August 8, 2023, 6:16pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/16 "2023-08-08T18:16:06Z")

</div>

Oh, you’re bootstrapping? You probably want a `--` before that. But that does does a clean build…autodetection should work. `./cmake -DBUILD_CursesDialog=ON .` after bootstrapping should also work.

---

<div class="post-metadata">

### Author: ![tomoreilly](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/t/439d5e/32.png) [@tomoreilly](https://discourse.cmake.org/u/tomoreilly)
#### Post date: [August 8, 2023, 6:27pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/17 "2023-08-08T18:27:54Z")

</div>

‘./bootstrap – -DBUILD\_CursesDialog=ON’ then ‘make’ works - thanks @ben.boeckel .  
Is this procedure documented somewhere in the cmake source download? I need ccmake for some third-party packages, took quite a while to figure out how to get it.

---

<div class="post-metadata">

### Author: ![ben.boeckel](https://discourse.cmake.org/letter_avatar_proxy/v4/letter/b/ea5d25/32.png) [@ben.boeckel](https://discourse.cmake.org/u/ben.boeckel)
#### Post date: [August 8, 2023, 7:53pm UTC](https://discourse.cmake.org/t/ccmake-ver-is-different-than-cmake/3096/18 "2023-08-08T19:53:39Z")

</div>

I’m not sure. Usually one uses a CMake packaged with their OS/distro of choice and only needs to compile it if they need to test bleeding edge development.
