fpagliughi / sockpp

Modern C++ socket library.
BSD 3-Clause "New" or "Revised" License
796 stars 126 forks source link

build shared sockpp with static openssl (Windows, MINGW-64, MSYS) #102

Open helgo1506 opened 1 month ago

helgo1506 commented 1 month ago

I tried to build shared sockpp with openssl.

I wanted to have the openssl inside the sockpp dll, but i won't build.

I build openssl as static lib without problems.

After i did set -DOPENSSL_ROOT_DIR to the static path, it says it can't find the WS2 entries.

i tried to adding -DCMAKE_SHARED_LINKER_FLAGS="-lcrypt32 -lssl -lcrypto" to the cmake call, but i won't work.

Here is the output from it: sockpp_openssl_static.txt

P.S. : If i done some common mistake, let me know. I'm not used to building libs. XD

fpagliughi commented 1 month ago

I'm not sure what you're trying to do.

There's the start of some support for OpenSSL in some of the development branches, but it is incomplete and not ready to try out.

But if you're trying something different, I don't understand trying:

to have the openssl inside the sockpp