[Cmake] cmake_help

Bill Hoffman bill.hoffman at kitware.com
Wed Dec 19 13:40:18 EST 2001


You are running cmake in the wrong directory for the Example project.

This should work:
cd ~/Python/CMake-1-0/Tests/CMakeExample
cmake
make


Should being the key word.  The example seems to have some bad
c++ in it.   Nothing wrong with the build process or cmake, but
the hello.h has a #include <ostream> that should be #include <iostream>

-Bill


At 12:29 AM 12/19/2001 -0500, Karshi Hasanov wrote:

>Hi all,
>
>  I am a new to CMake, and having problems running simple examples.
>Can you tell what I've done wrong here:
>--------------------------------------------------------------------------
>khasanov at compton:~/Python/CMake-1-0/Tests/CMakeExample/Demo> cmake
>running cd /home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo; 
>/usr/local/share/CMake/Templates/configure
>creating cache ./config.cache
>checking for gcc... gcc
>checking whether the C compiler (gcc  ) works... yes
>checking whether the C compiler (gcc  ) is a cross-compiler... no
>checking whether we are using GNU C... yes
>checking whether gcc accepts -g... yes
>checking for c++... c++
>checking whether the C++ compiler (c++  ) works... yes
>checking whether the C++ compiler (c++  ) is a cross-compiler... no
>checking whether we are using GNU C++... yes
>checking whether c++ accepts -g... yes
>checking for ranlib... ranlib
>checking for a BSD compatible install... /usr/bin/install -c
>checking how to run the C preprocessor... gcc -E
>checking for X... libraries /usr/X11R6/lib, headers /usr/X11R6/include
>checking for dnet_ntoa in -ldnet... no
>checking for dnet_ntoa in -ldnet_stub... no
>checking for gethostbyname... yes
>checking for connect... yes
>checking for remove... yes
>checking for shmat... yes
>checking for IceConnectionNumber in -lICE... yes
>checking whether byte ordering is bigendian... no
>checking for limits.h... yes
>checking for unistd.h... yes
>checking system version (for dynamic loading)... Linux-2.4.10-4GB
>checking for dlopen in -ldl... yes
>checking for sys/prctl.h... yes
>checking for pthread.h... yes
>checking for pthread_create in -lpthreads... no
>checking for pthread_create in -lpthread... yes
>checking for gmake... /usr/bin/gmake
>checking for ar... /usr/bin/ar
>updating cache ./config.cache
>creating ./config.status
>creating CMakeSystemConfig.cmake
>cmake: creating : 
>/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo/Makefile
>khasanov at compton:~/Python/CMake-1-0/Tests/CMakeExample/Demo> ls
>CMakeCache.txt  CMakeSystemConfig.cmake  config.cache  config.status  
>demo_b.cxx
>CMakeLists.txt  Makefile                 config.log    demo.cxx
>khasanov at compton:~/Python/CMake-1-0/Tests/CMakeExample/Demo> make
>make - cmake.depends
>make[1]: Entering directory 
>`/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo'
>/usr/local/bin/cmake 
>-S/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo 
>-O/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo 
>-H/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo 
>-B/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo
>make[1]: Leaving directory 
>`/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo'
>make - all
>make[1]: Entering directory 
>`/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo'
>c++ -g -O2 -I/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo -I/Hello 
>  -c /home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo/demo.cxx -o 
>demo.o
>/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo/demo.cxx:2: hello.h: 
>No such file or directory
>make[1]: *** [demo.o] Error 1
>make[1]: Leaving directory 
>`/home/khasanov/Python/CMake-1-0/Tests/CMakeExample/Demo'
>make: *** [default_target] Error 2
>---------------------------------------------------------------------------------------------
>Thanks
>_______________________________________________
>Cmake mailing list
>Cmake at public.kitware.com
>http://public.kitware.com/mailman/listinfo/cmake 




More information about the CMake mailing list