Topic: building wolfEngine (stuck on wolfssl) on Windows 10
I'm trying to build wolfEngine (https://github.com/wolfSSL/wolfEngine#b … on-windows) on Windows, and I've been running into some compilation issues. I will try to be as detailed as possible, in case I didn't configure something simple correctly; all terminal output I'm showing is using bash, unless otherwise stated.
Edition Windows 10 Pro
Installed on 5/22/2020
OS build 19044.1348
Experience Windows Feature Experience Pack 120.2212.3920.0
In my project folder, I have to following to mirror the expected directory structure
$ ls openssl wolfEngine wolfssl
The openssl folder contains the source code for openssl version 1.1.1l (L).
wolfssl source folder is on master branch (commit c80e63a822c0080fa0f368d357551be6eb48c956)
I call the following using "x64 Native Tools Command Prompt for VS 2019", while in the openssl folder, and following the OpenSSL section (https://github.com/wolfSSL/wolfEngine#openssl-1):
> perl Configure VC-WIN64A [Configure output ...] > nmake clean [clean output ...] > nmake [compilation output ...]
So far so good, now I try building wolfSSL (https://github.com/wolfSSL/wolfEngine#wolfssl-1). I open the wolfssl64.sln in Visual Studio 2019 Community (Version 16.11.6), From here, things get a little out of hand with the number of build errors that pop up.
- building the solution without modifying user_settings.h:
- 18 errors, most prevalent being:
4>wolfssl.lib(ssl.obj) : error LNK2001: unresolved external symbol _wc_PRF
4>wolfssl.lib(tls.obj) : error LNK2001: unresolved external symbol _wc_PRF_TLS
fatal error LNK1120: 2 unresolved externals
- building solution after adding defines specified in README to user_settings.h:
- a ton more errors pop-up numbering in the hundreds; among them, syntax errors and complaints of undefined identifiers, structs, etc. Excel file provided with the full list of errors from Visual Studio.
Any assistance in potentially reproducing my situation, and some advice on things to try to get it built would be greatly appreciated! The ultimate goal is to also build wolfEngine and make sure the tests work on windows.