Hey,
I've tried to build the pbrt v-3 with CMAKE:

after the configure I've got the following:

with the message:
The C compiler identification is MSVC 19.12.25834.0
The CXX compiler identification is MSVC 19.12.25834.0
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe -- works
Detecting C compiler ABI info
Detecting C compiler ABI info - done
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe
Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.12.25827/bin/Hostx86/x64/cl.exe -- works
Detecting CXX compiler ABI info
Detecting CXX compiler ABI info - done
Detecting CXX compile features
Detecting CXX compile features - done
Looking for pthread.h
Looking for pthread.h - not found
Found Threads: TRUE
Looking for include file alloca.h
Looking for include file alloca.h - not found
Looking for include file memory.h
Looking for include file memory.h - found
Performing Test HAVE_HEX_FP_CONSTANTS
Performing Test HAVE_HEX_FP_CONSTANTS - Success
Performing Test HAVE_BINARY_CONSTANTS
Performing Test HAVE_BINARY_CONSTANTS - Success
Performing Test HAVE_CONSTEXPR
Performing Test HAVE_CONSTEXPR - Success
Performing Test HAVE_ALIGNAS
Performing Test HAVE_ALIGNAS - Success
Performing Test HAVE_ALIGNOF
Performing Test HAVE_ALIGNOF - Success
Performing Test HAVE_ITIMER
Performing Test HAVE_ITIMER - Failed
Performing Test HAVE_NONPOD_IN_UNIONS
Performing Test HAVE_NONPOD_IN_UNIONS - Success
Performing Test HAVE_MMAP
Performing Test HAVE_MMAP - Failed
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__ALIGNED_MALLOC
Performing Test HAVE__ALIGNED_MALLOC - Success
Performing Test HAVE_POSIX_MEMALIGN
Performing Test HAVE_POSIX_MEMALIGN - Failed
Performing Test HAVE_MEMALIGN
Performing Test HAVE_MEMALIGN - Failed
Performing Test HAVE_THREAD_LOCAL
Performing Test HAVE_THREAD_LOCAL - Success
Performing Test HAVE_DECLSPEC_THREAD
Performing Test HAVE_DECLSPEC_THREAD - Success
Performing Test HAVE___THREAD
Performing Test HAVE___THREAD - Failed
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
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 - found
Check size of off64_t
Check size of off64_t - failed
Looking for fseeko
Looking for fseeko - not found
Looking for unistd.h
Looking for unistd.h - not found
Found ZLIB: C:/Users/kalo/source/pbrt-v3/build/src/ext/zlib/$<CONFIGURATION>/zlibstatic.lib (found version "1.2.8")
Performing Test HAVE_GCC_INLINE_ASM_AVX
Performing Test HAVE_GCC_INLINE_ASM_AVX - Failed
Performing Test HAVE_SYSCONF_NPROCESSORS_ONLN
Performing Test HAVE_SYSCONF_NPROCESSORS_ONLN - Failed
Looking for dlfcn.h
Looking for dlfcn.h - not found
Looking for execinfo.h
Looking for execinfo.h - not found
Looking for glob.h
Looking for glob.h - not found
Looking for inttypes.h
Looking for inttypes.h - found
Looking for libunwind.h
Looking for libunwind.h - not found
Looking for pwd.h
Looking for pwd.h - not found
Looking for stdlib.h
Looking for stdlib.h - found
Looking for string.h
Looking for string.h - found
Looking for strings.h
Looking for strings.h - not found
Looking for sys/stat.h
Looking for sys/stat.h - found
Looking for sys/syscall.h
Looking for sys/syscall.h - not found
Looking for sys/time.h
Looking for sys/time.h - not found
Looking for sys/utsname.h
Looking for sys/utsname.h - not found
Looking for syscall.h
Looking for syscall.h - not found
Looking for syslog.h
Looking for syslog.h - not found
Looking for ucontext.h
Looking for ucontext.h - not found
Looking for unistd.h
Looking for unistd.h - not found
Looking for unwind.h
Looking for unwind.h - not found
Looking for C++ include ext/hash_map
Looking for C++ include ext/hash_map - not found
Looking for C++ include ext/hash_set
Looking for C++ include ext/hash_set - not found
Looking for C++ include ext/slist
Looking for C++ include ext/slist - not found
Looking for C++ include tr1/unordered_map
Looking for C++ include tr1/unordered_map - not found
Looking for C++ include tr1/unordered_set
Looking for C++ include tr1/unordered_set - not found
Looking for C++ include unordered_map
Looking for C++ include unordered_map - found
Looking for C++ include unordered_set
Looking for C++ include unordered_set - found
Check size of unsigned __int16
Check size of unsigned __int16 - done
Check size of u_int16_t
Check size of u_int16_t - failed
Check size of uint16_t
Check size of uint16_t - done
Looking for dladdr
Looking for dladdr - not found
Looking for fcntl
Looking for fcntl - not found
Looking for pread
Looking for pread - not found
Looking for pwrite
Looking for pwrite - not found
Looking for sigaction
Looking for sigaction - not found
Looking for sigaltstack
Looking for sigaltstack - not found
Performing Test HAVE_NO_DEPRECATED
Performing Test HAVE_NO_DEPRECATED - Failed
Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS
Performing Test HAVE_NO_UNNAMED_TYPE_TEMPLATE_ARGS - Failed
Looking for snprintf
Looking for snprintf - found
Looking for get_static_proc_name in unwind
Looking for get_static_proc_name in unwind - not found
Performing Test HAVE___ATTRIBUTE__
Performing Test HAVE___ATTRIBUTE__ - Failed
Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT
Performing Test HAVE___ATTRIBUTE__VISIBILITY_DEFAULT - Failed
Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN
Performing Test HAVE___ATTRIBUTE__VISIBILITY_HIDDEN - Failed
Performing Test HAVE___BUILTIN_EXPECT
Performing Test HAVE___BUILTIN_EXPECT - Failed
Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP
Performing Test HAVE___SYNC_VAL_COMPARE_AND_SWAP - Failed
Performing Test HAVE_RWLOCK
Performing Test HAVE_RWLOCK - Failed
Performing Test HAVE___DECLSPEC
Performing Test HAVE___DECLSPEC - Success
Performing Test STL_NO_NAMESPACE
Performing Test STL_NO_NAMESPACE - Failed
Performing Test STL_STD_NAMESPACE
Performing Test STL_STD_NAMESPACE - Success
Performing Test HAVE_USING_OPERATOR
Performing Test HAVE_USING_OPERATOR - Success
Performing Test HAVE_NAMESPACES
Performing Test HAVE_NAMESPACES - Success
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Configuring done
then I generate, open the project, and when I compile it, it doesnt work.
I've got the following message on visual studio:
========== Build: 33 succeeded, 0 failed, 0 up-to-date, 7 skipped ==========
(there is a long message loading the files, I can add it here if its necessary)
and window with the following message:
unable to start program
'C:\Users\kalo\source\pbrt-v3\build\x64\Release\ALL_BUILD'.
access is denied.
I think that it related to:
Found ZLIB: C:/Users/kalo/source/pbrt-v3/build/src/ext/zlib/$<CONFIGURATION>/zlibstatic.lib (found version "1.2.8")
Could NOT find Doxygen (missing: DOXYGEN_EXECUTABLE)
Could NOT find ZLIB (missing: ZLIB_LIBRARY ZLIB_INCLUDE_DIR)
I'm using 64 bits and I did change the line to:
//#define PBRT_FLOAT_AS_DOUBLE
in addition,
what should happens if it is work correctly?
how do I load pbrt file?
thanks,
kalo