Chinaunix首页 | 论坛 | 博客
  • 博客访问: 316642
  • 博文数量: 40
  • 博客积分: 892
  • 博客等级: 准尉
  • 技术积分: 445
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-25 10:20
文章存档

2011年(40)

分类: LINUX

2011-02-14 20:11:44

环境:龙芯2F +中标5 +gcc4.2.3

1.编译openssl

软件包:openssl-0.9.8g.tar.gz 

Dedain软件中心下载:

编译步骤如下:

tar xf openssl-0.9.8g.tar.gz

cd  openssl-0.9.8g

./config

make

$ sudo make install

2.编译rdesktop

软件包:rdesktop-1.6.0.tar.gz

下载地址:

编译步骤如下:

tar xf rdesktop-1.6.0.tar.gz

cd rdesktop-1.6.0

./configure 

可能出的错误:

xclip.o: In function `ui_clip_handle_data':

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:993: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:1007: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:1009: undefined reference to `libiconv_close'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:1004: undefined reference to `libiconv_close'

xclip.o: In function `xclip_send_data_with_convert':

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:340: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:360: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:362: undefined reference to `libiconv_close'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:321: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:331: undefined reference to `libiconv_open'

rdp.o: In function `rdp_in_unistr':

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:267: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:257: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:275: undefined reference to `libiconv_close'

rdp.o: In function `rdp_out_unistr':

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:210: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:186: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:195: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:212: undefined reference to `libiconv_close'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:198: undefined reference to `libiconv_close'

collect2: ld 返回 1xclip.o: In function `ui_clip_handle_data':

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:993: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:1007: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:1009: undefined reference to `libiconv_close'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:1004: undefined reference to `libiconv_close'

xclip.o: In function `xclip_send_data_with_convert':

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:340: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:360: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:362: undefined reference to `libiconv_close'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:321: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/xclip.c:331: undefined reference to `libiconv_open'

rdp.o: In function `rdp_in_unistr':

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:267: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:257: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:275: undefined reference to `libiconv_close'

rdp.o: In function `rdp_out_unistr':

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:210: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:186: undefined reference to `libiconv_open'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:195: undefined reference to `libiconv'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:212: undefined reference to `libiconv_close'

/home/cs2c/work/nc/rdesktop-1.6-test/rdp.c:198: undefined reference to `libiconv_close'

collect2: ld 返回 1

make: *** [rdesktop] 错误 1

make: *** [rdesktop] 错误 1

参考解决方法:

libiconv-1.13.1

$ ./configure CFLAGS=-I/usr/local/include/

make

$ ./rdesktop 

./rdesktop: error while loading shared libraries: libiconv.so.2: cannot open shared object file: No such file or directory

$ sudo cp /usr/local/lib/libiconv.so.2.5.0  /usr/lib

$ cd /usr/lib

$ sudo ln -sv libiconv.so.2.5.0  libiconv.so.2 

 

备注:在当前目录下生成可执行文件:rdesktop

 

3.编译libiconv

软件包:libiconv-1.13.1.tar.gz

下载地址:

$ tar xf libiconv-1.13.1.tar.gz

$ cd libiconv-1.13.1

$ ./configure

$ make

$ sudo make intall

 

sense

2011-02-14

 

阅读(1599) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~