-
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
Building on Windows fails #9202
Comments
When I tested v3.1.4, it worked and was able to generate the binary, fluent-bit.exe |
The latest fluent-bit 3.1.5 already includes input and output kafka plugins, I'm afraid. |
Hiro, thats correct, I tried to build from source code for Windows but was unable to do so. Now with a little back-and forth, I was able to achieve it, but had to do slight changes in the CMakeLists.txt under fluent-bit/ directory starting from line 522:
it is essentially the line:
that made the difference after appending I dont know what would be a more robust and elegant way of doing this, but I at least have something that works in my environment and probably other peoples. I used VS 2022 with the latest OpenSSL Win64 OpenSSL v3.3.1 MSI from https://slproweb.com/products/Win32OpenSSL.html |
We use to install OpenSSL libraries via vcpkg with x86-windows-static or x64-windows-static or arm64-windows-static triplet in these days. |
This is because of fluent/fluent-bit#9202 Linkage issue that happens when using non-vcpkg installations of openssl
This is because of fluent/fluent-bit#9202 Linkage issue that happens when using non-vcpkg installations of openssl
We're running into this too and we don't have openssl installed though vcpkg. Shouldn't the Fluent Bit build be robust enough that it doesn't require openssl libraries installed via vcpkg |
I am reopening this issue as @ridwanmsharif is experiencing this issue and raising a good point. In the meantime, @ridwanmsharif did you try by applying the change I mentioned earlier? You might need to do the following as well:
|
I am closing this issue because its related with how fluent-bit was built from source code. Using exe/msi Win64 OpenSSL v3.3.1 from https://slproweb.com/products/Win32OpenSSL.html does not work. You must use vcpkg to install openssl Lets consider that VS is already installed (https://visualstudio.microsoft.com/downloads/) and make sure that Lets suppose you install vcpkg in C:\
Now lets install openssl:
Set in the env variables of Windows: Now to to fluent-bit\build and run:
|
Bug Report
Describe the bug
When building from source code for Windows, it fails with error: LINK : fatal error LNK1104: cannot open file 'libcrypto.lib'
It occurs when the command
cmake --build . --config Release
is executed.Here is the last part of the error output:
To Reproduce
Expected behavior
A fluent-bit.exe is generated in build\bin
Your Environment
master
and/ortags/v3.1.5
as well.Additional context
My goal is actually to use latest fluent-bit version (3.1.5) which contains support for kafka on Windows with ssl/tls
The text was updated successfully, but these errors were encountered: