Update: UltraVNC 1.4.3.6 and UltraVNC SC 1.4.3.6: https://forum.uvnc.com/viewtopic.php?t=37885
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/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://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
Important: Please update to latest version before to create a reply, a topic or an issue: https://forum.uvnc.com/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://x.com/ultravnc1
- Reddit community: https://www.reddit.com/r/ultravnc
- OpenHub: https://openhub.net/p/ultravnc
How to combile ultraVNC, step by step
How to combile ultraVNC, step by step
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.
- Rudi De Vos
- Admin & Developer
- Posts: 6863
- Joined: 2004-04-23 10:21
- Contact:
Re: How to combile ultraVNC, step by step
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
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
Re: How to combile ultraVNC, step by step
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?
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?
- Rudi De Vos
- Admin & Developer
- Posts: 6863
- Joined: 2004-04-23 10:21
- Contact:
Re: How to combile ultraVNC, step by step
9009= file not found
are you sure nasm is in the path
normal is starts like this
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"
Re: How to combile ultraVNC, step by step
That worked, both compiled now and have my exe. Thanking you for the help, that was easy, once I knew a few basic things.