You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: Enabling TLS on windows will cause non-found ssl #74
On my windows machine, whenever i try to compile with TLS enabled, zig says that it cannot find SSL or crypto, and that it has searched no paths. I have OpenSSL installed, an it is in path, and i have even tried directly linking libssl.
Yes, the problem does exist on Windows, but the root cause of the problem is in the upstream webui.
The build of webui cannot correctly find system libraries on windows
I won't be able to deal with this issue for a short time, but maybe I can let him take a look. @mochalins
Past CI tests did not have tls testing. At least in the 0.11 period, tls was running normally.
After the issue is resolved, you need to add the CI test of tls
Well, I tried for a few hours and still didn't find the perfect solution. The zig compiler never found the ssl library correctly, even if the path was specified.
I will make additional attempts when I have time
Activity
AlbertShown commentedon Dec 3, 2024
I'm not sure how to use TLS with Zig build !
@jinzhongjia, I guess we should add an option for TLS include and lib paths.
However, a workaround for now, is to you can manually build a dynamic version of webui + TLS using any C compiler:
nmake WEBUI_USE_TLS=1 WEBUI_TLS_INCLUDE="PATH_TO_TLS_INCLUDE" WEBUI_TLS_LIB="PATH_TO_TLS_LIB".is_static = false,.dllwith the one that have TLSNote:
AlbertShown commentedon Dec 3, 2024
Another thing, make sure you have OpenSSL v3.3.1+
if you still have issues, please share the compiling logs and details.
avalyn0x45 commentedon Dec 3, 2024
The pre-built files have the file webui-2.dll, while the program says it requires webui.dll, any idea why?
avalyn0x45 commentedon Dec 3, 2024
It also complains if I just rename the file.
AlbertShown commentedon Dec 3, 2024
Which program we are talking about here?
avalyn0x45 commentedon Dec 3, 2024
The program that utilizes zig-webui, which is currently just
avalyn0x45 commentedon Dec 3, 2024
In case it matters, the build.zig is
jinzhongjia commentedon Dec 4, 2024
Yes, the problem does exist on Windows, but the root cause of the problem is in the upstream webui.
The build of webui cannot correctly find system libraries on windows
I won't be able to deal with this issue for a short time, but maybe I can let him take a look. @mochalins
mochalins commentedon Dec 4, 2024
I'll take a look, thanks for the ping.
jinzhongjia commentedon Dec 4, 2024
Past CI tests did not have tls testing. At least in the 0.11 period, tls was running normally.
After the issue is resolved, you need to add the CI test of tls
jinzhongjia commentedon Dec 4, 2024
After about two weeks, I have a lot of free time to deal with the deposition problem of this library.
jinzhongjia commentedon Dec 22, 2024
OK,I'm back.
I will try to fix it tomorrow
jinzhongjia commentedon Dec 23, 2024
Well, I tried for a few hours and still didn't find the perfect solution. The zig compiler never found the ssl library correctly, even if the path was specified.
I will make additional attempts when I have time
[-]Cannot enable TLS on windows.[/-][+][Bug]: Enabling TLS on windows will cause non-found ssl[/+]AlbertShown commentedon Dec 23, 2024
I guess the solution may look something like this:
Compiling webui with TLS on Windows:
AlbertShown commentedon Dec 23, 2024
Of course those are just an example, need to be changed to
-Iand-L.AlbertShown commentedon Dec 23, 2024
Those options need to be added, I guess.
jinzhongjia commentedon Jan 11, 2025
Good idea, I will initiate a PR to the upstream and let webui's build.zig expose the option to set the location of the library
jinzhongjia commentedon Jan 24, 2025
A very strange problem, the Zig's construction system cannot find a package in the LIB and INCLUDE directory I specified, but GCC can
AlbertShown commentedon Jan 24, 2025
@jinzhongjia feel free to change anything in upstream Zig build file if this may help you fixing the SSL issue for Zig.
jinzhongjia commentedon Jan 24, 2025
My previous attempt is to change directly in the upstream, but I still can't find the library.
AlbertShown commentedon Jan 24, 2025
I will investigate in this, if I found a solution I will suggest it to you.