Open lganzzzo opened 2 years ago
Hi @lganzzzo
I'm trying to install this submodule in Windows.
I do have the OpenSSL header files, including the libcrypto.lib
and libssl.lib
.
However, I don't understand in these steps how the structure of the directories and files should be.
I also don't understand if I need all OpenSSL header files or just the libcrypto.lib
and libssl.lib
.
Hope you can help me, and thanks in advance!
By @AlexandreHURDYK:
Ok I managed to compile that submodule on windows through trial and error. Here's my procedure : As a prerequisite, you'll need the following things :
The
OpenSSL
header files, along with thelibcrypto.lib
andlibssl.lib
libraries. A compiled installation of oatpp on"C:\Program Files (x86)\oatpp"
.Create a directory where you want which will contain your stuff.
Launch the Windows console in administrator mode, go inside your directory.
$ git clone https://github.com/oatpp/oatpp-openssl.git
Create a directory somewhere else to put your OpenSSL files. I'd avoid putting these in the cloned repository however.
Inside your new directory, do the following :
libcrypto.lib
andlibssl.lib
inside of that directory.openssl
because the cmake seeks for headers inside a directory called "openssl". Otherwise, you will trigger a compilation error about defining the OPENSSL_ROOT_DIR variable, which is actually a dud.Do the following console commands :
Do this command :
The
-DOPENSSL
variables are the parts you want to pay attention to. Creating a new environment variable actually somehow doesn't work on windows. You need to add and fill these two variables in your cmake command to valid it. Both have the path to your openssl libs : that's not a typo. Your includes directory should be located in the same directory as your libraries, under the name "openssl" so the cmake script will actually find them.Execute the following command:
For a debug build:
For a release build: