mmp / pbrt-v4

Source code to pbrt, the ray tracer described in the forthcoming 4th edition of the "Physically Based Rendering: From Theory to Implementation" book.
https://pbrt.org
Apache License 2.0
2.83k stars 440 forks source link

build pbrt in Windows with CUDA errors #421

Closed For-Chance closed 6 months ago

For-Chance commented 6 months ago

I built pbrt v4 in Windows with response as follows. I am not sure whether it can work because it tell me some libraries can not be founded and CUDA not found

Selecting Windows SDK version 10.0.20348.0 to target Windows 10.0.19045.
The CXX compiler identification is MSVC 19.37.32825.0
The C compiler identification is MSVC 19.37.32825.0
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Check for working CXX compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
Detecting CXX compile features
Detecting CXX compile features - done
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working C compiler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe - skipped
Detecting C compile features
Detecting C compile features - done
Found Git: C:/Program Files/Git/cmd/git.exe (found version "2.30.0.windows.2") 
OpenEXR at commit: 5cfb5dab6dfada731586b0281bdb15ee75e26782
OpenVDB at commit: 414bed84c2fc22e188eac7b611aa85c7edd7a5a9
Ptex at commit: 4cd8e9a6db2b06e478dfbbd8c26eb6df97f84483
double-conversion at commit: cc1f75a114aca8d2af69f73a5a959aecbab0e87a
filesystem at commit: c5f9de30142453eb3c6fe991e82dfc2583373116
glfw at commit: 4cb36872a5fe448c205d0b46f0e8c8b57530cfe0
libdeflate at commit: 1fd0bea6ca2073c68493632dafc4b1ddda1bcbc3
lodepng at commit: 8c6a9e30576f07bf470ad6f09458a2dcd7a6a84a
qoi at commit: 028c75fd26e5e0758c7c711216c00404994c1ad3
stb at commit: af1a5bc352164740c1cc1354942b1c6b72eacb8a
utf8proc at commit: 2484e2ed5e1d9c19edcccf392a7d9920ad90dfaf
zlib at commit: 54d591eabf9fe0e84c725638f8d5d8d202a093fa
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE  
Found OpenGL: opengl32   
The ASM compiler identification is MSVC
Found assembler: C:/Program Files/Microsoft Visual Studio/2022/Community/VC/Tools/MSVC/14.37.32822/bin/Hostx64/x64/cl.exe
CMake Warning (dev) at src/ext/libdeflate/CMakeLists.txt:12 (option):
  Policy CMP0077 is not set: option() honors normal variables.  Run "cmake
  --help-policy CMP0077" for policy details.  Use the cmake_policy command to
  set the policy and suppress this warning.

  For compatibility with older versions of CMake, option is clearing the
  normal variable 'BUILD_SHARED_LIBS'.
This warning is for project developers.  Use -Wno-dev to suppress it.

Performing Test DEFLATE_LINT_WALL
Performing Test DEFLATE_LINT_WALL - Success
Performing Test DEFLATE_LINT_WUNDEF
Performing Test DEFLATE_LINT_WUNDEF - Failed
Performing Test DEFLATE_LINT_PEDANTIC
Performing Test DEFLATE_LINT_PEDANTIC - Failed
Performing Test DEFLATE_LINT_DECLARATION_AFTER_STATEMENT
Performing Test DEFLATE_LINT_DECLARATION_AFTER_STATEMENT - Failed
Performing Test DEFLATE_LINT_MISSING_PROTOTYPES
Performing Test DEFLATE_LINT_MISSING_PROTOTYPES - Failed
Performing Test DEFLATE_LINT_STRICT_PROTOTYPES
Performing Test DEFLATE_LINT_STRICT_PROTOTYPES - Failed
Performing Test DEFLATE_LINT_VLA
Performing Test DEFLATE_LINT_VLA - Failed
Performing Test DEFLATE_LINT_IMPLICIT_FALLTHROUGH
Performing Test DEFLATE_LINT_IMPLICIT_FALLTHROUGH - Failed
Found ZLIB: C:/ProgramData/Anaconda3/Library/lib/z.lib (found version "1.2.11") 
Could NOT find Imath (missing: Imath_DIR)
Could NOT find IlmBase (missing: IlmBase_DIR)
Could NOT find OpenEXR (missing: OpenEXR_DIR)
Could NOT find PkgConfig (missing: PKG_CONFIG_EXECUTABLE) 
Could NOT find OpenEXR: Found unsuitable version "1.6.1", but required is at least "2.3" (found ILMBASE_INCLUDE_PATH-NOTFOUND)
OpenEXR not found; building it from scratch.
Configure ILMBASE Version: 2.5.3 Lib API: 25.0.2
Looking for include file ucontext.h
Looking for include file ucontext.h - not found
-- WARNING pkg-config generation disabled
Configure OpenEXR Version: 2.5.3 Lib API: 25.0.2
Performing Test OPENEXR_IMF_HAVE_SYSCONF_NPROCESSORS_ONLN
Performing Test OPENEXR_IMF_HAVE_SYSCONF_NPROCESSORS_ONLN - Failed
Performing Test OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX
Performing Test OPENEXR_IMF_HAVE_GCC_INLINE_ASM_AVX - Failed
clang-format not found.
CMake Deprecation Warning at src/ext/ptex/CMakeLists.txt:1 (cmake_minimum_required):
  Compatibility with CMake < 2.8.12 will be removed from a future version of
  CMake.

  Update the VERSION argument <min> value or use a ...<max> suffix to tell
  CMake that the project does not need compatibility with older versions.

