FaberSanZ / SPIRV-Cross.NET

SPIRV-Cross.NET is a practical tool and library for performing reflection on SPIR-V and disassembling SPIR-V back to high level languages.
MIT License
16 stars 4 forks source link

Unable to load native library on linux #2

Open Itay2805 opened 2 years ago

Itay2805 commented 2 years ago

It seems that the method SPIRVCross.SPIRV.LoadNativeLibrary tries to look for spirv-cross-c-shared.so but the file is actually named libspirv-cross-c-shared.so. Normally this would be fine since it should add the prefix automatically, but I guess because you give it a full path it does not do that...

I think this might also affect mac because it has the same prefix...

Beyley commented 2 years ago

Can confirm i am getting the same issue

FaberSanZ commented 2 years ago

Hello, sorry for the long delay. He was pretty busy. I'll try to fix this, but for some reason it works for me. any PR is appreciated @Itay2805 @Beyley

Beyley commented 2 years ago

Hello, sorry for the long delay. He was pretty busy. I'll try to fix this, but for some reason it works for me. any PR is appreciated @Itay2805 @Beyley

i think this only happened for me when i compiled from source