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

Compile UVnc 1.2.0.9 with VS2008

Post Reply
Marc
8
8
Posts: 9
Joined: 2015-11-04 21:15

Compile UVnc 1.2.0.9 with VS2008

Post by Marc »

I dowloaded the UVNC code version 1.2.0.9-966 and in subdirectory vncviewer I opened vncviewer2008.sln (using visual studio 2008)
I try to complie vncviewer to an exe but so far without any luck.
Downloaded DirectX SDK (2010)
In the solution explorer/vncviewer properties in the window Configuration properties under C/C++ under general the directXSDK/include directory so that the d3dx9.h file could be found.

Then I copied stdint.h to C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\include.

When building VNCViewer I am stuck with a list of 12 warnings an 19 errors:
Error 13 error LNK2019: unresolved external symbol _uncompress referenced in function "private: void __thiscall ClientConnection::ReadCacheZip(struct rfbFramebufferUpdateRectHeader *,struct HRGN__ * *)" (?ReadCacheZip@ClientConnection@@AAEXPAUrfbFramebufferUpdateRectHeader@@PAPAUHRGN__@@@Z) ClientConnectionCacheRect.obj vncviewer
Error 14 error LNK2001: unresolved external symbol _uncompress ClientConnectionZlib.obj vncviewer
Error 16 error LNK2019: unresolved external symbol _inflate referenced in function "private: void __thiscall ClientConnection::ReadTightRect(struct rfbFramebufferUpdateRectHeader *)" (?ReadTightRect@ClientConnection@@AAEXPAUrfbFramebufferUpdateRectHeader@@@Z) ClientConnectionTight.obj vncviewer
Error 17 error LNK2001: unresolved external symbol _inflate ClientConnectionZlib.obj vncviewer
Error 20 error LNK2019: unresolved external symbol _inflateInit_ referenced in function "private: void __thiscall ClientConnection::ReadTightRect(struct rfbFramebufferUpdateRectHeader *)" (?ReadTightRect@ClientConnection@@AAEXPAUrfbFramebufferUpdateRectHeader@@@Z) ClientConnectionTight.obj vncviewer
Error 21 error LNK2001: unresolved external symbol _inflateInit_ ClientConnectionZlib.obj vncviewer

and some more.

It feels like I am on the wrong road. Can you give me any direction how to get this right?
If you need the full list of error messges and warnings, just let me know.

Any help is appreciated.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Compile UVnc 1.2.0.9 with VS2008

Post by Rudi De Vos »

You need directx sdk, normal you include the direct folders for the headers and the libs in the VS properties of the project.
You also need nasm compiler the nasm.exe als need to be inluded in the exe path

We compiled with VS2015 (Vista) and VS2010 (w2K/xp)

You need to use winvnc2008.sln / vncviewer_vs2008.sln to start Visual studio.
Looks like you started VS with one of the subprojects
Marc
8
8
Posts: 9
Joined: 2015-11-04 21:15

Re: Compile UVnc 1.2.0.9 with VS2008

Post by Marc »

Hi Rudy

I did as you recommended:
Downloaded and installed:
nasm
DirectX SDK (2010)
VD2015 Community edition

Opened vncviewer_2008.sln in VS2015. It contains 7 projects with a.o. vncviewer (the one I wanted to build)
In the solution explorer I selected the vncviewer project with the right mouse button and selected properties of vncviewer
Selected VC++ directories (
In Executable Directories I added the path to nasm.exe
In Include Directories I added the path to DirectX SDK (2010)/include
In Library Directories I added the path to DirectX SDK (2010)/library/x64
In Library Directories I added the path to DirectX SDK (2010)/library/x86

Saved and closed the property pages.
And then tried to Build the vncviewer solution.

Got 19 errors and 40 warnings;
like:

Severity Code Description Project File Line
Error LNK2001 unresolved external symbol _inflateInit_ vncviewer D:\Anatec Software Ontwikkeling\Remote Desktop\ultravnc-code-966\UltraVNC Project Root\UltraVNC\vncviewer\rdr.lib(ZlibInStream.obj) 1

Severity Code Description Project File Line
Error LNK2001 unresolved external symbol _inflateInit_ vncviewer D:\Anatec Software Ontwikkeling\Remote Desktop\ultravnc-code-966\UltraVNC Project Root\UltraVNC\vncviewer\ClientConnectionZlibHex.obj 1

Severity Code Description Project File Line
Error LNK2019 unresolved external symbol _uncompress referenced in function "private: void __thiscall ClientConnection::ReadCacheZip(struct rfbFramebufferUpdateRectHeader *,struct HRGN__ * *)" (?ReadCacheZip@ClientConnection@@AAEXPAUrfbFramebufferUpdateRectHeader@@PAPAUHRGN__@@@Z) vncviewer D:\Anatec Software Ontwikkeling\Remote Desktop\ultravnc-code-966\UltraVNC Project Root\UltraVNC\vncviewer\ClientConnectionCacheRect.obj 1


So I am still stuck.
Do all 7 projcts have to be configured as described (with the path to the include files, exe files, lib files)?
Or am I still on the wrong road?
Marc
8
8
Posts: 9
Joined: 2015-11-04 21:15

Re: Compile UVnc 1.2.0.9 with VS2008

Post by Marc »

Hi Rudy

I just got it working with vs 2015 and opening vncviewer_vs2013.sln.

Thanks for your help.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Compile UVnc 1.2.0.9 with VS2008

Post by Rudi De Vos »

Strange it doesn't work with VS2008 because i still used it to compile the w2K version.
(i'm sure that the release 32bit is working)
All debug stuff i do on the latest compiler, they have a better precompiler.
Marc
8
8
Posts: 9
Joined: 2015-11-04 21:15

Re: Compile UVnc 1.2.0.9 with VS2008

Post by Marc »

Tried it again with VS2008 but got the errors :
Error 1 fatal error C1083: Cannot open include file: 'stdint.h': No such file or directory d:\Anatec Software Ontwikkeling\Remote Desktop\ultravnc-code-966\UltraVNC Project Root\UltraVNC\rdr\xzOutStream.h 31 vncviewer
Error 2 error BK1506 : cannot open file '.\Debug\ClientConnection.sbr': No such file or directory BSCMAKE vncviewer


Maybe I should stick to VS2015 because it works now.
I have another question about this but I'll open a new thread for it.
User avatar
Rudi De Vos
Admin & Developer
Admin & Developer
Posts: 6832
Joined: 2004-04-23 10:21
Contact:

Re: Compile UVnc 1.2.0.9 with VS2008

Post by Rudi De Vos »

xzOutStream.h should not be used with VS2008, not supported.

already corrected is svn
http://sourceforge.net/p/ultravnc/code/969/
Post Reply