Closed hyeonjang closed 2 years ago
This is usually caused by the inconsistent version of the compiler(like GCC) between enoki and psdr_cuda. And you double-check if enoki and psdr_cuda are built using the same compiler with the same version?
Thanks! I found the problem from https://github.com/mitsuba-renderer/enoki/issues/57. And It was Clang problem in my case.
@hyeonjang could you please clarify what you mean by “It was Clang problem in my case”?
This problem still persists even when compiling enoki and psdr-cuda with exactly the same compiler (clang-9) and stdlib (-stdlib=libc++).
@starbit-coder In my cases, the problem was that I tried to compile the sources with gcc, even if enoki was build by clang.
If you compile the both source in the same setting, there should be no problem. I recommend to add enoki as a submodule under the "ext" directory and use cmake command "add_subdirectory(/ext)" And, as you know, there is no specific options about clang in the CMakeLists.txt file. It may be better to compile source with g++.
Thanks for the response @hyeonjang. I've added enoki as a submodule to the psdr-cuda project to try ensure the settings are exactly the same and compiled with g++-9. However, it still gives exactly the same error as in your first post.
Could you maybe provide your CMakeLists.txt for enoki and psdr-cuda?
Hello,
I have encountered the error like below, during running the included test code.
I think that there is no pybind11 casting with enoki in the build. I have installed psdr-cuda in the enviroment Ubuntu 20.04.
Could you give me a help?