Zombie
Zombie
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
hahaha, understandable
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
I guess the errors you have there are a result of the parameters passed to Clang, which you can control via --additional in ClangSharpPInvokeGenerator (settings.rsp in the aforementioned repos)
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
The main thing to note is that there is both --file and --traverse. The former means "parse this file", while the latter means "stuff in this file should have bindings generated for it"
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
Look in the .rsp files in the generation folder
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
If you want some parameter examples you can check out Tanner's TerraFX repos or my own https://github.com/NewBloodInteractive/NewBlood.Interop.Steamworks
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
Might have to wait for Tanner to be around again I suppose
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
Ah
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
i.e. it is run externally
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
Shouldn't need a csproj since ClangSharpPInvokeGenerator is a tool rather than something you import into your project
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
No description
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
Weird
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
then just ClangSharpPInvokeGenerator is usable in the terminal
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
dotnet tool install --global ClangSharpPInvokeGenerator iirc
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
I thought there were already Linux binaries available for ClangSharpPInvokeGenerator + ClangSharp + the associated Clang version on NuGet
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
But you can definitely use ClangSharpPInvokeGenerator to save time if you have an import you want to do manually/with LibraryImport and don't want to spend a lot of time writing out the interop structures
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
Yeah if you're using one, you typically won't be using the other for the same imports
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
ClangSharpPInvokeGenerator, specifically
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
ClangSharp is also a great learning tool if you want to see how stuff translates
85 replies
CC#
Created by voltagex on 6/24/2024 in #help
LibraryImport examples, especially on Linux
Spend a few months in #allow-unsafe-blocks and the unsafe mental parasite will take over soon enough
85 replies
CC#
Created by Yawnder on 10/21/2023 in #help
✅ Unity: Issue with the Box Collider 2D and Layers.
I was really grasping at straws trying to see wtf could be wrong there
12 replies