How to combile ultraVNC, step by step

118 with a lot of bug fixes.

How to combile ultraVNC, step by step

Postby advcom » 2013-11-19 17:17

I have used ultaVNC for years and have programmed in VB.net and C#.I decided recently to started learning C++ and successfully modified and recompiled uvncrepeater. I wanted to make a few changes to VNC Viewer, so I downloaded the source for 1.1.9.3. I have not been able to successfully compile VNC Viewer using Visual Studios 2010 or Visual Studios 2005. I am sure I am just doing something wrong, but I figured it would be nice if someone with experience could help me and others by answering a few basic questions and maybe giving a basic tutorial here. I started with Visual Studios 2010 because I am the most familiar with it, but hit an immediate error. I then tried VS2005 and got farther, but still had many errors. Before I go into any details about the errors, I would like to first start with a couple of very basic questions. At this point, I am only interested in compiling VNC Viewer. Can I use VS2010 for this? If not, what is recommended? Also, there seems to be a variety of project files, which one should I be using? I tried all the ones I though may work, but no luck. Thank you.
advcom
 
Posts: 5
Joined: 2013-11-19 16:49

Re: How to combile ultraVNC, step by step

Postby Rudi De Vos » 2013-11-19 19:50

tested compilers:
VS 2008 (vncviewer_vs2008.sln)
vs 2010 (vncviewer.sln)
vs 2012 (vncviewerv11.sln)
vs 2013 (vncviewer_vs2013.sln)

After you installed the compiler you need to install directx
*Microsoft DirectX SDK (June 2010)
make sure the add the include and lib to VS if this is not done auto
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Include
and for each platform the correct libs
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x86
C:\Program Files (x86)\Microsoft DirectX SDK (June 2010)\Lib\x64
*nasm
This is the assembler compiler
download: http://www.nasm.us/
make sure the VS exe path contain the nasm install path so VS find the nasm.exe

Possible you need to disable some postbuild options use for signing the exe
Build events-> post-build event -> Use in build -> NO

That's all
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5846
Joined: 2004-04-23 10:21

Re: How to combile ultraVNC, step by step

Postby advcom » 2013-11-21 19:30

Thank you for the info, I got much farther this time. I am just interested in compiling vncviewer, so I just loaded vncviewer.sln with VS2010 and it opened up fine. I successfully compliled:
omnithread
rdr
unz32lib
zip32
zlibstat

However, compile failed for vncviewer and libjpeg-turbo-win.
Compiling vncviewer gives me: Error 90 error LNK1181: cannot open input file libjpeg-turbo-win.lib'
I would assume that is because libjpeg-turbo-win failed to compile. When I try to compile libjpeg-turbo-win, I get the following error:
Error 89 error MSB6006: "cmd.exe" exited with code 9009. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Microsoft.CppCommon.targets 151 6 libjpeg-turbo-win

I looked on Google, but could not find anything relevant and don't know where to go from here. Any suggestions?
advcom
 
Posts: 5
Joined: 2013-11-19 16:49

Re: How to combile ultraVNC, step by step

Postby Rudi De Vos » 2013-11-21 20:31

9009= file not found
are you sure nasm is in the path

normal is starts like this
1>------ Rebuild All started: Project: libjpeg-turbo-win, Configuration: ReleaseLib-Static Win32 ------
1> nasm -fwin32 -DWIN32 -DMSVC -Iwin/ -Isimd/ -o "C:\Users\rudi\Desktop\1195\UltraVNC Project Root\UltraVNC\vncviewer\ReleaseLib-Static\jccolmmx.obj" "simd/jccolmmx.asm"
1> nasm -fwin32 -DWIN32 -DMSVC -Iwin/ -Isimd/ -o "C:\Users\rudi\Desktop\1195\UltraVNC Project Root\UltraVNC\vncviewer\ReleaseLib-Static\jccolss2.obj" "simd/jccolss2.asm"
Rudi De Vos
Admin & Developer
Admin & Developer
 
Posts: 5846
Joined: 2004-04-23 10:21

Re: How to combile ultraVNC, step by step

Postby advcom » 2013-11-21 23:44

That worked, both compiled now and have my exe. Thanking you for the help, that was easy, once I knew a few basic things.
advcom
 
Posts: 5
Joined: 2013-11-19 16:49


Return to 1.1.9.x

Who is online

Users browsing this forum: No registered users and 2 guests

cron