<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:12pt"><div><span>Thanks. What it is apparently doing is including the argument: -I/home/***/local/include/ncurses. It should be -I/home/***/local/include. I'm not sure why it generates the former during the bootstrap/configuration phase.<br></span></div><div><br><span></span></div><div><span>The problem variable is the following in the CMakeCache.txt file:</span></div><div><span>//The curses include path<br>CURSES_INCLUDE_PATH:FILEPATH=/home/***/local/include/ncurses</span></div><div><br><span></span></div><div><span>I had to remove "ncurses" from that line. Not a permanent solution because the bootstrap will just generate that line each time. It compiles with this custom fix though.<br></span></div><div><br><span></span></div><div><span>Sohail<br></span></div><div><br></div> <div style="font-family: arial, helvetica, sans-serif;
font-size: 12pt;"> <div style="font-family: times new roman, new york, times, serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1"> <b><span style="font-weight:bold;">From:</span></b> Andreas Pakulat <apaku@gmx.de><br> <b><span style="font-weight: bold;">To:</span></b> Sohail Shafii <sohailshafii@yahoo.com> <br><b><span style="font-weight: bold;">Cc:</span></b> "cmake@cmake.org" <cmake@cmake.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Monday, June 25, 2012 3:32 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Re: [CMake] Trying to compile cmake with local copy of ncurses library<br> </font> </div> <br>
<meta http-equiv="x-dns-prefetch-control" content="off"><div id="yiv1930204677">Hi,<br><br><div class="yiv1930204677gmail_quote">On Mon, Jun 25, 2012 at 11:25 PM, Sohail Shafii <span dir="ltr"><<a rel="nofollow" ymailto="mailto:sohailshafii@yahoo.com" target="_blank" href="mailto:sohailshafii@yahoo.com">sohailshafii@yahoo.com</a>></span> wrote:<br><blockquote class="yiv1930204677gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="font-size:12pt;font-family:arial, helvetica, sans-serif;"><div>Hi,</div><div><br></div><div>[ 49%] Building C object Source/CursesDialog/form/CMakeFiles/cmForm.dir/fld_arg.c.o<br>In file included from /home/***/src/cmake-2.8.8/Source/CursesDialog/form/form.priv.h:34,<br>
from
/home/***/src/cmake-2.8.8/Source/CursesDialog/form/fld_arg.c:33:<br>/home/***/src/cmake-2.8.8/Source/CursesDialog/form/form.h:46:31: error: ncurses/ncurses.h: No such file or directory<br></div><div><br></div><div>This is unusual to me because in the CmakeCache text file I see the exact location of the file listed for the CURSES_HAVE_NCURSES_CURSES_H:FILEPATH variable. </div>
</div></div></blockquote><div><br></div><div>When you encounter compile errors such as the above, run make VERBOSE=1 to see what the actual compiler commandline is. If that one is missing the path you think should be there and since your cmake is not built yet, I'd suggest to trace down how the include-dirs for ncurses end up being given to the target.</div>
<div><br></div><div>Andreas</div></div><br>
</div><meta http-equiv="x-dns-prefetch-control" content="on"><br><br> </div> </div> </div></body></html>