下载地址:http://www.zeroc.com/icee/download.html
设置环境变量:exportPATH=/usr/local/arm-2008q3/bin:$PATH(根据各自机器的交叉工具链更改)
export CXX=arm-linux-c++
export AR=arm-linux-ar
然后执行make
报错:
In file included from../../include/IceE/Cond.h:13,
fromCond.cpp:10:
../../include/IceE/Time.h:36:error: expected type-specifier before ‘timeval’
出现上述错误,主要是由于缺少timeval的定义。在Time.h中添加
#ifndef _WIN32
# include <sys/time.h>
#endif
即可。
继续执行make.成功。
试运行
将IceE-1.3.0/cppe/demo/IceE/hello目录中的client目录、server目录拷贝到arm实验板上,同时把IceE-1.3.0/cppe/lib中文件复制到arm实验上。
在试验板linux中运行
$exportLD_LIBRARY_PATH=lib文件存放目录:$LD_LIBRARY_PATH
然后就可运行示例程序server和client程序了。
结果如下:
root@REER_emter:/media/card/IceE-1.3.0/hello/client#./client
usage:
t:send greeting as twoway
o:send greeting as oneway
O:send greeting as batch oneway
f:flush all batch requests
T:set a timeout
P:set a server delay
s:shutdown server
x:exit ?: help
当输入t时,如下:
==>t
HelloWorld!
==>