Search code examples
c++pocopoco-libraries

PocoCryptod.lib & PocoNetSSLd.lib libraries not built during cmake


I am trying to install POCO so I can run api requests. 2 libraries are never installed when I follow the directions on the poco site. These libraries are:

PocoCryptod.lib PocoNetSSLd.lib

When I run

cmake - H/path/to/poco -B/path/to/poco-build 

I get the following error:

--Could not find OpenSSl, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_CRYPTO_LIBRARY OPENSSL_INCLUDE_DIR)  

Where do I set the OPENSSL_ROOT_DIR?

I'm confused. Any help?


Solution

  • I finally figured it out. Go to windows environment variables and create a new variable OPENSSL_ROOT_DIR. Set it to poco-unzipped-files-location]\openssl\build\win64\bin\debug. Also move the include directory to this location. My problem with the missing header files was that I had removed them during a previous try. It shouldn't be a problem for you.