Giter VIP home page Giter VIP logo

Comments (17)

amerkoleci avatar amerkoleci commented on May 29, 2024

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.

MrScautHD avatar MrScautHD commented on May 29, 2024

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.

amerkoleci avatar amerkoleci commented on May 29, 2024

Can you try with latest github version?

from joltphysicssharp.

MrScautHD avatar MrScautHD commented on May 29, 2024

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:
grafik

from joltphysicssharp.

amerkoleci avatar amerkoleci commented on May 29, 2024

Please try with version 2.2.2 from nuget

from joltphysicssharp.

MrScautHD avatar MrScautHD commented on May 29, 2024

Please try with version 2.2.2 from nuget

Same error

from joltphysicssharp.

MrScautHD avatar MrScautHD commented on May 29, 2024

looks like you're need to include libjoltc.dylib

Screenshot_2024-02-08_at_21 59 29

from joltphysicssharp.

amerkoleci avatar amerkoleci commented on May 29, 2024

looks like you're need to include libjoltc.dylib

Screenshot_2024-02-08_at_21 59 29

That's should be automatically be added by .net compiler

from joltphysicssharp.

MrScautHD avatar MrScautHD commented on May 29, 2024

it do not work then, only the C# library

from joltphysicssharp.

amerkoleci avatar amerkoleci commented on May 29, 2024

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.

MrScautHD avatar MrScautHD commented on May 29, 2024

Same on happans on linux, create a virtual machine for linux and try to debug it. (just on win does it work)

from joltphysicssharp.

MrScautHD avatar MrScautHD commented on May 29, 2024

ops sry nope it just happans on MacOS.

from joltphysicssharp.

MrScautHD avatar MrScautHD commented on May 29, 2024

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.

amerkoleci avatar amerkoleci commented on May 29, 2024

Lol, feel free to fix it and submit PR

from joltphysicssharp.

MrScautHD avatar MrScautHD commented on May 29, 2024

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.

MrScautHD avatar MrScautHD commented on May 29, 2024

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.

MrScautHD avatar MrScautHD commented on May 29, 2024

Fixed

from joltphysicssharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.