Hugal31 / yara-rust

Rust bindings for VirusTotal/Yara
Apache License 2.0
70 stars 30 forks source link

Trouble Linking OpenSSL Statically with yara-sys v0.23.0 on Windows. #134

Open muteb opened 8 months ago

muteb commented 8 months ago

Hello everyone,

I've noticed that 1ndahous3 recently shared a new method for statically linking Openssl. I attempted to apply the latest fixes provided, but I'm still encountering the same error: "error: could not find native static library 'libssl,' perhaps an -L flag is missing?". the configuration I use is that installed Openssl v1 from slproweb[.]com and added the following parameters to the environment variables: OPENSSL_CONF=C:\Program Files\OpenSSL-Win64\bin\ OPENSSL_DIR=C:\Program Files\OpenSSL-Win64\ OPENSSL_LIB_DIR=C:\Program Files\OpenSSL-Win64\lib OPENSSL_ROOT_DIR=C:\Program Files\OpenSSL-Win64 OPENSSL_USE_STATIC_LIBS=TRUE YARA_CRYPTO_LIB=openssl YARA_OPENSSL_DIR=C:\Program Files\OpenSSL-Win64\

I'm wondering which version of OpenSSL I should use, and if anyone on Windows has successfully resolved this issue, could you share your experience?

Thank you in advance.