[CMake] FW: cmake newbie questions

Phil Smith phil at voltage.com
Wed Jul 30 20:29:40 EDT 2008


I found cmakeerror.log, which helped me get past the FAILED errors. But now I'm back to the "Could not COPY FILE" errors:

----------------------------------
zcmake.bat
-- Looking for sys/types.h
-- Looking for sys/types.h - found
-- Looking for stdint.h
-- Looking for stdint.h - found
-- Looking for stddef.h
-- Looking for stddef.h - not found
-- Check size of unsigned long long
CMake Error: Could not COPY_FILE
CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CheckTypeSize.cmake:77 (FILE):
  file STRINGS file "C:/Documents and Settings/Voltage/svn/Toolkit/trunk/vtk-core/CMakeFiles/CheckTypeSize.bin" cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:118 (check_type_size)

-- Check size of unsigned long long - done
-- Check size of unsigned long
CMake Error: Could not COPY_FILE
CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CheckTypeSize.cmake:77 (FILE):
  file STRINGS file "C:/Documents and Settings/Voltage/svn/Toolkit/trunk/vtk-core/CMakeFiles/CheckTypeSize.bin" cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:119 (check_type_size)

-- Check size of unsigned long - done
-- Check size of unsigned int
CMake Error: Could not COPY_FILE
CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CheckTypeSize.cmake:77 (FILE):
  file STRINGS file "C:/Documents and Settings/Voltage/svn/Toolkit/trunk/vtk-core/CMakeFiles/CheckTypeSize.bin" cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:120 (check_type_size)

-- Check size of unsigned int - done
-- Check size of unsigned short
CMake Error: Could not COPY_FILE
CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CheckTypeSize.cmake:77 (FILE):
  file STRINGS file "C:/Documents and Settings/Voltage/svn/Toolkit/trunk/vtk-core/CMakeFiles/CheckTypeSize.bin" cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:121 (check_type_size)

-- Check size of unsigned short - done
-- Check size of long long
CMake Error: Could not COPY_FILE
CMake Error at C:/Program Files/CMake 2.6/share/cmake-2.6/Modules/CheckTypeSize.cmake:77 (FILE):
  file STRINGS file "C:/Documents and Settings/Voltage/svn/Toolkit/trunk/vtk-core/CMakeFiles/CheckTypeSize.bin" cannot be read.
Call Stack (most recent call first):
  CMakeLists.txt:122 (check_type_size)

-- Check size of long long - done
-- Configuring done
----------------------------------

And I have NO clue that those mean.

...phsiii (fumbling towards (?) ecstasy...)
-----Original Message-----
From: cmake-bounces at cmake.org [mailto:cmake-bounces at cmake.org] On Behalf Of Phil Smith
Sent: Wednesday, July 30, 2008 3:02 PM
To: Bill Hoffman
Cc: Cmake Mailing List
Subject: Re: [CMake] FW: cmake newbie questions

>Failing on check size of is not a good thing, and I would track that
>down if I were you...

Any clues how to do that?  I see this in CMakeCache.txt:

HAVE_SIZEOF_LONG_LONG:INTERNAL=FALSE
HAVE_SIZEOF_UNSIGNED_INT:INTERNAL=FALSE
HAVE_SIZEOF_UNSIGNED_LONG:INTERNAL=FALSE
HAVE_SIZEOF_UNSIGNED_LONG_LONG:INTERNAL=FALSE
HAVE_SIZEOF_UNSIGNED_SHORT:INTERNAL=FALSE
//Result of CHECK_TYPE_SIZE
SIZEOF_LONG_LONG:INTERNAL=
//Result of CHECK_TYPE_SIZE
SIZEOF_UNSIGNED_INT:INTERNAL=
//Result of CHECK_TYPE_SIZE
SIZEOF_UNSIGNED_LONG:INTERNAL=
//Result of CHECK_TYPE_SIZE
SIZEOF_UNSIGNED_LONG_LONG:INTERNAL=
//Result of CHECK_TYPE_SIZE
SIZEOF_UNSIGNED_SHORT:INTERNAL=

...but that's about it.
-----Original Message-----
From: Bill Hoffman [mailto:bill.hoffman at kitware.com]
Sent: Wednesday, July 30, 2008 2:04 PM
To: Phil Smith
Cc: Cmake Mailing List
Subject: Re: [CMake] FW: cmake newbie questions

Phil Smith wrote:
> But then it complains that there's no CMakeLists.txt in the
> directory.
Anyway, I wasn't clear: the same person isn't likely to be doing z/OS
and Windows on the same machine. But since the same CMakeLists.txt is to
be used, I didn't want to hard-code anything in there. I've changed to
-G -- somehow I missed that before (I did look, honest!).
>

You really want out of source builds.   You have to give the path to the
source tree.  First make sure the source tree you are working on has not
had cmake run on it (no CMakeCache.txt, or other generated files).
Then, you do this:

cmake -G"Unix Makefiles" ../path/to/your/source

Note, the ../path/to/your/source.  That is important.



>
> Now, I'm sort of inclined to declare victory for now. But should I?
Are those "failed" messages significant? I was brought up not to ignore
errors without understanding them!


Failing on check size of is not a good thing, and I would track that
down if I were you...

-Bill
_______________________________________________
CMake mailing list
CMake at cmake.org
http://www.cmake.org/mailman/listinfo/cmake


More information about the CMake mailing list