Compiling Zandronum with Visual Studio: Difference between revisions
Compiling Zandronum with Visual Studio (view source)
Revision as of 12:31, 2 September 2016
, 2 September 2016→OpenSSL
DrinkyBird (talk | contribs) m (Sean moved page Compiling Zandronum on Visual Studio to Compiling Zandronum with Visual Studio) |
|||
Line 43: | Line 43: | ||
== OpenSSL == | == OpenSSL == | ||
OpenSSL is necessary in order for Zandronum to communicate securely with the account authentication server. | |||
Precompiled binaries for Windows are available from [https://slproweb.com/products/Win32OpenSSL.html Shining Light Productions]. You will want the latest non-light edition of OpenSSL 1.0.2 - the description of the correct package mentions "software developers". You should have a choice between 32-bit and 64-bit versions - you will most likely need the 32-bit version unless you are using CMake and select the 64-bit compiler when generating your build files. | |||
=== Building OpenSSL === | === Building OpenSSL === | ||
If the above packages | If the above packages do not work, you can compile OpenSSL yourself. This is a lengthy and complicated process, so be sure that the existing binaries of OpenSSL definitely don't work before you try this. | ||
Perl is necessary to build OpenSSL. If you don't have Perl installed already, install [http://www.activestate.com/activeperl ActiveState Perl]. | * Perl is necessary to build OpenSSL. If you don't have Perl installed already, install [http://www.activestate.com/activeperl ActiveState Perl]. | ||
* NASM executable directory | * NASM executable directory must be in the host system's <code>PATH</code> environment variable. | ||
* Download and decompress the latest source of [https://www.openssl.org/source/ OpenSSL]. In the | * Download and decompress the latest source of [https://www.openssl.org/source/ OpenSSL]. In the source directory call | ||
perl Configure VC-WIN32 --prefix=c:\Tools\Util\openssl | perl Configure VC-WIN32 --prefix=c:\Tools\Util\openssl | ||
ms\do_nasm | ms\do_nasm | ||
* Replace | * Replace <code>c:\Tools\Util\openssl</code> with the path where you want OpenSSL to be installed. Then, in the same directory, but within a [http://msdn.microsoft.com/en-us/library/ms229859%28v=vs.110%29.aspx VC++ command prompt], call | ||
nmake -f ms\nt.mak | nmake -f ms\nt.mak | ||
Line 68: | Line 66: | ||
nmake -f ms\nt.mak install | nmake -f ms\nt.mak install | ||
* If an error message 'WinSock32.h does not exist!' is displayed (or the like), you'll need to add these two lines to your console's temporary environment: | |||
SET INCLUDE=%INCLUDE%;c:\Program Files\Microsoft SDKs\Windows\v7.0\Include\ | |||
SET LIB=%LIB%;c:\Program Files\Microsoft SDKs\Windows\v7.0\Lib\ | |||
== Python == | == Python == |