Found Doxygen: C:/Program Files/doxygen/bin/doxygen.exe (found version "1.10.0 (ebc57c6dd303a980bd19dd74b8b61c8f3f5180ca)") found components: doxygen missing components: dot
Including Win32 support
Unable to find -lprofiler
Looking for a CUDA compiler
Looking for a CUDA compiler - NOTFOUND
CUDA not found
Performing Test COMPILER_SUPPORTS_MARCH_NATIVE
Performing Test COMPILER_SUPPORTS_MARCH_NATIVE - Failed
Performing Test HAVE_MMAP
Performing Test HAVE_MMAP - Failed
Performing Test HAS_INTRIN_H
Performing Test HAS_INTRIN_H - Success
Performing Test HAVE_DECLSPEC_NOINLINE
Performing Test HAVE_DECLSPEC_NOINLINE - Success
Performing Test HAVE_ATTRIBUTE_NOINLINE
Performing Test HAVE_ATTRIBUTE_NOINLINE - Failed
Performing Test HAVE_PRE_POST_BAR_RESTRICT
Performing Test HAVE_PRE_POST_BAR_RESTRICT - Failed
Performing Test HAVE_PRE_BAR_RESTRICT
Performing Test HAVE_PRE_BAR_RESTRICT - Success
Performing Test HAVE__ALIGNED_MALLOC
Performing Test HAVE__ALIGNED_MALLOC - Success
Performing Test HAVE_POSIX_MEMALIGN
Performing Test HAVE_POSIX_MEMALIGN - Failed
Performing Test INT64_IS_OWN_TYPE
Performing Test INT64_IS_OWN_TYPE - Failed
Configuring done
Generating done
mmp commented 6 months ago

Those failures are fine; they're just various details of your compilers that pbrt (or other software it includes) has to handle one way or another.

How have you installed CUDA? pbrt just uses cmake's standard features for finding CUDA, so searching for "cmake can't find cuda installation" is probably your best bet if it isn't finding it.

For-Chance commented 6 months ago

Thanks. It's be worked out after I reinstalled CMake. Maybe it's because there are multi versions of CUDA in my computer.

hojjunekim commented 6 months ago

Dooray! 메일 발송 실패 안내

메일 발송 실패 안내

@.***) 님께 보낸 메일이 전송되지 못하였습니다.

      실패 사유를 확인해보세요.

        * 받는 사람 : 

@.***)

        * 발송 시간 : 

2024-03-28T21:11:22

        * 메일 제목 : 

Re: [mmp/pbrt-v4] build pbrt in Windows with CUDA errors (Issue #421)

            * 실패 사유 : 

대외비/기밀 메일은 외부 계정으로 발송이 제한되어 일부 메일 발송 실패(수신자가 전달 설정한 경우 포함)

      이 메일은 발신전용으로 회신되지 않습니다.
      더 궁금하신 사항은
      ***@***.***
      으로 문의해 주시기 바랍니다.

    © Dooray!.