After more 2 000 000 (two million) views on forum for 1.5.0.x development versions... and 1.6.1.0, 1.6.3.0-dev versions
A new stable version, UltraVNC 1.6.4.0 and UltraVNC SC 1.6.4.0 have been released: https://forum.uvnc.com/viewtopic.php?t=38095
Feedback is always welcome

2026-04-01: After 1.7.x, 1.8.x release builds need tests and feedback: https://forum.uvnc.com/viewtopic.php?t=38158

2026-03-11: CVE-2026-3787 and CVE-2026-4962 - Clarification: https://forum.uvnc.com/viewtopic.php?t=38155

2025-12-02: We need help: English Wikipedia UltraVNC page has been requested to deletion: https://forum.uvnc.com/viewtopic.php?t=38127
Any help is welcome to improve the UltraVNC page and/or to comment on the Wikipedia Talk page

2025-05-06: Forum password change request: https://forum.uvnc.com/viewtopic.php?t=38078

2023-09-21: Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/viewtopic.php?t=37864

Development: UltraVNC development is always here... Any help is welcome
Feedback is welcome

Help is very needed for:
Windows ARM/ARM64 support: https://forum.uvnc.com/viewtopic.php?t=38163 / https://github.com/ultravnc/UltraVNC/issues/346
macOS support: https://forum.uvnc.com/viewtopic.php?t=38164 / https://github.com/ultravnc/UltraVNC/issues/347
Linux support: https://forum.uvnc.com/viewtopic.php?t=38165 / https://github.com/ultravnc/UltraVNC/issues/348
*BSD support: https://forum.uvnc.com/viewtopic.php?t=38166 / https://github.com/ultravnc/UltraVNC/issues/349
*Solaris support: https://forum.uvnc.com/viewtopic.php?t=38167 / https://github.com/ultravnc/UltraVNC/issues/350

Compiling WinVNC project

Developers may discuss here
Post Reply
rnsudhir
Posts: 7
Joined: 2010-02-08 11:53

Compiling WinVNC project

Post by rnsudhir »

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.
Cheers
Sudhir
RudiDeVos
Admin & Developer
Admin & Developer
Posts: 7023
Joined: 2004-04-23 10:21
Contact:

Re: Compiling WinVNC project

Post by RudiDeVos »

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
UltraVNC links (join us on social networks):
- Website: https://uvnc.com/
- Forum: https://forum.uvnc.com/
- GitHub sourcecode: https://github.com/ultravnc/UltraVNC
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
- uvnc2me: https://uvnc2me.com/
rnsudhir
Posts: 7
Joined: 2010-02-08 11:53

Re: Compiling WinVNC project

Post by rnsudhir »

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 ?
Cheers
Sudhir
rnsudhir
Posts: 7
Joined: 2010-02-08 11:53

Re: Compiling WinVNC project

Post by rnsudhir »

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.
Cheers
Sudhir
rnsudhir
Posts: 7
Joined: 2010-02-08 11:53

Re: Compiling WinVNC project

Post by rnsudhir »

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.
Cheers
Sudhir
RudiDeVos
Admin & Developer
Admin & Developer
Posts: 7023
Joined: 2004-04-23 10:21
Contact:

Re: Compiling WinVNC project

Post by RudiDeVos »

Directx sdk -> only needed for viewer
UltraVNC links (join us on social networks):
- Website: https://uvnc.com/
- Forum: https://forum.uvnc.com/
- GitHub sourcecode: https://github.com/ultravnc/UltraVNC
- Mastodon: https://mastodon.social/@ultravnc
- Bluesky/AT Protocol: https://bsky.app/profile/ultravnc.bsky.social
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
- uvnc2me: https://uvnc2me.com/
Post Reply