Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: viewtopic.php?t=37864

Join us on social networks and share our announcements:
- Website: https://uvnc.com/
- GitHub: https://github.com/ultravnc
- Mastodon: https://mastodon.social/@ultravnc
- Facebook: https://www.facebook.com/ultravnc1
- X/Twitter: https://twitter.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc

What is needed to build UltraVNC from source?

Post Reply
bz922x
Posts: 7
Joined: 2005-07-04 16:57

What is needed to build UltraVNC from source?

Post by bz922x »

Devs,

I would like to make a small change to UltraVNC's winvnc (to remove superfluous scroll bars in the Java viewer [post=64331][/post] ).

I don't like to make others verify my proposed changes, I like to run my own unit tests before asking for a review, so I have checked out the head version from SVN and tried to compile. I am getting enough problems that I think I must be missing something fundamental about how to compile this thing.

I have tried using MS VC++ 2005 Express, MS VC++ 2008 Express and have loaded a variety of versions of Windows SDKs, but no combination that I have tried has let me successfully compile (None of the SDKs I tried had atlbase.h in the include directories).

Therefore my questions:
What compiler was used to build the download binaries?
What SDK was used for headers and libraries?
Is there a brief walkthrough of the build process available? (It is obviously complex as the java viewer must be compiled to a .jar and copied to the resource directory. I imagine that there are other compile and copy steps in the process.)

Thanks.
God grant me the serenity to accept the code I cannot change, the courage to change the code I can change, and the wisdom to know the difference.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6839
Joined: 2004-04-23 10:21
Contact:

Re: What is needed to build UltraVNC from source?

Post by Rudi De Vos »

We use the MS vc++ 2008 ( Visual studio)
We didn't install any SDK's, but the SDK are auto downloaded
by Visual studio.

Java is embedded as a resource, so in theory for testing a new java
viewer you could also change the resource with some kind of resource
hacker.

ATL support

Via google i found
--------------------
Visual C++ 9 (VS2008) Express
Download and install the Windows 7 SDK.
EITHER
Download and install the Windows Server 2003 R2 Platform SDK as well, OR
Disable code that uses ATL -- see atlbase.h.
-----------------------
Last edited by Rudi De Vos on 2009-12-09 21:33, edited 1 time in total.
bz922x
Posts: 7
Joined: 2005-07-04 16:57

Re: What is needed to build UltraVNC from source?

Post by bz922x »

Rudi,

Thank you. Microsoft makes it very hard to find and install the Windows Server 2003 R2 Platform SDK. The atlthunk workaround from [topic=7464][/topic] was necessary. I also had to add gdi32.lib, user32.lib, and shell32.lib to the winvnc project's Properties -> Linker -> Input -> Additional Dependencies in VC++ 2005 Express to get winvnc to build.

I have now tested my proposed change and will post it to the Java Viewer thread (where I started [topic=14561][/topic]) so that it may be considered for committing.

Thanks,
Tom Goodman
God grant me the serenity to accept the code I cannot change, the courage to change the code I can change, and the wisdom to know the difference.
Post Reply