78 | | 1. Take care that the compiler binary path is part of the '''`PATH`''' environment variable, usually the `bin\` directory of the installation directory. That directory has to contain `cl.exe`, `link.exe`, `lib.exe`, `nmake.exe` etc. Take care to specify the correct architecture path (amd64 or x86). |
79 | | 2. Set the '''`INCLUDE`''' environment variable to include the compilers `atlmfc\include\` (ATL/MFC) and `include\` directories. |
80 | | 3. Set the '''`LIB`''' environment variable to include the compilers `atlmfc\lib\` (ATL/MFC) and `lib\` directories. Take care to specify the correct architecture path (amd64 or x86). |
81 | | 4. Set the '''`LIBPATH`''' environment variable to include the compilers `atlmfc\lib\` (ATL/MFC) directory. Take care to specify the correct architecture path (amd64 or x86). |
82 | | 5. Set the '''`PATH`''' environment variable to include the (7.1) SDK `bin\` directory. Take care to point to the correct architecture path (amd64 or x86). |
83 | | 6. Set the '''`INCLUDE`''' environment variable to include the (7.1) SDK `include\` directory. |
84 | | 7. Set the '''`LIB`''' environment variable to include the (7.1) SDK `lib\` directory. Take care to specify the correct architecture path (amd64 or x86). |
85 | | After all these environment variables are set up, go to the `curl-VERSION\winbuild\` directory and perform |
| 78 | 1. Take care that the compiler binary path is part of the '''`PATH`''' environment variable, usually the '`bin`' directory of the installation directory. That directory has to contain `cl.exe`, `link.exe`, `lib.exe`, `nmake.exe` etc. Take care to specify the correct architecture path (amd64 or x86). |
| 79 | 2. Set the '''`INCLUDE`''' environment variable to include the compilers '`atlmfc\include`' (ATL/MFC) and '`include`' directories. |
| 80 | 3. Set the '''`LIB`''' environment variable to include the compilers '`atlmfc\lib`' (ATL/MFC) and '`lib`' directories. Take care to specify the correct architecture path (amd64 or x86). |
| 81 | 4. Set the '''`LIBPATH`''' environment variable to include the compilers '`atlmfc\lib`' (ATL/MFC) directory. Take care to specify the correct architecture path (amd64 or x86). |
| 82 | 5. Set the '''`PATH`''' environment variable to include the (7.1) SDK '`bin`' directory. Take care to point to the correct architecture path (amd64 or x86). |
| 83 | 6. Set the '''`INCLUDE`''' environment variable to include the (7.1) SDK '`include`' directory. |
| 84 | 7. Set the '''`LIB`''' environment variable to include the (7.1) SDK '`lib`' directory. Take care to specify the correct architecture path (amd64 or x86). |
| 85 | After all these environment variables are set up, go to the '`curl-VERSION\winbuild`' directory and perform |
| 186 | |
| 187 | == Frequently Asked Questions == |
| 188 | I specified a prerequisite with `--with-xyz=PATH` but `configure.vbs` is unable to find it.:: |
| 189 | Look at the `configure.log` file. The directory layout might be unexpected. For example the `OpenSSL` package should contain two directories, the '`lib`' directory which contains `libssl.lib` and `libcrypto.lib` and the '`include`' directory. |
| 190 | |
| 191 | Build stops immediately with ''!***You need to enable code signing for a hardened windows build to work''.:: |
| 192 | The message is clear: Code signing must work as Windows will only work with properly signed drivers. A temporary workaround for testing is to add '''`VBOX_WITHOUT_HARDENING=1`''' to your `LocalConfig.kmk`. Never use this setting for production environments! |
| 193 | |
| 194 | Typing `kmk` raises a message box ''The application was unable to start correctly (0xc0000022). Click OK to close the application.'':: |
| 195 | Error code `0xc0000022` means `STATUS_ACCESS_DENIED`. Most likely the `kmk.exe` binary or a DLL (e.g. kBuild\bin\win.x86\msvcr100.dll or kBuild\bin\win.amd64\msvcr100.dll) have the execute bit unset. This happens if the .tar.bz2 archive is unpacked using Cygwin binaries. Solution: Set the execute bit on all `.exe` and `.dll` files in the source tree. Of course the same applies to all `.exe` and `.dll` files in the prerequisites directories! |
| 196 | |
| 197 | How can I create the !VirtualBox.exe package similar to the one available on the official download page?:: |
| 198 | This is controlled by adding `VBOX_WITH_COMBINED_PACKAGE=1`. Such a package combines two `.msi` packages: The 32-bit version and the 64-bit version. |