OptiX 3.9.0 compilation problems


At SUTIL project compilation at OptiX 3.9.0 I have got error “ObjLoader.cpp is not found”.
I have copied ObjLoader.h and ObjLoader.cpp from OptiX 3.8.0 to Optix 3.9.0
Now SUTIl compilation is successful. How could this happened?

I try to compile path_tracer sample. At all OptiX versions - 3.8.0, 3.9.0
i have got error “m_accel_desc: undefined identifier”.

Just the same with the COOK sample compilation.

What might i do?

Sounds like you’re using an outdated solution to build the projects in the OptiX SDK.

The OptiX SDK installation doesn’t contain OBJLoader.cpp/.h anymore after version 3.6.3.
OBJ files are loaded with the OptiXMesh class since 3.7.0, and that also uses the m_accel_desc.

My recommendation would be to de-install and re-install OptiX 3.9.0 to make sure no files have been changed.

Then open CMake at the location “NVIDIA Corporation\OptiX SDK 3.9.0\SDK” and use the CMakelist.txt file there as root to configure and generate the solution containing all examples and sutil.

Press configure and generate to build that new solution.
There should be no complains about missing OBJLoader files at that point.

Then open that newly generated solution and rebuild all.

If that doesn’t work, post the exact errors you see either in CMake or the host compiler along with the usual system information:
OS, installed GPU(s), display driver version, CUDA Toolkit used to compile the PTX code, host compiler version and edition.

Thank you very much, Detlef.

I have followed your advice.
The compiling is successful.