keijiro / LaspVfx

Audio reactive Unity VFX with LASP
The Unlicense
619 stars 60 forks source link

build issue on Mac m1, DllNotFoundException: soundio.dll #9

Closed sherlockeded closed 1 year ago

sherlockeded commented 1 year ago

Hi, Thank you for sharing this! it is so cool, exactly what i need. But i have one problem.I have added the additional dependancy in manifest.json, still can't build it on Mac m1 .

The log file says: Filename: /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.libsoundio@1.0.3/Runtime/Context.cs Line: 77) DllNotFoundException: soundio.dll assembly: type: member:(null) at (wrapper managed-to-native) SoundIO.Context._Create() at SoundIO.Context.Create () [0x00000] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.libsoundio@1.0.3/Runtime/Context.cs:77 at Lasp.AudioSystem.GetContextWithLazyInitialization () [0x0000e] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.lasp@2.1.5/Runtime/AudioSystem.cs:71 at Lasp.AudioSystem.get_Context () [0x00000] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.lasp@2.1.5/Runtime/AudioSystem.cs:63 at Lasp.AudioSystem.CheckAndGetInputDeviceList () [0x00001] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.lasp@2.1.5/Runtime/AudioSystem.cs:50 at Lasp.AudioSystem.get_InputDeviceList () [0x00000] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.lasp@2.1.5/Runtime/AudioSystem.cs:45 at Lasp.AudioSystem.GetDefaultInputStream () [0x00000] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.lasp@2.1.5/Runtime/AudioSystem.cs:34 at Lasp.AudioLevelTracker.CacheStream () [0x00000] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.lasp@2.1.5/Runtime/AudioLevelTracker.cs:130 at Lasp.AudioLevelTracker.get_Stream () [0x00000] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.lasp@2.1.5/Runtime/AudioLevelTracker.cs:127 at Lasp.AudioLevelTracker.get_inputLevel () [0x00000] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.lasp@2.1.5/Runtime/AudioLevelTracker.cs:83 at Lasp.AudioLevelTracker.Update () [0x00001] in /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.lasp@2.1.5/Runtime/AudioLevelTracker.cs:142

(Filename: /Users/wzy/unity/LaspVfx-master/Library/PackageCache/jp.keijiro.libsoundio@1.0.3/Runtime/Context.cs Line: 77)

Do you know how to get it work? Thank you so much

keijiro commented 1 year ago
sherlockeded commented 1 year ago
  • Which Unity version are you using? unity 2021.3.22f1
  • Which platform target are you trying to build? macos m1 ventura 13.4

Thx!

keijiro commented 1 year ago

Does it run on Unity Editor?

(You wrote "can't build it on Mac m1", so I understood that you successfully ran it on Editor but failed to build it to a specific target platform. Now I want to clarify it.)

sherlockeded commented 1 year ago

Yes. it runs perfectly in the editor. But after building it and open the application on Mac m1, nothing works anymore. Thx!

--

发自新浪邮箱客户端

在 今天 17:29,Keijiro Takahashi @.***> 写道:

Does it run on Unity Editor? (You wrote "can't build it on Mac m1", so I understood that you successfully ran it on Editor but failed to build it to a specific target platform. Now I want to clarify it.) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

keijiro commented 1 year ago
sherlockeded commented 1 year ago
  • How about upgrading to Unity 2022.2?
  • How about changing the Architecture option? (Intel 64-bit / Apple silicon / Intel 64-bit + Apple silicon)

Thank you, keijiro. I have tried them but doesn't really work. I will use other devices.