Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Categories
- All Discussions1,524
- General534
- Graphics109
- GPU Computing419
- Mobile141
- Pro Graphics163
- Tools158
In this Discussion
- Detlef Roettger February 8
Tags in this Discussion
- cuda 422
Optix - Cuda_runtime_api.h
-
Hi,
I used the Glass sample program from the Optix SDK to create a new one for my porposes...
Now, I would like to merge it with the VideoDecodeGL sample found in the Cuda SDK, to be able to grab video frames and to use it to a texture in Optix.
I looked into the videoDecodeGL.cpp to know how to adapt my Glass.cpp...
I included the same Include files...but...
When I try to compile my project, I get the error LNK2019: unresolved external symbol "__delspec(dllimport) class optix::Handle __cdecl loadTexture(class optix::Handle
Thanks for the help... -
1 Comment sorted by
-
That linker error indicates that you are not linking against the matching import library.
The loadTexture() function (sutil\ImageLoader.cpp) is defined inside the sutil DLL and you would need to link against an sutil.lib which doesn't seem to be built by the OptiX CMakeLists.txt definitions in sutil\CMakeLists.txt.
Please look into the OptiX CMakeLists.txt containing this block
install(TARGETS sutil
RUNTIME DESTINATION ${SDK_BINARY_INSTALL_DIR}
LIBRARY DESTINATION ${SDK_BINARY_INSTALL_DIR}
)
and add an ARCHIVE instruction there which should generate the matching import library if I interpret the CMake documents on http://www.cmake.org/cmake/help/cmake-2-8-docs.html correctly.
Rebuild the OptiX SDK samples using the OptiX SDK 2.5.0\SDK\CMakeLists.txt file as root and look for an sutil.lib, then add that as additional library to your project.
Hope that helps (not tried myself.)