-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Build intructions? #28
Comments
Hello, and welcome! Yes, Cargo is required to build this repo. I have a I think some development instructions would be a good addition to this repo so that these questions are more easily addressed for the future. We can close this issue with the addition of a development instructions document. |
➜ libsql-client-dotnet git:(master) nix shell
path '/Users/nat/Projects/libsql-client-dotnet' does not contain a 'flake.nix', searching up
error: path '/Users/nat/Projects/libsql-client-dotnet' is not part of a flake (neither it nor its parent directories contain a 'flake.nix' file)
➜ libsql-client-dotnet git:(master)
Realized I ran |
When I try to build, I get an error like this:
And then more errors later on:
Any suggestions? |
I'm on an M3 Mac. |
Perhaps this stackoverflow post is useful to you. https://stackoverflow.com/questions/71788323/how-should-i-resolve-a-ld-library-not-found-for-liconv-error-when-running-c It'd be nice to have a nix flake with everything in it, but I'd expect the libsql devs to maintain one for their repository and combine it with one for this project, otherwise this project will have to maintain a dependency list for libsql. But I digress, hopefully that post solves your issue. |
Thanks, following that Stack Overflow answer helped! I did encounter another error though:
Which I resolved by updating my shell.nix like so:
|
How should I create the csharp_bindings.dll? I ran generate-bindings.sh in nix-shell within WSL. |
Hi Paul, is there any specific issue you encountered during the build process? |
Hi Tom, I’m trying to build the Demo project in Visual Studio under Windows, but I can’t find the csharp_bindings.dll file. The Libsql.g.cs file was properly created by running the generate-bindings.sh. |
If the bindings build completed successfully then you should be able to find it in the path Though if your goal is to just try demo and play with the client (rather than altering the library code itself) then the best option is to create a new project and install the client library from nuget. This link is available in the project description but I should probably add it near the top of the README as installation instructions for clarity. |
I reran the script but the path rust-bindings/target/release does not contain the DLL mentioned in libsql.g.cs. I noticed that there are 2 .so files but these are linux shared library files. My goal is indeed to try the demo and play with the client but I thought the best first step to take is to try the demo from this repository. |
Hi,
I'm also interested in using libsql from .NET. I don't know too much about native interop in .NET, but I'd love to learn more and contribute! I see you're using csbindgen to generate the C# native bindings. Do I need cargo installed to build this repo? What steps can I use to build this locally and start tinkering?
Thank you!
The text was updated successfully, but these errors were encountered: