Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1556369
  • 博文数量: 290
  • 博客积分: 3468
  • 博客等级: 中校
  • 技术积分: 3461
  • 用 户 组: 普通用户
  • 注册时间: 2010-12-28 22:21
文章分类

全部博文(290)

文章存档

2016年(13)

2015年(3)

2014年(42)

2013年(67)

2012年(90)

2011年(75)

分类: 嵌入式

2011-02-14 20:03:43

环境:龙芯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

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