Open this file in your text editor, and edit the following lines to enable the qt ui (I found these by searching for qt). That will, among other things, place a file named CMakeCache.txt in your build folder. git clone the cmake sources from their git repository to somewhere (e.g., your home directory). I think Qt might be available through apt, but for my purposes I needed the full download for another project, so I had it here anyway.Ģ. This installation process will take a while. I installed Qt to a folder named Qt in my home directory. You'll need to make an account with Qt to download the installer using this method the account is free for open source users (which you are if you are using this to just build cmake for your own use if you plan on using Qt for anything else you should verify if you can use this version). In my case, I selected the latest version of 5.12 (at the time of writing, 5.12.7) and I installed it with all default settings. Install Qt (if you don't have it already)ĭownload the installer from Qt's website. You might normally do this through the UI, but it's also possible to set these variables by manually editing CMakeCache.txt in the build directory, which is what I will show how to do in this answer.ĬMake requires Qt, but it can't find it automatically, one of the things we need to do is show where the Qt CMake scripts are.ġ. To build cmake with cmake-gui, it's necessary to set some variables in the cmake build script. In this particular process I decided to configure the latest version of cmake, with the apt version of cmake (sorry if this is confusing).Ĭmake-gui is compiled with the same repository as the cmake command line tool, but the default build configuration for cmake is not set up to build cmake-gui (neither the curses interface or the Qt interface).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |