[CMake] local build misses ccmake on IBM cell ppc64

Gao, Yi gaoyi.cn at gmail.com
Tue Dec 8 18:24:06 EST 2009


Hi Bill,

Finally I made it work.... seems that by setting the environment vars:
CPPFLAGS, CXXFLAGS, LDFLAGS, and LD_LIBRARY_PATH (I haven't made sure
which actually do the work and which are redundant, so I just th ),
configure will find the ncurses in local dir:
/home/gaoyi/usr/local/include/ncurses. So it will ask the subsequent
make process to make ccmake. However, during make, the
ncurses/ncurses.h is not found when compiling
Source/CurseDialog/form/form.h

After trying different things, finally I just copy ncurses/ dir under
Source/CurseDialog/form/

which finally solve the problem.... the libs are correctly linked
which means the ld is working correctly...

ok I can use ccmake now.

Thanks for your suggestions!

Best,
yi



On Tue, Dec 8, 2009 at 5:00 PM, Gao, Yi <gaoyi.cn at gmail.com> wrote:
> Hi Bill,
>
> Thanks for pointing that out! Following the direction, I downloaded
> ncurses-5.7.tar.gz
> I untared it, and in its directory I do:
> ./configure --prefix=/home/gaoyi/usr/local      (since I don't have
> permission for paths other than my home dir)
> make
> make install
>
> I can see ncurses is in /home/gaoyi/usr/local/include and
> /home/gaoyi/usr/local/lib
>
> (The problem may not be specific to build cmake, but I would very
> appreciate if you could give me some hint on that since that will
> permanently solve my problem on library dependency....)
>
> Then I come back to cmake source dir, and do (I'm using bash)
> export CPPFLAGS=-I/home/gaoyi/usr/local/include
> export CFLAGS=-I/home/gaoyi/usr/local/include
> export LDFLAGS=-L/home/gaoyi/usr/local/lib
> ./configure --prefix=/home/gaoyi/usr/local
> make
>
> Then I see the error messages saying "ncurses/ncurses.h: No such file
> or directory" like:
> In file included from
> /home/gaoyi/usr/package/build/cmake-2.8.0/Source/CursesDialog/form/form.priv.h:34,
>                 from
> /home/gaoyi/usr/package/build/cmake-2.8.0/Source/CursesDialog/form/fld_arg.c:33:
> /home/gaoyi/usr/package/build/cmake-2.8.0/Source/CursesDialog/form/form.h:46:31:
> error: ncurses/ncurses.h: No such file or directory
>
>
> I googled but the only things I found was the evn vars which I already
> set. Could I have any hints?
>
> Thanks very much!
>
> Best,
> yi
>
>
>
> On Tue, Dec 8, 2009 at 4:23 PM, Bill Hoffman <bill.hoffman at kitware.com> wrote:
>> Gao, Yi wrote:
>>>
>>> Hi,
>>>
>>> I was trying to use a IBM cell machine to run some of my code, first
>>> of which I need to set up CMake on it.
>>>
>>> I downloaded all binary releases on cmake download page, but they
>>> don't work. Giving me a "cannot execute binary file" error. This is
>>> fine because the system seems to be not usual.
>>>
>>> Then I download the unix source and configure and make. I got
>>> executable cmake, but NOT ccmake
>>>
>>
>> You need to make sure you have a curses development package installed. CMake
>> needs to find the curses header files and libraries in order to build
>> ccmake.
>>
>> -Bill
>>
>
>
>
> --
> Yi Gao
> Graduate Student
> Dept. Biomedical Engineering
> Georgia Institute of Technology
>



-- 
Yi Gao
Graduate Student
Dept. Biomedical Engineering
Georgia Institute of Technology


More information about the CMake mailing list