Compiling WinVNC project

Developers may discuss here.

Compiling WinVNC project

Postby rnsudhir » 2014-10-20 10:17

I am using ultra vnc for my personal purpose from long time.
I am trying to build the urltravnc code to understand it and if possible contribute to it.


I tried installing VS2012 and load the project winvncv11 or latest source code version 879.
I am not able to load some of the projects like SCHook, SecureVNCPlugin, setup and w8hook.
Also when I build it gives me :
Error 1 error MSB6006: "cmd.exe" exited with code 9009. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 172
Error 3 error LNK1181: cannot open input file 'D:\ultravnc-code-879\UltraVNC Project Root\UltraVNC\winvnc\x64\ReleaseDll-Static\libjpeg-turbo-winv11.lib' D:\ultravnc-code-879\UltraVNC Project Root\UltraVNC\winvnc\winvnc\LINK

Also tried to build winvnc2008.sln using VS2008. This gives me

Error 1 error PRJ0019: A tool returned an error code from "nasm -fwin32 -DWIN32 -DMSVC -Iwin/ -Isimd/ -o "D:\ultravnc-code-879\UltraVNC Project Root\UltraVNC\winvnc\ReleaseLib-Static/jsimdcpu.obj" "simd/jsimdcpu.asm"" libjpeg-turbo-win


Can I know the steps of compiling the project.
Also any dependencies which I have to download.
I could not find any kind of documentation for the same. if anyone can point out some link that would be of great help.
rnsudhir
 
Posts: 7
Joined: 2010-02-08 11:53

Re: Compiling WinVNC project

Postby Rudi De Vos » 2014-10-20 11:53

1 installed VS2012 on a blank win7 32 system
2 Installed DIrectx SDK
3 Installed nasm in VS application Path
4 downloaded UVNC Source ultravnc-code-879 from sourceforge
5 select winvncv12.sln or vncviewer_vs2013.sln
5 set DirectX path in VS (lib and Include)
6 Build-Events Post-Build-Us In Build =No
7 Set default project to winvnc or vncviewer
7 Compile

SCHook, SecureVNCPlugin, setup and w8hook Are not part of winvnc or vncviewer, no need to compile.
If you select winvnc or vncviewer you also compile all dependecies
nasm: need to be downloaded http://www.nasm.us/

winvnc.sln VS2010 -> support XP
winvnc2008.sln VS2008 -> support w2K
winvncv11.sln not used
winvncv12.sln VS2013 -> Vista >=
winvncvs2005.sln not used
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5369
Joined: 2004-04-23 10:21

Re: Compiling WinVNC project

Postby rnsudhir » 2014-10-24 12:20

Thanks Rudi for your quick response.

But from your mapping below I cannot use VS 2012 to successfully build any project. I need VS2013 to build winvnc12.sln. Is that correct ?

winvnc.sln VS2010 -> support XP
winvnc2008.sln VS2008 -> support w2K
winvncv11.sln not used
winvncv12.sln VS2013 -> Vista >=
winvncvs2005.sln not used

I am getting the following error when I build winvncv12.sln with VS2012 :
Error 1 error MSB8020: The builds tools for v120 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, either click the Project menu or right-click the solution, and then select "Update VC++ Projects...". Install v120 to build using the v120 build tools. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.Cpp.Platform.targets.

The above error also confirms that mapping. But I would like to know how you could build with VS2012. I do not have VS2013 license right now.

To explain all my steps for confirmation :

installed VS2012 on a blank win7 32 system (Done)
Installed DIrectx SDK (Installed Microsoft DirectX SDK (June 2010))
Installed nasm in VS application Path ( I understood as adding the nasm.exe file path to path env variable or copying nasm.exe file to location where devenv.exe of VS2012 is present)
downloaded UVNC Source ultravnc-code-879 from sourceforge(Done)
select winvncv12.sln or vncviewer_vs2013.sln (selected winvncv12.sln)
set DirectX path in VS (lib and Include) ( I have opened project properties of winvnc project under winvncv12.sln and added include and lib paths of Microsoft DirectX SDK (June 2010) to VC++ Directories)
Build-Events Post-Build-Us In Build =No (Done)

Please correct me if something is wrong. Also suggest me how I can build winvncv12.sln using VS 2012. Or should I install VS 2013 ?
rnsudhir
 
Posts: 7
Joined: 2010-02-08 11:53

Re: Compiling WinVNC project

Postby rnsudhir » 2014-10-24 13:11

I could resolve the error by setting all the project properties to use V110 tool set in release mode and then got the following errors

Error 6 error MSB6006: "cmd.exe" exited with code 9009. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 172
Error 7 error : No certificates were found that met all the given criteria. C:\Users\Admin\Downloads\ultravnc-code-881\UltraVNC Project Root\UltraVNC\winvnc\vnchooks\EXEC
Error 8 error MSB3073: The command "signtool.exe sign /a /n "uvnc bvba" /v /t http://timestamp.verisign.com/scripts/timstamp.dll "C:\Users\Admin\Downloads\ultravnc-code-881\UltraVNC Project Root\UltraVNC\winvnc\Release\vnchooks.dll"
:VCEnd" exited with code 1. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 134


In Debug mode I got the following erros:
Error 6 error MSB6006: "cmd.exe" exited with code 9009. C:\Program Files\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets 172

In my earlier post I have mentioned all my steps. Please correct me if I am missing something. Also I am using ultravnc-code-881 source code.
rnsudhir
 
Posts: 7
Joined: 2010-02-08 11:53

Re: Compiling WinVNC project

Postby rnsudhir » 2014-10-24 19:49

I could build the winvnc project now on another machine Windows 7 64 bit with same steps.

But this is without DirectX SDK installed. I am not sure what is replacing it.
I would love to know what is replacing DirectX SDK for winvnc project.

Thanks again for your help Rudi.
rnsudhir
 
Posts: 7
Joined: 2010-02-08 11:53

Re: Compiling WinVNC project

Postby Rudi De Vos » 2014-10-25 10:19

Directx sdk -> only needed for viewer
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5369
Joined: 2004-04-23 10:21


Return to Developer discussions (mainly user-mode)

Who is online

Users browsing this forum: No registered users and 2 guests