Got the following error messages when running CMake under Windows 7.
System configuration: Win 7 + Visual Studio 2010 + CUDA 5.0 + CMake 2.8.12
It seems that CMake cannot find “windows.h”. Any idea how to fix this? Thanks!
The C compiler identification is MSVC 16.0.40219.1
The CXX compiler identification is MSVC 16.0.40219.1
Check for working C compiler using: Visual Studio 10
Check for working C compiler using: Visual Studio 10 -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler using: Visual Studio 10
Check for working CXX compiler using: Visual Studio 10 -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Found CUDA: C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v5.0 (Required is at least version "2.3")
Found OpenGL: opengl32
Generating dependencies for ambocc.cu
CMake Warning at CMake/FindCUDA.cmake:1393 (message):
Error (1) generating dependencies for ambocc.cu:
-- Generating dependency file:
D:/MonteCarlo/OptiX/Samples/ambocc/CMakeFiles/ambocc.dir//ambocc_generated_ambocc.cu.ptx.NVCC-depend
"C:/Program Files/NVIDIA GPU Computing Toolkit/CUDA/v5.0/bin/nvcc.exe" -M
-D__CUDACC__ "C:/ProgramData/NVIDIA Corporation/OptiX SDK
3.5.1/SDK/ambocc/ambocc.cu" -o
D:/MonteCarlo/OptiX/Samples/ambocc/CMakeFiles/ambocc.dir//ambocc_generated_ambocc.cu.ptx.NVCC-depend
-ccbin "C:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/bin" -m32
-D_USE_MATH_DEFINES -DNOMINMAX --use_fast_math --compiler-options
/D_USE_MATH_DEFINES -DNVCC "-IC:/Program Files/NVIDIA GPU Computing
Toolkit/CUDA/v5.0/include" "-IC:/ProgramData/NVIDIA Corporation/OptiX SDK
3.5.1/include" "-IC:/ProgramData/NVIDIA Corporation/OptiX SDK
3.5.1/SDK/sutil" "-IC:/ProgramData/NVIDIA Corporation/OptiX SDK
3.5.1/include/optixu" -ID:/MonteCarlo/OptiX/Samples "-IC:/Program
Files/NVIDIA GPU Computing Toolkit/CUDA/v5.0/include"
ambocc.cu
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\math_functions.h : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\math_functions.h(876) : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\math_functions.h(1846) : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\math_functions.h(2750) : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\math_functions.h(3698) : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\math_functions.h(4608) : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\math_functions.h(5503) : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\math_functions.h(6405) : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\math_functions.h(7317) : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\device_functions.h : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\device_functions.h(783) : warning C4819: The file
contains a character that cannot be represented in the current code page
(936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\device_functions.h(1662) : warning C4819: The
file contains a character that cannot be represented in the current code
page (936). Save the file in Unicode format to prevent data loss
c:\program files\nvidia gpu computing
toolkit\cuda\v5.0\include\sm_13_double_functions.h : warning C4819: The
file contains a character that cannot be represented in the current code
page (936). Save the file in Unicode format to prevent data loss
C:/ProgramData/NVIDIA Corporation/OptiX SDK 3.5.1/include\optix_world.h(54)
: fatal error C1083: Cannot open include file: 'windows.h': No such file or
directory
CMake Error at ambocc_generated_ambocc.cu.ptx.cmake:199 (message):
Error generating
D:/MonteCarlo/OptiX/Samples/lib/ptx/ambocc_generated_ambocc.cu.ptx
. This will be postponed until build time.
Call Stack (most recent call first):
CMakeLists.txt:247 (CUDA_WRAP_SRCS)
ambocc/CMakeLists.txt:23 (OPTIX_add_sample_executable)