-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Closed
Description
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:
[ 98%] Building C object src/CMakeFiles/fluent-bit-shared.dir/flb_ra_key.c.obj
flb_ra_key.c
[ 98%] Building C object src/CMakeFiles/fluent-bit-shared.dir/__/lib/lwrb/lwrb/src/lwrb/lwrb.c.obj
lwrb.c
[ 98%] Linking C shared library ..\bin\fluent-bit.dll
LINK: command "C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\fluent-bit-shared.dir\objects1.rsp /out:..\bin\fluent-bit.dll /implib:..\library\fluent-bit.lib /pdb:C:\Users\<username>\github\fluent-bit\build\bin\fluent-bit.dll.pdb /dll /version:0.0 /pdb:C:/Users/<username>/github/fluent-bit/build/bin/fluent-bit.dll.pdb /machine:X86 ws2_32.lib crypt32.lib Bcrypt.lib Shlwapi.lib ..\library\flb-http-server.lib ..\library\libcfl.lib ..\library\fluent-otel-proto.lib ..\library\libcmetrics.lib ..\library\libctraces.lib ..\lib\monkey\library\mk_core.lib ..\library\jsmn.lib ..\library\msgpack-c-static.lib ..\library\mpack-static.lib ..\library\chunkio-static.lib ..\library\miniz.lib ..\libr
....
LINK : fatal error LNK1104: cannot open file 'libcrypto.lib'
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe" -E vs_link_dll --intdir=CMakeFiles\fluent-bit-shared.dir --rc=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\rc.exe --mt=C:\PROGRA~2\WI3CF2~1\10\bin\100226~1.0\x86\mt.exe --manifests -- C:\PROGRA~1\MICROS~1\2022\COMMUN~1\VC\Tools\MSVC\1440~1.338\bin\Hostx86\x86\link.exe /nologo @CMakeFiles\fluent-bit-shared.dir\objects1.rsp @C:\Users\<username>\AppData\Local\Temp\nmF2F6.tmp' : return code '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x86\nmake.exe" -s -f src\CMakeFiles\fluent-bit-shared.dir\build.make /nologo -SL src\CMakeFiles\fluent-bit-shared.dir\build' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.40.33807\bin\HostX86\x86\nmake.exe" -s -f CMakeFiles\Makefile2 /nologo -LS all' : return code '0x2'
Stop.
To Reproduce
- Steps to reproduce the problem:
- Go to https://docs.fluentbit.io/manual/installation/windows#compile-from-source
- Clone the project
- cd fluent-bit/build
- build:
% cmake .. -G "NMake Makefiles"
% cmake --build .
Expected behavior
A fluent-bit.exe is generated in build\bin
Your Environment
- Version used:
masterand/ortags/v3.1.5as well. - Configuration:
- Environment name and version (e.g. Kubernetes? What version?):
- Server type and version:
- Operating System and version: Windows 11 Home
- Filters and plugins: default settings
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
Reactions are currently unavailable