|
|
|
|
|
Re: Whats the state of CMake Build Support ? [message #1790180 is a reply to message #1764479] |
Wed, 06 June 2018 14:19 |
Steven Clark Messages: 1 Registered: June 2018 |
Junior Member |
|
|
Hi everyone,
Executive summary:
- Intense plea for documentation.
- What and where is cmake-gui?
- How do I get Eclipse to know about Debug and Release configurations?
I've been programming Unix for decades and I finally decided to try an IDE. Eclipse seemed like the right one. In many ways I am amazed at its awesomeness!
I'm starting with a small project that builds with CMake and Ninja. I've spent days trying to figure out a good way to use Eclipse with a CMake project.
It took me over a day to figure out that "cmake4eclipse" and "CMake for CDT" are the same thing, but the new CMake support described in this email is something else. This new CMake support seems to me to be the most promising: it's under active development and it would have Eclipse builds invoking CMake and Ninja rather than Makefiles.
I don't know if it's my poor web searching skills, but I can't find ANY information on how to use this new feature. In Eclipse bug 174176, Doug Shafer writes "I'm going to mark this done. It is quite usable in it's current state." I beg to differ, a feature is not usable if other people don't have the information necessary to use it. (Apologies if I'm just being dense as to how to find it.)
The best information I found so far is in Eclipse bug 532419, in which Martin Oberhuber writes down the steps he took. Until I found that, I had no idea if I was doing the right thing. (I was.)
I am running Eclipse Oxygen.3a (4.7.3a) on Ubuntu 16.04.4. I did File->New->C++ Project and "Empty or Existing CMake Project". Somehow Eclipse figured out two things and I don't know where the information came from:
- I create a 'build' subdirectory, go there, and give the cmake command with '..' to pick up the CMakeLists.txt file.
- I use -G Ninja to tell CMake to generate Ninja files.
From Eclipse, I can click on the "build all" button and it runs CMake the way I want (if necessary) and then runs Ninja. This is great as far as it goes.
However Eclipse does not know about the standard Debug and Release configurations that CMake provides. I can't select a configuration and I can't create one.
The Project Properties->CMake panel contains nothing but a "Launch CMake GUI" button. Pressing it yields a pop-up stating that cmake-gui cannot be found.
Is the CMake GUI the same as ccmake? I hope not, since ccmake is less convenient than opening CMakeCache.txt in a text editor. Is the CMake GUI the tool that lets me inform Eclipse about my build configurations? If not, then what is?
Thank you for taking the time to read this.
Steve
|
|
|
|
|
Re: Whats the state of CMake Build Support ? [message #1795569 is a reply to message #1764479] |
Tue, 25 September 2018 11:26 |
Avarro mickllov Messages: 2 Registered: September 2018 |
Junior Member |
|
|
I'm mainly asking because I am trying to cross-compile libcurl using CMake
now, and am running into trouble (which I'm happy to discuss further in a
separate thread if needed). I'm not sure if I will even be able to succeed
using CMake, Torrent TurboTax Gogoanime first and foremost. If CMake support is still missing critical
features, I'll switch to using buildconf+configure to build curl, and
dismiss the CMake path for now. Otherwise, I'll start a thread detailing my
cross-compiler woes and debug further.
[Updated on: Wed, 26 September 2018 17:49] Report message to a moderator
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05525 seconds