您好,欢迎访问一九零五行业门户网

TightVNC 2.0.4在VC2010下的编译

tightvnc 2.0.4在vc2010下的编译 tightvnc 2.0.4版本由服务端tvnserver-2.0.4和客户端tvnviewer-1.5.4组成。可从http://www.tightvnc.com/download.php获取源码。本文介绍在vc2010下编译tightvnc2.0.04。 编译服务端tvnserver-2.0.4 修改desktop-ipc工程,排
tightvnc 2.0.4在vc2010下的编译tightvnc 2.0.4版本由服务端tvnserver-2.0.4和客户端tvnviewer-1.5.4组成。可从http://www.tightvnc.com/download.php获取源码。本文介绍在vc2010下编译tightvnc2.0.04。
编译服务端tvnserver-2.0.4 
修改desktop-ipc工程,排除ipcserver.cpp文件。
因为desktop-ipc工程包含了一个不存在的文件ipcserver.cpp,直接编译会提示找不到ipcserver.cpp文件,因此需要从工程中排除此文件。右键选择该文件,在在弹出菜单中选择properties,弹出属性对话框,在configuration properties/general选项卡中,修改exclude from build的值为yes,默认为no。
修改win-system工程,添加文件pipeimpersonatedthread.cpp,否则在连接tvnserver时会出现如下link错误:
1>------ build started: project: tvnserver, configuration: debug win32 ------
1>win-system.lib(wts.obj) : error lnk2019: unresolved external symbol public: virtual __thiscall pipeimpersonatedthread::~pipeimpersonatedthread(void) (1pipeimpersonatedthread@@uae@xz) referenced in function __catch$?duplicatepipeclienttoken@wts@@saxpax@z$0
1>win-system.lib(wts.obj) : error lnk2019: unresolved external symbol public: void __thiscall pipeimpersonatedthread::getfaultreason(class stringstorage *) (?getfaultreason@pipeimpersonatedthread@@qaexpavstringstorage@@@z) referenced in function public: static void __cdecl wts::duplicatepipeclienttoken(void *) (?duplicatepipeclienttoken@wts@@saxpax@z)
1>win-system.lib(wts.obj) : error lnk2019: unresolved external symbol public: bool __thiscall pipeimpersonatedthread::getimpersonationsuccess(void) (?getimpersonationsuccess@pipeimpersonatedthread@@qae_nxz) referenced in function public: static void __cdecl wts::duplicatepipeclienttoken(void *) (?duplicatepipeclienttoken@wts@@saxpax@z)
1>win-system.lib(wts.obj) : error lnk2019: unresolved external symbol public: void __thiscall pipeimpersonatedthread::waituntilimpersonated(void) (?waituntilimpersonated@pipeimpersonatedthread@@qaexxz) referenced in function public: static void __cdecl wts::duplicatepipeclienttoken(void *) (?duplicatepipeclienttoken@wts@@saxpax@z)
1>win-system.lib(wts.obj) : error lnk2019: unresolved external symbol public: __thiscall pipeimpersonatedthread::pipeimpersonatedthread(void *) (0pipeimpersonatedthread@@qae@pax@z) referenced in function public: static void __cdecl wts::duplicatepipeclienttoken(void *) (?duplicatepipeclienttoken@wts@@saxpax@z)
1>f:\2-研d发¤?é库a\远?程¨?控?制?\tightvnc\tvnserver-2.0.4\debug\tvnserver.exe : fatal error lnk1120: 5 unresolved externals
========== build: 0 succeeded, 1 failed, 23 up-to-date, 0 skipped ==========
build tvnserver工程即可完成服务端的构建,构建完后,会在tvnserver-2.0.4目录下生成debug目录,在debug目录下会生成许多lib库和tvnserver.exe。
编译客户端tvnviewer-1.5.4 
将所有工程的字符集设置为多字节字符集。
在工程设置对话框的configuration properties/general选项卡,将character set设置为use multi-byte character set,默认为use unicode character set。
修改win-system工程,添加文件pipeimpersonatedthread.cpp。
build tvnviewer工程即可完成客户端的构建,构建完后,会在tvnviewer-1.5.4目录下生成debug目录,在debug目录下会生成许多lib库和vncviewer.exe。
其它类似信息

推荐信息