Difference between revisions of "Kerberos for Windows (KfW) Build Environment"
From K5Wiki
| Line 23: | Line 23: | ||
** click on wix, copy value. |
** click on wix, copy value. |
||
** click on path, click edit, click new, paste value and add "\bin". |
** click on path, click edit, click new, paste value and add "\bin". |
||
| + | |||
| + | * Choose a released version of OpenSSL (called X.Y.Z below) and build it: |
||
| + | |||
| + | cd %homepath% |
||
| + | git clone https://github.com/openssl/openssl |
||
| + | cd openssl |
||
| + | git checkout openssl-X.Y.Z |
||
| + | perl Configure |
||
| + | nmake |
||
| + | nmake install |
||
| + | set OPENSSL_DIR=C:\Program Files\OpenSSL |
||
| + | set OPENSSL_VERSION=X |
||
Follow the instructions in src/windows/README to perform a build. NODEBUG can be set in the environment ("set NODEBUG=1") to avoid having to specify it on the nmake command line each time. For MIT-specific builds, also "set MIT_INTERNAL=1" or specify it on the nmake command line when building the installer. |
Follow the instructions in src/windows/README to perform a build. NODEBUG can be set in the environment ("set NODEBUG=1") to avoid having to specify it on the nmake command line each time. For MIT-specific builds, also "set MIT_INTERNAL=1" or specify it on the nmake command line when building the installer. |
||
Revision as of 17:50, 21 April 2026
Directions for producing an environment in which to build Kerberos for Windows version 4.2
- Install 64-bit Windows 10.
- Install Visual Studio 2017 Community.
- Check "Desktop development with C++".
- Check "MFC and ATL support".
- After installing, locate the Visual Studio 2017 menu under the start menu, and pin the x64 and x86 Native Tools Command Prompt entries to the task bar for e
- Install the chocolatey package manager from https://chocolatey.org/install (by pasting the PowerShell command line into an administrative powershell). Install the following packages:
choco install wixtoolset -y choco install strawberryperl -y choco install git -y -params '"/GitAndUnixToolsOnPath"' choco install emacs -y choco install windbg -y
- Add wix to the path.
- search for "environment" and run "Edit the system environment variables".
- Click "environment variables" (button at bottom)
- click on wix, copy value.
- click on path, click edit, click new, paste value and add "\bin".
- Choose a released version of OpenSSL (called X.Y.Z below) and build it:
cd %homepath% git clone https://github.com/openssl/openssl cd openssl git checkout openssl-X.Y.Z perl Configure nmake nmake install set OPENSSL_DIR=C:\Program Files\OpenSSL set OPENSSL_VERSION=X
Follow the instructions in src/windows/README to perform a build. NODEBUG can be set in the environment ("set NODEBUG=1") to avoid having to specify it on the nmake command line each time. For MIT-specific builds, also "set MIT_INTERNAL=1" or specify it on the nmake command line when building the installer.
Code signing:
signtool sign /v /d "MIT Kerberos for Windows installer" /a /fd sha256 /tr http://timestamp.comodoca.com /td sha256 foo.msi
See also https://support.comodo.com/index.php?/Default/Knowledgebase/Article/View/68/7/
More general KfW release engineering information at Kerberos for Windows Release Engineering.
