Compiling 1.0.9.5 on Visual Studio 2008

Post Reply
shadowfax
40
40
Posts: 77
Joined: 2010-05-06 12:28
Location: Spain

Compiling 1.0.9.5 on Visual Studio 2008

Post by shadowfax »

Just in case somebody has troubles compiling the project here is what I've done:

1) Install NASM from http://www.nasm.us/

2) Add NASM to your path by opening Visual Studio Command prompt and execute

Code: Select all

path = %PATH%;<path_to_nasm_install_dir>
3) Open ./zlib-1.2.5/contrib/vstudio/vc9/zlibstat.vcproj in a text editor.
3.1) Change every line stating

Code: Select all

InheritedPropertySheets="C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\VCProjectDefaults\UpgradeFromVC70.vsprops"
to

Code: Select all

InheritedPropertySheets="UpgradeFromVC70.vsprops"
4) Open ./winvnc/winvnc2008.sln in VisualStudio 2008

4.1) Open Properties for zlibstat project.

4.2) Browse to Configuration Properties->C/C++->Preprocesor and in the preprocesor defines remove ZLIB_WINAPI

This way I got it to compile under Visual Studio 2008.

Best regards
Post Reply