-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
dart ffi: error code 126 #51659
Comments
Not just the |
I have checked some of the dependencies required by librdkafka.dll using this tool:
And I have put all of them into one folder along with librdkafka.dll. However, I am still getting the same error. |
Similar issue: Can you check whether the file exists with
And this would indeed my second suggestion. Did you get it to work? |
The path is correct since
No, currently still stuck at loading the librdkafka library |
You could try running |
I can load other DLLs fine, for example like the hello.dll from the official example or the libcurl.dll from above. However, when I try to load this librdkafka.dll, an error occurs. |
I'm having the same issue when compiling I can use So I tried the process again on Windows. I used Visual Studio to generate a whole bunch of I'm happy to provide more details if needed. EDIT: I seemed to have fixed it by adding the folder with all the DLL's to my system path. I thought that wouldn't be needed since they were in the same folder together but since my terminal isn't in that folder, it didn't matter. |
You had to add the folder which contain all dll's to system environment variables path?? |
I believe so. In Linux, there is an environment variable called Windows doesn't have another path variable like this (or at least, I didn't try one), so adding it to the system/user
If your terminal is in The way I get around it is by assuming my terminal is in |
我也遇到了同样的问题,package:media_kit_libs_windows_video registered. |
I have solved the problem that flutter compiles without copying dependency packages in the environment to its own directory |
Hi, I got an error like this when trying to use ffi to load the librdkafka library.
I obtained the librdkafka.dll file from NuGet.
https://www.nuget.org/packages/librdkafka.redist/
and here's my code:
Dart SDK version: 2.19.3
OS: Windows 11 22H2 build 22621.1344
The text was updated successfully, but these errors were encountered: