sketchbooks99 / PRayGround

GPU ray tracing framework using NVIDIA OptiX 7 and 8
MIT License
40 stars 2 forks source link

CANNOT find glfw3 #6

Closed ypwang61 closed 2 years ago

ypwang61 commented 2 years ago

Hello, I'm trying to build your work but fail on win10, using VS 2019 at cmake, the error report is: CMake Error at prayground/ext/CMakeLists.txt:45 (set_property): set_property could not find TARGET glfw. Perhaps it has not yet been created How can I fix it? Thank u very much!

sketchbooks99 commented 2 years ago

@Alice-6161 Hi! Did you fetch external libraries by git submodule update —-init —-recursive?

ypwang61 commented 2 years ago

Thank you for your explanation, I just download .zip and loss the dependency at first. But when I comile the file, there are some errors: "OPTIX_COMPILE_DEBUG_LEVEL_LINEINFO" : Identifier not found.(Compile the source file C:\ProgramData\PRayGround\PRayGround\prayground\core\camera.cpp) prayground C:\ProgramData\PRayGround\PRayGround\praygro und\core\stream_helpers.h 134 and some other errors from "LOG_WARN" or "LOG_FATAL" I run your code with Optix 7.4.0, may that cause the error?

sketchbooks99 commented 2 years ago

@Alice-6161 Thank you for reporting some errors. The OPTIX_COMPILE_DEBUG_LEVEL_LINEINFO error is due to LINEINFO being changed to MINIMAL between ~7.3.0 and 7.4.0. LOG_WARN and LOG_FATAL are definitely my mistakes, I'm sorry for the inconvenience.

I fixed those errors in latest commit on master branch, please check and clone it again.

ypwang61 commented 2 years ago

Thanks a lot, now it works!