local build misses ccmake on IBM cell ppc64

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

local build misses ccmake on IBM cell ppc64

Gao, Yi
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

I redo the source-configure-make on a normal x86_64 machine and I DO
have ccmake....

Could anyone gives me some clue on how I could get ccmake? Thanks!

The info about the machine is: running uname -a I get:
Linux cell13 2.6.25.14-108.20080910bsc.ppc64 #1 SMP Fri Sep 12
11:44:36 CEST 2008 ppc64 ppc64 ppc64 GNU/Linux

Running cat /proc/cpuinfo I get:

processor       : 0
cpu             : Cell Broadband Engine, altivec supported
clock           : 3200.000000MHz
revision        : 5.1 (pvr 0070 0501)

processor       : 1
cpu             : Cell Broadband Engine, altivec supported
clock           : 3200.000000MHz
revision        : 5.1 (pvr 0070 0501)

processor       : 2
cpu             : Cell Broadband Engine, altivec supported
clock           : 3200.000000MHz
revision        : 5.1 (pvr 0070 0501)

processor       : 3
cpu             : Cell Broadband Engine, altivec supported
clock           : 3200.000000MHz
revision        : 5.1 (pvr 0070 0501)

timebase        : 14318000
platform        : Cell
machine         : CHRP IBM,0200-250

-------------------------------------------------------------------------------------------
Thanks in advance!

Best,
yi
_______________________________________________
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 | Threaded
Open this post in threaded view
|

Re: local build misses ccmake on IBM cell ppc64

Bill Hoffman
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
_______________________________________________
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 | Threaded
Open this post in threaded view
|

Re: local build misses ccmake on IBM cell ppc64

Gao, Yi
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 <[hidden email]> 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
_______________________________________________
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 | Threaded
Open this post in threaded view
|

Re: local build misses ccmake on IBM cell ppc64

Gao, Yi
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 <[hidden email]> 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 <[hidden email]> 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
_______________________________________________
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 | Threaded
Open this post in threaded view
|

Re: local build misses ccmake on IBM cell ppc64

Bill Hoffman
Gao, Yi wrote:

> 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!
>

Sorry I did not get back to you, glad you got it working.  However, the
right way to do this would be to edit the CMakeCache.txt file in the
build tree of CMake and fill in the values for ncurses.   You should not
have to mess with compiler flags like that.  You can also try setting
this environment variable to
CMAKE_PREFIX_PATH /home/gaoyi/usr/local/.

See this blog entry :
http://www.kdedevelopers.org/node/3800


-Bill
_______________________________________________
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 | Threaded
Open this post in threaded view
|

Re: local build misses ccmake on IBM cell ppc64

Gao, Yi
Hi Bill,

Thanks for the CMAKE_PREFIX_PATH, it works perfect!

Best,
yi

On Wed, Dec 9, 2009 at 11:50 AM, Bill Hoffman <[hidden email]> wrote:

> Gao, Yi wrote:
>>
>> 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!
>>
>
> Sorry I did not get back to you, glad you got it working.  However, the
> right way to do this would be to edit the CMakeCache.txt file in the build
> tree of CMake and fill in the values for ncurses.   You should not have to
> mess with compiler flags like that.  You can also try setting this
> environment variable to
> CMAKE_PREFIX_PATH /home/gaoyi/usr/local/.
>
> See this blog entry :
> http://www.kdedevelopers.org/node/3800
>
>
> -Bill
>
_______________________________________________
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