LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1004|回复: 6

在DEBIAN下编译VNC源代码出错了!!

[复制链接]
发表于 2006-10-19 22:15:05 | 显示全部楼层 |阅读模式
make
make[1]: Entering directory `/home/xiao/vnc-3.3.7/zlib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/xiao/vnc-3.3.7/zlib'
make[1]: Entering directory `/home/xiao/vnc-3.3.7/rdr'
make[1]: Leaving directory `/home/xiao/vnc-3.3.7/rdr'
make[1]: Entering directory `/home/xiao/vnc-3.3.7/rfb'
make[1]: Leaving directory `/home/xiao/vnc-3.3.7/rfb'
make[1]: Entering directory `/home/xiao/vnc-3.3.7/vncconnect'
gcc  -DX_DISPLAY_MISSING=1   -O2 -Wall  -c vncconnect.c
vncconnect.c:28:22: X11/Xlib.h: No such file or directory
vncconnect.c:29:23: X11/Xatom.h: No such file or directory
vncconnect.c: In function `main':
vncconnect.c:52: error: `Display' undeclared (first use in this function)
vncconnect.c:52: error: (Each undeclared identifier is reported only once
vncconnect.c:52: error: for each function it appears in.)
vncconnect.c:52: error: `dpy' undeclared (first use in this function)
vncconnect.c:54: error: `Atom' undeclared (first use in this function)
vncconnect.c:54: error: syntax error before "VNC_CONNECT"
vncconnect.c:55: error: `Bool' undeclared (first use in this function)
vncconnect.c:69: error: `away' undeclared (first use in this function)
vncconnect.c:69: error: `True' undeclared (first use in this function)
vncconnect.c:88: warning: implicit declaration of function `XOpenDisplay'
vncconnect.c:90: warning: implicit declaration of function `XDisplayName'
vncconnect.c:90: warning: format argument is not a pointer (arg 4)
vncconnect.c:95: error: `VNC_DEFER_UPDATE' undeclared (first use in this function)
vncconnect.c:95: warning: implicit declaration of function `XInternAtom'
vncconnect.c:95: error: `False' undeclared (first use in this function)
vncconnect.c:96: warning: implicit declaration of function `XChangeProperty'
vncconnect.c:96: warning: implicit declaration of function `DefaultRootWindow'
vncconnect.c:96: error: `XA_STRING' undeclared (first use in this function)
vncconnect.c:97: error: `PropModeReplace' undeclared (first use in this function)
vncconnect.c:100: error: `VNC_CONNECT' undeclared (first use in this function)
vncconnect.c:106: warning: implicit declaration of function `XCloseDisplay'
make[1]: *** [vncconnect.o] Error 1
make[1]: Leaving directory `/home/xiao/vnc-3.3.7/vncconnect'
make: *** [all] Error 1

好像是说少了XFREE86的开发包,但不知道该安装哪个啊,大家帮个忙!谢谢啊!
发表于 2006-10-20 07:39:23 | 显示全部楼层
libx11-dev ?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-20 09:27:23 | 显示全部楼层
好,我试试看
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-20 09:48:54 | 显示全部楼层
好像不对,装完后提示变成这样了!
make
make[1]: Entering directory `/home/xiaofeng/vnc-3.3.7/zlib'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/xiaofeng/vnc-3.3.7/zlib'
make[1]: Entering directory `/home/xiaofeng/vnc-3.3.7/rdr'
make[1]: Leaving directory `/home/xiaofeng/vnc-3.3.7/rdr'
make[1]: Entering directory `/home/xiaofeng/vnc-3.3.7/rfb'
make[1]: Leaving directory `/home/xiaofeng/vnc-3.3.7/rfb'
make[1]: Entering directory `/home/xiaofeng/vnc-3.3.7/vncconnect'
rm -f vncconnect
gcc -O2 -Wall   -o vncconnect vncconnect.o   -lX11 -lXext
/usr/bin/ld: cannot find -lX11
collect2: ld returned 1 exit status
make[1]: *** [vncconnect] Error 1
make[1]: Leaving directory `/home/xiaofeng/vnc-3.3.7/vncconnect'
make: *** [all] Error 1
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-20 09:51:45 | 显示全部楼层
VNC的代码是我从debian的POOL里面拷出来的,拷了3个,然后dpkg-source把它弄成代码的!因为想修改VNC的代码,所以想看看自己能不能编译!

我的DEBIAN系统是SPARC架构的!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-20 13:44:56 | 显示全部楼层
大家帮个忙啊
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-21 12:58:40 | 显示全部楼层
没有人知道吗?
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表