[vtk-developers] Reg: VTK , CMAKE and Windows 7
alagarajaR
alagarajar at gmail.com
Tue Oct 22 12:55:31 EDT 2013
Hi ,
I am new to VTK development. I am trying to build the VTK Source in Windows
7 PC for Visual Studio 2008/2010 Environment. I was not lucky enough
I have downloaded CMake 2.8 and have also download VTK 6.0.0 Source. I tried
to set both Source and Binaries Directories. When I click on Configure to om
CMake i get the following error.
*CMake Error at
I:/CMake28/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446
(execute_process):
execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
I:/CMake28/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48
(CMAKE_DETERMINE_COMPILER_ID_VENDOR)
I:/CMake28/share/cmake-2.8/Modules/CMakeDetermineCCompiler.cmake:131
(CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:3 (project)*
The C compiler identification is unknown
CMake Error at
I:/CMake28/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:446
(execute_process):
execute_process given COMMAND argument with no value.
Call Stack (most recent call first):
I:/CMake28/share/cmake-2.8/Modules/CMakeDetermineCompilerId.cmake:48
(CMAKE_DETERMINE_COMPILER_ID_VENDOR)
I:/CMake28/share/cmake-2.8/Modules/CMakeDetermineCXXCompiler.cmake:127
(CMAKE_DETERMINE_COMPILER_ID)
CMakeLists.txt:3 (project)
The CXX compiler identification is unknown
Performing Test Support for 64 bit file systems
CMake Error at
I:/CMake28/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37
(get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Performing Test Support for 64 bit file systems - Failed
Performing Test VTK_CONST_REVERSE_ITERATOR_COMPARISON
CMake Error at
I:/CMake28/share/cmake-2.8/Modules/CMakeCXXInformation.cmake:37
(get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Performing Test VTK_CONST_REVERSE_ITERATOR_COMPARISON - Failed
Check if the system is big endian
Searching 16 bit integer
Looking for sys/types.h
CMake Error at I:/CMake28/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
(get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Looking for sys/types.h - not found
Looking for stdint.h
CMake Error at I:/CMake28/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
(get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Looking for stdint.h - not found
Looking for stddef.h
CMake Error at I:/CMake28/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
(get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Looking for stddef.h - not found
Check size of unsigned short
CMake Error at I:/CMake28/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
(get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Check size of unsigned short - failed
Check size of unsigned int
CMake Error at I:/CMake28/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
(get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Check size of unsigned int - failed
Check size of unsigned long
CMake Error at I:/CMake28/share/cmake-2.8/Modules/CMakeCInformation.cmake:37
(get_filename_component):
get_filename_component called with incorrect number of arguments
Call Stack (most recent call first):
CMakeLists.txt:3 (PROJECT)
CMake Error: Internal CMake error, TryCompile configure of cmake failed
Check size of unsigned long - failed
CMake Error at I:/CMake28/share/cmake-2.8/Modules/TestBigEndian.cmake:44
(message):
no suitable type found
Call Stack (most recent call first):
CMakeLists.txt:202 (TEST_BIG_ENDIAN)
Configuring incomplete, errors occurred!
See also "J:/Ebooks/VTK6/VTK_bin/CMakeFiles/CMakeOutput.log".
See also "J:/Ebooks/VTK6/VTK_bin/CMakeFiles/CMakeError.log".
When I went through to CMakeError.log, I get the following error
Compiling the C compiler identification source file "CMakeCCompilerId.c"
failed.
Compiler:
Build flags:
Id flags:
The output was:
1
Microsoft (R) Visual Studio Version 9.0.21022.8.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: CompilerIdC, Configuration: Debug Win32
------
1>Compiling...
1>CMakeCCompilerId.c
1>.\CMakeCCompilerId.c : fatal error C1074: 'IDB' is illegal extension for
PDB file:
1>Build log was saved at
"file://j:\Ebooks\VTK6\VTK_bin\CMakeFiles\2.8.12\CompilerIdC\Debug\BuildLog.htm"
1>CompilerIdC - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Checking whether the C compiler is IAR using "" did not match "IAR .+
Compiler":
Compiling the CXX compiler identification source file
"CMakeCXXCompilerId.cpp" failed.
Compiler:
Build flags:
Id flags:
The output was:
1
Microsoft (R) Visual Studio Version 9.0.21022.8.
Copyright (C) Microsoft Corp. All rights reserved.
1>------ Build started: Project: CompilerIdCXX, Configuration: Debug Win32
------
1>Compiling...
1>CMakeCXXCompilerId.cpp
*1>.\CMakeCXXCompilerId.cpp : fatal error C1074: 'IDB' is illegal extension
for PDB file:
*1>Build log was saved at
"file://j:\Ebooks\VTK6\VTK_bin\CMakeFiles\2.8.12\CompilerIdCXX\Debug\BuildLog.htm"
1>CompilerIdCXX - 1 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
Checking whether the CXX compiler is IAR using "" did not match "IAR .+
Compiler":
Performing C++ SOURCE FILE Test Support for 64 bit file systems failed with
the following output:
Source file was:
#define _LARGEFILE_SOURCE
#define _LARGE_FILES
#define _FILE_OFFSET_BITS 64
#include <sys/types.h>
#include <sys/stat.h>
#include <assert.h>
#include <stdio.h>
int main( int, char **argv )
{
// check that off_t can hold 2^63 - 1 and perform basic operations...
#define OFF_T_64 (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
if (OFF_T_64 % 2147483647 != 1)
return 1;
// stat breaks on SCO OpenServer
struct stat buf;
stat( argv[0], &buf );
if (!S_ISREG(buf.st_mode))
return 2;
FILE *file = fopen( argv[0], "r" );
off_t offset = ftello( file );
fseek( file, offset, SEEK_CUR );
fclose( file );
return 0;
}
Performing C++ SOURCE FILE Test VTK_CONST_REVERSE_ITERATOR_COMPARISON failed
with the following output:
Source file was:
#include <vector>
int main()
{
std::vector<int> test;
std::vector<int>::const_reverse_iterator it = test.rbegin();
it != test.rend();
return 0;
}
Determining if the include file sys/types.h exists failed with the following
output:
Determining if the include file stdint.h exists failed with the following
output:
Determining if the include file stddef.h exists failed with the following
output:
Determining size of unsigned short failed with the following output:
J:/Ebooks/VTK6/VTK_bin/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_SHORT.c:
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif
#define SIZE (sizeof(unsigned short))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
Determining size of unsigned int failed with the following output:
J:/Ebooks/VTK6/VTK_bin/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_INT.c:
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif
#define SIZE (sizeof(unsigned int))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
Determining size of unsigned long failed with the following output:
J:/Ebooks/VTK6/VTK_bin/CMakeFiles/CheckTypeSize/CMAKE_SIZEOF_UNSIGNED_LONG.c:
#undef KEY
#if defined(__i386)
# define KEY '_','_','i','3','8','6'
#elif defined(__x86_64)
# define KEY '_','_','x','8','6','_','6','4'
#elif defined(__ppc__)
# define KEY '_','_','p','p','c','_','_'
#elif defined(__ppc64__)
# define KEY '_','_','p','p','c','6','4','_','_'
#endif
#define SIZE (sizeof(unsigned long))
char info_size[] = {'I', 'N', 'F', 'O', ':', 's','i','z','e','[',
('0' + ((SIZE / 10000)%10)),
('0' + ((SIZE / 1000)%10)),
('0' + ((SIZE / 100)%10)),
('0' + ((SIZE / 10)%10)),
('0' + (SIZE % 10)),
']',
#ifdef KEY
' ','k','e','y','[', KEY, ']',
#endif
'\0'};
#ifdef __CLASSIC_C__
int main(argc, argv) int argc; char *argv[];
#else
int main(int argc, char *argv[])
#endif
{
int require = 0;
require += info_size[argc];
(void)argv;
return require;
}
After going through various FORUMS, i have also disabled Windows XP
Compactiblity in My PC. Nothing seems to work. I really stuck on the build.
It would be great if you guys could help me out.
--
View this message in context: http://vtk.1045678.n5.nabble.com/Reg-VTK-CMAKE-and-Windows-7-tp5724062.html
Sent from the VTK - Dev mailing list archive at Nabble.com.
More information about the vtk-developers
mailing list