进入common文件夹下直接./configure就可以了,然后进入common下的目录zlib下,查看README,会看到这样一句话For Unix: "./configure; make; make install",然后按照这个步骤执行就可以了
上面执行完后进入common,进行configure和make
然后进图unix目录,还是先看README
To build everything but Xvnc, do:
48
49 % ./configure
50 % make
51
52 This should build first some libraries - zlib, rdr, network, Xregion, rfb an d
53 tx - then vncviewer, vncconfig and vncpasswd. If you already have zlib
54 installed on your system you can run "./configure --with-installed-zlib" if you
55 prefer (this is strongly advised on FreeBSD, since we‘ve been told there are
56 problems otherwise).
57
58 Building Xvnc
59 =============这就是编译步骤
./configure --with-installed-zlib没有问题
make出现了问题
TcpSocket.cxx: 在静态成员函数‘static network::TcpFilter::Pattern network::TcpFilter::parsePattern(const char*)’中:
TcpSocket.cxx:421:35: 错误: ‘atoi’在此作用域中尚未声明
make[2]: *** [TcpSocket.o] 错误 1
这个问题很简单这是在TcpSocket.cxx中没有包含atoi的头文件,加上#include <stdio.h> #include <stdlib.h> 就可以了
root@ubuntu-virtual-machine:~/tt/vnc-4_1_3-unixsrc/vnc-4_1_3-unixsrc/common/network# vim TcpSocket.cxx