-
Hi! First, I want to say that you are amazing to create Jolt and put it free for everyone. Thank you! Thank you a lot! I want Jolt to work with Godot but I need to CROSS_PLATFORM_DETERMINISM. Godot-Jolt don't assure it, so I can't use. I talk with @mihe and he told me to ask help here. My solution is to create a project outside godot and plug it into godot using Binding to External Libraries.
The problem: The branch with no definitions: https://github.com/hugarty/Jolt-Godot/tree/jolt This error in link phase happens: Error
I noticed that in Godot-Jolt, there are only one compile definition (JPH_DOUBLE_PRECISION) that is definded. Can I ignore all others defines and just put JPH_CROSS_PLATFORM_DETERMINISTIC ? I tried to do define just JPH_CROSS_PLATFORM_DETERMINISTIC, built the Static library, but in the bind i recieve this error: The branch with just JPH_CROSS_PLATFORM_DETERMINISTIC: https://github.com/hugarty/Jolt-Godot/tree/jolt-cross-platform-deterministic Error
I was able to bind a simple library that just do sum (Summator). And you can see the module. But for Jolt I need some help to unblock my path. I believe that the error is in the SCsub. Do you have some tip? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
To me it looks like a random collection of errors. If I had to guess then you're not linking against the Jolt library at all (or maybe the main executable is linking against Jolt and the extension dll, if there's such a thing, not). If I scan through your SCsub file then it appears you're compiling Jolt through Why don't you add
Adding only |
Beta Was this translation helpful? Give feedback.
To me it looks like a random collection of errors. If I had to guess then you're not linking against the Jolt library at all (or maybe the main executable is linking against Jolt and the extension dll, if there's such a thing, not).
If I scan through your SCsub file then it appears you're compiling Jolt through
env_godot_jolt.add_source_files(thirdparty_obj, thirdparty_sources)
but I don't see how you attempt to compilegodotJolt.cpp
, is it throughenv.Append(LIBS=['JoltStatic'])
? If this is the case thenlibJoltStatic.a
will not contain the Jolt symbols. You made the lib dependent onlibJolt.a
in cmake but that doesn't mean the symbols are going to get merged intolibJoltStatic.a
I think.…