|
24 | 24 | * `nmake` |
25 | 25 | * `nmake install` (installs OpenSSL inside C:\Program Files\) |
26 | 26 | * Update PATH environment variable to add the dll for openssl which is inside C:\Program Files\OpenSSL\bin |
27 | | - * Note: In some x86_64 windows configurations, compiling for a 64 bit target may fail. You may instead install openssl through Chocolatey. |
| 27 | + * Note: In some x86_64 windows configurations, compiling for a 64 bit target may fail. You may instead install openssl through Chocolatey. The installation folder name might be OpenSSL-Win64. The project build command below should be changed correspondingly. |
28 | 28 | * https://community.chocolatey.org/packages/openssl |
29 | 29 | * Download and install catch2 |
30 | 30 | * Use Visual Studio native tool command prompt in admin mode. |
|
52 | 52 | * Use Visual Studio native tool command prompt |
53 | 53 | * `cd path/to/boost_1_87_0` |
54 | 54 | * `bootstrap.bat` |
55 | | - * `.\b2 toolset=msvc address-model={32 | 64} install define=BOOST_WINAPI_VERSION_WIN10` ( installs boost inside C:\) |
56 | | - * Replace `BOOST_WINAPI_VERSION_WIN10` with the appropriate macro from [here](https://www.boost.org/doc/libs/develop/libs/winapi/doc/html/winapi/config.html) |
| 55 | + * `.\b2 toolset=msvc address-model={32 | 64} install define=BOOST_USE_WINAPI_VERSION=\<hex value> . ( installs boost inside C:\) |
| 56 | + * Replace \<hex value> with the appropriate macro from [here](https://learn.microsoft.com/en-us/windows/win32/winprog/using-the-windows-headers?redirectedfrom=MSDN#macros-for-conditional-declarations) |
| 57 | + * Example: 0x0A00 is for Win10, 0x0602 is for Win8 |
57 | 58 | * Download and build aws-iot-securetunneling-localproxy |
58 | 59 | * Use Visual Studio native tool command prompt in admin mode |
59 | 60 | * `git clone https://github.com/aws-samples/aws-iot-securetunneling-localproxy.git` |
60 | 61 | * `cd aws-iot-securetunneling-localproxy` |
61 | 62 | * `mkdir build` |
62 | 63 | * `cd build` |
63 | | - * Build the cmake project. Replace <_WIN32_WINNT> with the appropriate value based on [your OS from here](https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=vs-2019) |
| 64 | + * Build the cmake project. Replace \<hex value> with the appropriate value based on [your OS from here](https://docs.microsoft.com/en-us/cpp/porting/modifying-winver-and-win32-winnt?view=vs-2019), (e.g. 0x0A00 for Win10, 0x00602 for Win8). This value should be the same value used to build the Boost libraries. |
| 65 | + * For visual studio 2022 |
| 66 | + ``` |
| 67 | + cmake -DWIN32_WINNT=<hex value> -DBoost_USE_STATIC_LIBS=ON -DCMAKE_PREFIX_PATH="C:\Boost;C:\Program Files (x86)\Catch2;C:\Program Files (x86)\protobuf;C:\Program Files\OpenSSL" -G "Visual Studio 17 2022" -A x64 ..\ |
| 68 | + ``` |
64 | 69 | * For visual studio 2019 |
65 | 70 | ``` |
66 | | - cmake -DWIN32_WINNT=<_WIN32_WINNT> -DBoost_USE_STATIC_LIBS=ON -DCMAKE_PREFIX_PATH="C:\Boost;C:\Program Files (x86)\Catch2;C:\Program Files (x86)\protobuf;C:\Program Files\OpenSSL" -G "Visual Studio 16 2019" -A x64 ..\ |
| 71 | + cmake -DWIN32_WINNT=<hex value> -DBoost_USE_STATIC_LIBS=ON -DCMAKE_PREFIX_PATH="C:\Boost;C:\Program Files (x86)\Catch2;C:\Program Files (x86)\protobuf;C:\Program Files\OpenSSL" -G "Visual Studio 16 2019" -A x64 ..\ |
67 | 72 | ``` |
68 | 73 | * for visual studio 2017 |
69 | 74 | ``` |
70 | | - cmake -DWIN32_WINNT=<_WIN32_WINNT> -DBoost_USE_STATIC_LIBS=ON -DCMAKE_PREFIX_PATH="C:\Boost;C:\Program Files (x86)\Catch2;C:\Program Files (x86)\protobuf;C:\Program Files\OpenSSL" -G "Visual Studio 15 2017 <Win64/Win32>" ..\ |
| 75 | + cmake -DWIN32_WINNT=<hex value> -DBoost_USE_STATIC_LIBS=ON -DCMAKE_PREFIX_PATH="C:\Boost;C:\Program Files (x86)\Catch2;C:\Program Files (x86)\protobuf;C:\Program Files\OpenSSL" -G "Visual Studio 15 2017 <Win64/Win32>" ..\ |
71 | 76 | ``` |
72 | 77 | * `msbuild localproxy.vcxproj -p:Configuration=Release` ( builds localproxy.exe inside bin\Release folder ) |
73 | 78 | * Follow [instructions](https://github.com/aws-samples/aws-iot-securetunneling-localproxy) under heading `Security Considerations` to run local proxy on a window OS. |
0 commit comments