Error compiling on Windows 10, Optix 7.3 #341
-
Hi,
Not sure if this is Visual Studio 2019 related or Optix related. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
To be able to help, further information about your compiler versions, cmake version, operating system, GPU(s), as well as full logs are required. |
Beta Was this translation helpful? Give feedback.
-
Hi @Tom94 and thank you for your reply and your amazing project, which I believe sets a milestone, if not a turning point, in the field of 3d representation from 2d images. Gratulieren und vielen Danke! I made it work with no issues on Ubuntu 18.04, but still struggling on Windows 10. My GPU is Nvidia Quadro GTX 5000 (16 Gb) and here is the output of the files build:
And this is the CMakeError.log: `Determining if the include file pthread.h exists failed with the following output: Run Build Command(s):C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/MSBuild/Current/Bin/MSBuild.exe cmTC_0e265.vcxproj /p:Configuration=Debug /p:Platform=x64 /p:VisualStudioVersion=16.0 /v:m && Microsoft (R) Build Engine version 16.11.2+f32259642 for .NET Framework Copyright (C) Microsoft Corporation. All rights reserved. Microsoft (R) C/C++ Optimizing Compiler Version 19.29.30141 for x64 Copyright (C) Microsoft Corporation. All rights reserved. CheckIncludeFile.c cl /c /Zi /W1 /WX- /diagnostics:column /Od /Ob0 /D WIN32 /D _WINDOWS /D "CMAKE_INTDIR="Debug"" /D _MBCS /Gm- /RTC1 /MDd /GS /fp:precise /Zc:wchar_t /Zc:forScope /Zc:inline /Fo"cmTC_0e265.dir\Debug\" /Fd"cmTC_0e265.dir\Debug\vc142.pdb" /external:W1 /Gd /TC /errorReport:queue "E:\dev\windows\instant-ngp\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c" E:\dev\windows\instant-ngp\build\CMakeFiles\CMakeTmp\CheckIncludeFile.c(1,10): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory [E:\dev\windows\instant-ngp\build\CMakeFiles\CMakeTmp\cmTC_0e265.vcxproj]` |
Beta Was this translation helpful? Give feedback.
-
@drperpen try clearing the cmake cache or removing/renaming the build folder and run the cmake commands to configure and build in a developer command line, if you aren't already using that. also pass in visual studio as the generated target solution by passing this to cmake while configuring:
CUDA extensions for building with Visual Studio are installed part of the CUDA installation if it finds the Visual Studio toolchain and other toolchains like Ninja may default to some MSVC version that didn't get that CUDA installer treatment. I have a feeling, it may be due cmake generating for another toolchain but more likely, the build environment not being set in command line. Default cmd doesn't set the env vars for building... You will have to search on windows for something like this instead of cmd |
Beta Was this translation helpful? Give feedback.
-
Actually, it is not related to Optix. I experience similar error with MS VS 19, CUDA 11.3 and Optix 7.4 After I upgrade CUDA to 11.6, the errors are gone |
Beta Was this translation helpful? Give feedback.
Actually, it is not related to Optix.
I experience similar error with MS VS 19, CUDA 11.3 and Optix 7.4
After I upgrade CUDA to 11.6, the errors are gone