<div dir="ltr">Sounds like you had a bad day.  Hope you have a better one tomorrow.</div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 9, 2017 at 2:40 AM, Xen <span dir="ltr"><<a href="mailto:list@xenhideout.nl" target="_blank">list@xenhideout.nl</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I just want to tell you what terrible software CMake is.<br>
<br>
The newest version won't compile on my system. The bootstrapping just won't complete.<br>
<br>
It hangs on 100% CPU while trying to link cmake. Maybe that is a deficit of this system.<br>
<br>
I take an older version but it needs ncurses. I have ncurses on the system but not the headers.<br>
<br>
The ncurses source package likes to install headers in a ncurses subdirectory. Fine.<br>
<br>
But Cmake can't find it.<br>
<br>
I specify --prefix=/opt/local.<br>
<br>
The headers are in /opt/local/include/ncurses.<br>
<br>
At first I find a reference to CURSES_INCLUDE_PATH but setting it as an environment variable doesn't do a thing.<br>
<br>
There is no help that I can find in the directory structure.<br>
<br>
The bootstrap command does not have any help builtin.<br>
<br>
I add CURSES_INCLUDE_PATH to Modules/FindCurse.cmake and it finds the header but now offset from /ncurses. This causes the header file itself to not find its other header files.<br>
<br>
The only directory it needs for that is /opt/local/include.<br>
<br>
I try to add CMAKE_INCLUDE_PATH on the command line.<br>
I try to add CMAKE_C_FLAGS on the command line.<br>
<br>
But the build system does not tell me what it's doing.<br>
<br>
So I am just endlessly waiting several minutes before it errors out again and I still don't know why or what would have helped, because it does not show me any command lines or directories it has seen fit to use.<br>
<br>
This goes on for hours.<br>
<br>
This is the first time I have come into contact with Cmake and apparently you need to be able to use CMake as a programmer for your own projects, before you can get started with cmake.<br>
<br>
Then again it errs out:<br>
<br>
/store/dev/cmake/Source/Curses<wbr>Dialog/form/form.h:40:20: error: curses.h: No such file or directory<br>
<br>
Oh, I added a colon as path separator and now it doesn't do anything anymore.<br>
<br>
So my mistake was to add ncurses at the end of the path but it's not like it should have failed using CMAKE_INCLUDE_PATH or CMAKE_C_FLAGS.<br>
<br>
Or even that it should not look in that location by default based on --prefix.<br>
<br>
At first I couldn't compile ncurses; apparently a bug in the system. I supplied the fix in CFLAGS but the Makefile of course did not pass it on to the file for which it mattered, so I had to even repeat that manually.<br>
<br>
Luckily GNU make shows you the command line.<br>
<br>
It took me 3 hours to compile version 2.4.0. The latest release candidate had been working all night and not proceeding.<br>
<br>
Then when I am finally done, it tells me it needs a newer version...<br>
<br>
Of course, it doesn't say so in the README.rst...<br>
<br>
I wish this endless waste of time would end.<br>
-- <br>
<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" rel="noreferrer" target="_blank">http://www.cmake.org/Wiki/CMak<wbr>e_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/su<wbr>pport.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/co<wbr>nsulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" rel="noreferrer" target="_blank">http://cmake.org/cmake/help/tr<wbr>aining.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensou<wbr>rce/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/cmake" rel="noreferrer" target="_blank">http://public.kitware.com/mail<wbr>man/listinfo/cmake</a><br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Andrew Bell<br><a href="mailto:andrew.bell.ia@gmail.com" target="_blank">andrew.bell.ia@gmail.com</a></div>
</div>