Comments (17)
You have own joltc.dll? In that case I cannot help, if it happens with joltc.dll from this repo I can try to help.
Try also to install visual studio 2022 C++ runtime in case, you can open the joltc.dll in dependency walker and see what is missing.
https://www.dependencywalker.com/
from joltphysicssharp.
I got some reports, here one that has a few more details:
[Sparkle.CSharp.Game :: Run] Initialize physics...
Unhandled exception. System.DllNotFoundException: Unable to load shared library 'joltc' or one of its dependencies. In order to help diagnose loading problems, consider setting the DYLD_PRINT_LIBRARIES environment variable:
dlopen(/Users/artha/Downloads/Test(1)/joltc.dylib, 0x0001): tried: '/Users/artha/Downloads/Test(1)/joltc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/artha/Downloads/Test(1)/joltc.dylib' (no such file), '/Users/artha/Downloads/Test(1)/joltc.dylib' (no such file)
dlopen(joltc.dylib, 0x0001): tried: 'joltc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSjoltc.dylib' (no such file), '/usr/lib/joltc.dylib' (no such file, not in dyld cache), 'joltc.dylib' (no such file), '/usr/local/lib/joltc.dylib' (no such file), '/usr/lib/joltc.dylib' (no such file, not in dyld cache)
dlopen(/Users/artha/Downloads/Test(1)/libjoltc.dylib, 0x0001): tried: '/Users/artha/Downloads/Test(1)/libjoltc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/artha/Downloads/Test(1)/libjoltc.dylib' (no such file), '/Users/artha/Downloads/Test(1)/libjoltc.dylib' (no such file)
dlopen(libjoltc.dylib, 0x0001): tried: 'libjoltc.dylib' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibjoltc.dylib' (no such file), '/usr/lib/libjoltc.dylib' (no such file, not in dyld cache), 'libjoltc.dylib' (no such file), '/usr/local/lib/libjoltc.dylib' (no such file), '/usr/lib/libjoltc.dylib' (no such file, not in dyld cache)
dlopen(/Users/artha/Downloads/Test(1)/joltc, 0x0001): tried: '/Users/artha/Downloads/Test(1)/joltc' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/artha/Downloads/Test(1)/joltc' (no such file), '/Users/artha/Downloads/Test(1)/joltc' (no such file)
dlopen(joltc, 0x0001): tried: 'joltc' (no such file), '/System/Volumes/Preboot/Cryptexes/OSjoltc' (no such file), '/usr/lib/joltc' (no such file, not in dyld cache), 'joltc' (no such file), '/usr/local/lib/joltc' (no such file), '/usr/lib/joltc' (no such file, not in dyld cache)
dlopen(/Users/artha/Downloads/Test(1)/libjoltc, 0x0001): tried: '/Users/artha/Downloads/Test(1)/libjoltc' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/Users/artha/Downloads/Test(1)/libjoltc' (no such file), '/Users/artha/Downloads/Test(1)/libjoltc' (no such file)
dlopen(libjoltc, 0x0001): tried: 'libjoltc' (no such file), '/System/Volumes/Preboot/Cryptexes/OSlibjoltc' (no such file), '/usr/lib/libjoltc' (no such file, not in dyld cache), 'libjoltc' (no such file), '/usr/local/lib/libjoltc' (no such file), '/usr/lib/libjoltc' (no such file, not in dyld cache)
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryByName(String libraryName, Assembly assembly, Nullable`1 searchPath, Boolean throwOnError)
at JoltPhysicsSharp.JoltApi.OnDllImport(String libraryName, Assembly assembly, Nullable`1 searchPath)
at System.Runtime.InteropServices.NativeLibrary.LoadLibraryCallbackStub(String libraryName, Assembly assembly, Boolean hasDllImportSearchPathFlags, UInt32 dllImportSearchPathFlags)
at JoltPhysicsSharp.JoltApi.JPH_Init(UInt32 tempAllocatorSize)
at JoltPhysicsSharp.Foundation.Init(UInt32 tempAllocatorSize, Boolean doublePrecision)
at Sparkle.CSharp.Physics.Simulation..ctor(PhysicsSettings settings) in F:\projects\Sparkle\src\Sparkle\CSharp\Physics\Simulation.cs:line 26
at Sparkle.CSharp.Game.Run(Scene scene) in F:\projects\Sparkle\src\Sparkle\CSharp\Game.cs:line 96
at Program.<Main>$(String[] args) in F:\projects\Sparkle\src\Test\Program.cs:line 11
fish: Job 1, './Test' terminated by signal SIGABRT (Abort)
artha@CookieMac ~/D/Test(1) [SIGABRT]>
from joltphysicssharp.
Can you try with latest github version?
from joltphysicssharp.
Can you try with latest github version?
Sadly not, my project base on the nuget packet and if i try to compile it with the Source code (Github) i get some errors:
from joltphysicssharp.
Please try with version 2.2.2
from nuget
from joltphysicssharp.
Please try with version
2.2.2
from nuget
Same error
from joltphysicssharp.
looks like you're need to include libjoltc.dylib
from joltphysicssharp.
looks like you're need to include libjoltc.dylib
That's should be automatically be added by .net compiler
from joltphysicssharp.
it do not work then, only the C# library
from joltphysicssharp.
Don't know what to do, I don't have a macos, so it's impossible for me to debug and fix the issue
from joltphysicssharp.
Same on happans on linux, create a virtual machine for linux and try to debug it. (just on win does it work)
from joltphysicssharp.
ops sry nope it just happans on MacOS.
from joltphysicssharp.
Don't know what to do, I don't have a macos, so it's impossible for me to debug and fix the issue
You dont need one, just get sure the .dll get added to the build.
from joltphysicssharp.
Lol, feel free to fix it and submit PR
from joltphysicssharp.
Lol, feel free to fix it and submit PR
Oh and it just happans for nuget if i build it with the github source code it works fine.
from joltphysicssharp.
Lol, feel free to fix it and submit PR
I got the bug!
the problem is you use '$(RuntimeIdentifier)'=='osx-universal'"
instead of '$(RuntimeIdentifier)'=='osx-x64'"
With '$(RuntimeIdentifier)'=='osx-x64'"
the .dll get generated.
from joltphysicssharp.
Fixed
from joltphysicssharp.
Related Issues (20)
- Typo in `tempAlocator` parameter name?
- [Feature] Add LockX/Y/Z, Mass HOT 2
- [Bug] Error when build it! HOT 2
- [Bug] CastRay crash the application by using it HOT 6
- Double Precision? HOT 6
- Multiple Implementations of JoltC
- Attempted to read or write protected memory HOT 1
- property comparson maybe wrong HOT 2
- set ScaleToMass doesn't work for Shape's MassProperties HOT 3
- JoltC dll get not found after publish. HOT 11
- Vehicle classes missing HOT 5
- Android support
- System.DllNotFoundException: Unable to load shared library 'joltc' or one of its dependencies. HOT 5
- Crash by starting with Debug mode (Not everytime but often) HOT 24
- Can't find PhysicsSettings HOT 4
- Would using a CodeGen tool help automate the process of creating bindings for Jolt?
- Null reference exception when calling GetWorldTransform(bodyID) HOT 4
- RVec3/RMat44 use doubles even in single-precision mode HOT 3
- Exception when trying to create a new `CharacterVirtual` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joltphysicssharp.