debian上源码安装vnc的全纪录

版权声明:微信 kobesdu https://blog.csdn.net/kobesdu/article/details/90206312

在common/zlib文件夹下

命令

./configure --with-installed-zlib

在vncsrc的common的文件夹下面  ./configure 提示错误

configure: error: installation or configuration problem: C++ compiler cannot create executables.

 

查看config.log文件 发现

9: c++ -o conftest    conftest.C  1>&5

./configure: 1: eval: c++: not found

 

因此安装g++

sudo apt-get install make gcc g++

可以编译

然后 make 成功

然后进入 unix目录下

/configure 命令成功

但是make的时候,报错

In file included from TXWindow.cxx:23:0:

TXWindow.h:33:22: fatal error: X11/Xlib.h: 没有那个文件或目录

 #include <X11/Xlib.h>

安装x11即可

 apt-get install libx11-dev

 

再次编译 报错

‘atoi'was not declared in this scope

TcpSocket.cxx文件中调用了atoi函数,但是没有声明atoi函数的头文件

解决办法:打开TcpSocket.cxx文件添加#include<stdio.h>和#include <stdlib.h>

再次编译 报错

malloc was not declared in this scope

解决方法同上

最终make成功

进入对应的文件夹下调用可执行文件即可

 

 

猜你喜欢

转载自blog.csdn.net/kobesdu/article/details/90206312