Linker error for debug renderer #1410
Replies: 3 comments 3 replies
-
Jolt by default compiles without C++ RTTI, your project is compiling with RTTI. Either turn it off for your own project or turn it on for Jolt using the CPP_RTTI_ENABLED cmake option.
It's a handle to renderable data. It can be whatever you need it to be in order to be able to draw a batch of triangles. See example here: JoltPhysics/TestFramework/Renderer/DebugRendererImp.h Lines 61 to 71 in 9b3e9e6 JoltPhysics/TestFramework/Renderer/DebugRendererImp.cpp Lines 98 to 107 in 9b3e9e6 |
Beta Was this translation helpful? Give feedback.
-
Got it thank you. Is there a way to do that with vcpkg or would I need to compile from source myself? |
Beta Was this translation helpful? Give feedback.
-
I'm not the maintainer of the vcpkg, but looking at the vcpkg repository: it is not exposed. Exposing it should be trivial though. Just add something along the lines |
Beta Was this translation helpful? Give feedback.
-
Hello, my project compiles fine when running the sample Hello World file, but I'm currently in the process of implementing a debug renderer and I'm getting the following error:
I'm using macOS Sonoma 14.4.1, in a VS Code project. Jolt is integrated via vcpkg/CMake with vcpkg install joltphysics[core,debugrenderer,profiler], so the debug renderer should be included there. I ran
nm -gC path/to/libJolt.a | grep DebugRenderer
and there were a lot of finds, maybe there's somehow no definition for it though. I'm not positive where to go from here. As mentioned, the default parts of the library are building and linking just fine.Secondary question, what should the Batch in
Batch CreateTriangleBatch()
contain? I wasn't able to find any documentation about it, from what I see it's just a RefTargetVirtual? Thank you.Beta Was this translation helpful? Give feedback.
All reactions