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.


The problem variable is the following in the CMakeCache.txt file:
//The curses include path
CURSES_INCLUDE_PATH:FILEPATH=/home/***/local/include/ncurses

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.


Sohail



________________________________
 From: Andreas Pakulat <ap...@gmx.de>
To: Sohail Shafii <sohailsha...@yahoo.com> 
Cc: "cmake@cmake.org" <cmake@cmake.org> 
Sent: Monday, June 25, 2012 3:32 PM
Subject: Re: [CMake] Trying to compile cmake with local copy of ncurses library
 

Hi,


On Mon, Jun 25, 2012 at 11:25 PM, Sohail Shafii <sohailsha...@yahoo.com> wrote:

Hi,
>
>
>[ 49%] Building C object 
>Source/CursesDialog/form/CMakeFiles/cmForm.dir/fld_arg.c.o
>In file included from 
>/home/***/src/cmake-2.8.8/Source/CursesDialog/form/form.priv.h:34,
>                 from
 /home/***/src/cmake-2.8.8/Source/CursesDialog/form/fld_arg.c:33:
>/home/***/src/cmake-2.8.8/Source/CursesDialog/form/form.h:46:31: error: 
>ncurses/ncurses.h: No such file or directory
>
>
>
>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. 

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.

Andreas
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to