I'm a rust beginner trying to install cargo-leptos. I've installed cargo-leptos before, but I'm reinstalling it on a different device and I'm running into some difficulty.
I've installed openssl through Chocolatey, and these are my openssl related environment variables:
With these environment variables, I get an error like
OpenSSL libdir at ["C:\Program Files\OpenSSL-Win64\lib\VC\x64\MD"] does not contain the required files to either statically or dynamically link OpenSSL
When I set OPENSSL_STATIC="1", the error changes to
could not find native static library ssl, perhaps an -L flag is missing?
What am I doing wrong?
Could someone help me please?
Thanks in advance!
P. S.
I used this link as a reference, and from what I remembered from the last time I installed cargo-leptos, it worked. Now, it doesn't. Maybe I missed something?
I installed openssl through MSYS2 instead (as per the "Windows GNU (MinGW)" section here openssl-sys 0.9.19 - Docs.rs), and the cargo-leptos install isn't failing at openssl-sys anymore!
These were my environment variables: OPENSSL_INCLUDE_DIR="C:\tools\msys64\mingw64\include" OPENSSL_LIB_DIR="C:\tools\msys64\mingw64\lib" OPENSSL_NO_VENDOR="1"
Though openssl-sys is compiling, now, there's a different error that seems to be linker related.