Skip to content
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

How to build/how to get mssql-openssl.dll and libmssql-openssl.so? #26

Open
RichardWepnerPD opened this issue Dec 13, 2024 · 3 comments

Comments

@RichardWepnerPD
Copy link

We're trying to use this MsQuic wrapper in a Unity project (installed using NuGetForUnity). At runtime, MsQuic.Net tries to load mssquic-openssl.dll on Windows or libmssquic-openssl.so. This doesn't seem to be included in the package, which causes the library not to work as expected - and Exception is thrown since the library can't be loaded. (The README.md sounds to me like no steps besides installing the NuGet package would be required, however it could very well be an issue with NuGetForUnity.)

How would we need to build MsQuic in order to retrieve the correct libraries (i.e. msquic-openssl.dll instead of msquic.dll)?

@RichardWepnerPD
Copy link
Author

It seems like I could have spent a few more minutes searching for it. According to the BUILD.md file in the MsQuic repository we would need to use scripts contained in the repository to build the project, and to use certain flags in order to select whether schannel, openssl or openssl3 should be used.

However, I didn't yet verify if this is working, so I won't yet close this issue.

@RichardWepnerPD
Copy link
Author

The problem doesn't occur anymore if I place the msquic.dll as msquic-openssl.dll into the same directory as the StirlingLabs.MsQuic.Bindings.dll.

I can't yet say if this problem resulted from me using the NuGet package within Unity (where the installation of the package might have been incomplete to begin with) or if it would also occur if the NuGet package is used in a regular C# project. In any case, adjusting the installation instructions would probably be helpful, either by instructing that the MsQuic dll needs to be inserted manually, or that this needs to be done within Unity projects.

Since I don't know how you manage your tasks, I'll leave this issue open for now. Feel free to close it if you don't see a need for this issue (e.g. if you keep track of progress within another tool).

@RichardWepnerPD
Copy link
Author

Similarly there should be a hint for the sa.dll as well, see #27

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant