right now im trying to combine optix raycasting with openGl Rendering.
For this case i found an fitting example.
I need to create an ptx file from my cuda files just like its done in the tutorial of OptiX,
so somehow like this:
std::string box_ptx( ptxpath( “tutorial”, “box.cu” ) );
Program box_bounds = m_context->createProgramFromPTXFile(box_ptx, “box_bounds”);
Program box_intersect = m_context->createProgramFromPTXFile(box_ptx, “box_intersect”);
but in my application i get an Linkererror for ptxpath, or if go on step further and take the given implementation of ptxpath:
const char* const SampleScene::ptxpath( const std::string& target, const std::string& base )
static std::string path;
path = std::string(sutilSamplesPtxDir()) + “/” + target + “generated” + base + “.ptx”;
i get the linkererror for sutilSamplesPtxDir, eventhough there is an sutil.c with the definition of sutilSamplesPtxDir.
sutilSamplesPtxDir is declared as an dllimported function. So my question now, which dll or lib do i have to link, so the linker knows where to get the defintion?
im using VS2013.
if you need further information just ask. Thank you.