作业帮 > 体裁作文 > 教育资讯

冰雪寒晶ice4

来源:学生作业帮助网 编辑:作业帮 时间:2024/09/23 22:41:24 体裁作文
冰雪寒晶ice4体裁作文

篇一:Ice Age 4 观后感

Ice Age 4 观后感

Let’s think of it: an adventure of a mammoths, two sloths and a saber tiger. In the trip, they met windstorm, terrifying sea creature, and what’s even worse is a large “company” of pirates. Seems that it was almost impossible for them to finish the trip but the case is that, they finished it and achieved their goal—to meet their family members.

The group might be a joke—they have different species, and some of them always lead the team to trouble, especially Sid—the sloth who always brings trouble to his mates, but sometimes gain something important accidentally. No matter what tries to stop the group from family reunion, they’ll never give up. The team leader—Manny, stays calm no matter what kind of trouble they meet, as he is confident that they can solve the problem. The group is pretty weird, but also adamant. That’s why they could meet their friends and families again.

The glaciers melted, and the continents were drifting. The group got far apart with their families, what made them never give up is kinship, love and belief. All over the ocean, they’ll never give in to destiny, that’s because they are a family. In this aspect, I can say, they are an awesome family. Manny—the team leader, moved me the most. He is a father, a great father, and also a great friend. To save his family, he risks his life struggling to the continent. That’s why he is loved by his friends.

In addition to happiness, the film brought us movement and inspirations—kinship is the most valuable treasure.

初一十一班

刘浛天

篇二:ICE接口开发使用手册

1 环境搭建

1.1 运行环境配置

3.3版本安装:

在/download/Ice/3.3/ 下载3.3的版本。我安装的是Ice-3.3.1-VC90.msi。

安装后:配置环境变量:

ICE_HOME:C:\ICE3.3.1(安装的根目录)。

Path:%ICE_HOME%\bin

验证是否配置成功:cmd命令输入:slice2cpp

或者输入:slice2cpp -v

显示配置的版本。

Eclipse的插件版本下载相对应的:

下载地址:

/download/eclipse/plugins/

下载下来的jar放在Eclipse安装目录的plugins下,重启eclipse即可。

1. 安装ICE3.4版本

验证安装是否成功:slice2cpp

2. 环境变量设置

CLASSPATH=C:\kits\ZeroC\Ice-3.4.1\lib\Ice.jar;C:\kits\ZeroC\Ice-3.4.1\lib\Freeze.jar;(必须) PATH=C:\kits\ZeroC\Ice-3.4.1\bin;(必须)

ICE_HOME=C:\kits\ZeroC\Ice-3.4.1

CLASSPATH=C:\kits\ZeroC\Ice-3.4.1\lib\db.jar;(需)

注:意外情况下,可能需要注销(或重启),以刷新一下环境配置信息。

1.2 开发环境配置

1. 在线安装eclipse 插件

/download/eclipse

2. 线下安装eclipse 插件

com.zeroc.Slice2JavaPlugin_3.4.1.20110201.jar 复制到eclipse 安装目录下的plugins目录下

3. 验证是否安装成功

eclipse属性

项目属性

2 接口开发

2.1 新建JAVA项目

2.2 添加sli

冰雪寒晶ice4

ce2Java

1. 项目中出现:

项目中出现的目录配置:

2. 创建model与

service

篇三:ice开发环境搭建

ICE开发环境搭建

1. 本文的开发环境为vc10.0

2.

3. 安装完成后,设置环境变量,我的安装路径为C:\Program Files\ZeroC\Ice-3.4.2,C:\Program Files\ZeroC\Ice-3.4.2-ThirdParty,添加环境变量IceHome= C:\Program Files\ZeroC\Ice-3.4.2,IcePartyHome= C:\Program Files\ZeroC\Ice-3.4.2-ThirdParty,在Path环境变量中添加%IceHome%\bin\vc100;%IceParthHome%\bin\vc100,打开一个cmd窗口,输入slice2cpp –v,如果有版本信息输出,则设置成功。

4. Hello World演示程序

? 使用notepad输入如下代码:

module PrinterICE

{

interface Printer

{

void printString(string s);

};

};

保存为Printer.ice,打开一个控制台窗口,切换到Printer.ice目录下,运行slice2cpp Printer.ice,则可以看到生成了Printer.cpp和Printer.h文件。 ? 使用vs 2010新建一个solution,命名为hello_world,在该solution中分别添加client和server工程,在client和server工程中添加Printer.cpp和Printer.h的引用;client.cpp中输入如下代码

#include

#include "../ice_files/Printer.h"

using namespace std;

using namespace PrinterICE;

int main(int argc, char* argv[])

{

} int status = 0; Ice::CommunicatorPtr ic; try { ic = Ice::initialize(argc, argv); Ice::ObjectPrx base = ic->stringToProxy("SimplePrinter:default -p 12000"); PrinterPrx printer = PrinterPrx::checkedCast(base); if (!printer) throw "Invalid proxy"; printer->printString("Hello World!"); } catch (const Ice::Exception& ex) { cerr << ex << endl; status = 1; } catch (const char* msg) { } if (ic) ic->destroy(); cerr << msg << endl; status = 1; return status;

Server.cpp中添加如下代码:

#include

#include "../ice_files/Printer.h"

using namespace std;

using namespace PrinterICE;

class PrinterI : public Printer {

public:

};

void PrinterI::printString(const string& s, const Ice::Current&) virtual void printString(const string& s, const Ice::Current&);

{

}

int main(int argc, char* argv[])

{

int status = 0; Ice::CommunicatorPtr ic; try { ic = Ice::initialize(argc, argv); Ice::ObjectAdapterPtr adapter = ic-cout << s << endl;

>createObjectAdapterWithEndpoints("SimplePrinterAdapter", "default -p 12000");

} Ice::ObjectPtr object = new PrinterI; Ice::Identity it = ic->stringToIdentity("SimplePrinter"); adapter->add(object, it); adapter->activate(); ic->waitForShutdown(); } catch (const Ice::Exception& e) { cerr << e << endl; status = 1; } catch (const char* msg) { } if (ic) { } return status; try { ic->destroy(); cerr << msg << endl; status = 1; } catch (const Ice::Exception& e) { } cerr << e << endl; status = 1;

打开client的工程属性,设置依赖库为setargv.obj,Iced.lib,IceUtild.lib,设置依赖的头文件路径为$(IceHome)\include,$(IcePartyHome)\include,设置依赖库的路径为$(IceHome)\lib\vc100,$(IcePartyHome)\lib\vc100,照此设置server的工程属性,如图:

运行server.exe,client.exe在server端即可看到成功输出Hello World,至此,开发环境搭建完毕。

篇四:在Eclipse上进行ICE开发的入门学习

ICE 安装-测试

安装:

官网:

下载:Windows下安装,到/download.html下载Windows Installers下的Ice-3.4.2.msi。

安装:点击下一步安装即可。(会让选择安装目录和demo目录。这里我们假设安装目录安装在C:\ZeroC\Ice-3.4.2;假设demo目录安装在E:\work\ice);

环境配置:需要Jdk5或6,配置

classpath

(.;c:\jdk16\lib\dt.jar;c:\jdk16\lib\tools.jar;C:\ZeroC\Ice-3.4.2\lib\Ice.jar;C:\ZeroC\Ice-3.4.2\lib\db.jar;C:\ZeroC\Ice-3.4.2\lib\Freeze.jar;)

path(C:\ZeroC\Ice-3.4.2\bin;)

测试demo:

Cmd打开 cd进入E:\work\ice\demoj\Ice\hello

执行:Slice2java hello.ice(生成Demo文件夹,里面都是生成的*.java文件)

执行:javac Server.java

执行:java Server

新开cmd窗口,cd进入E:\work\ice\demoj\Ice\hello

执行:javac Client.java

执行:java Client

(会发现Demo文件夹下生成了对应的class文件) 结果显示:

表示成功。

也可以在命令行输入slice2java –v,会出现ice的版本号,如图:

Eclipse下的ICE开发环境 假设下载Ice-3.4.1.msi安装到E:\installed-program\ICE)

Slice2Java插件

安装方法:打开Eclipse----->help-install new software -work with... ,右侧add按钮,点击add -Add Site -输入/download/eclipse/添加好即可。

安装成功后,点击Eclipse的Window——preferences,如下图:

如果指定的路径不对,则显示如下:

建立Java工程:testIce

建立slice文件夹,在其目录下建立:Printer.ice,内容如下:

module PrinterInterface

{

Interface Printer

{

void printString(string s); };

};

Printer.ice

篇五:Ice资料

一、概述:

编译目标:在linux平台下交叉编译一个ICE的C++动态链接库。

宿主机(host):CPU是x86体系结构的,系统是liunx。

目标机(target):CPU是arm体系结构的,系统是linux。

主要编译步骤:首先编译出x86平台的ICE,再用x86平台的相关ICE可执行文件,对ICE进行交叉编译。

二、目录约定:

我要编译的Ice是3.4.1版本的,从官方网站下载的Ice-3.4.1.tar.gz通过解压出来的Ice-3.4.1目录我将其称为IceRoot,其它目录约定如下:

IceConfig -- IceRoot/config

IceCppRoot -- IceRoot/cpp

IceCppConfig -- IceRoot/cpp/config

三、ICE编译准备:

1. 从/ 中下载ice源码和ice第三依赖库源码

2. 编译第三方库,bzip、mcpp是必须编译,其它的可以按需要进行编译,具体需要编译哪些详见ThirdParty-Sources目录下的README文件。

四、ICE编译过程:

1. 编译IceUtil 并生成libIceUtil.so

2. 编译slice可执行程序(slice2cpp, slice2java, slice2cs等等)

3. 编译Ice并生成libIce.so。编译Ice的时候需要使用slice2cpp对slice/Ice目录中的.ice文件进行映射生成对应的.cpp和.h文件。而在交叉编译过程中生成的slice2cpp(它是

arm的可执行文件)不能在x86平台运行。只能再编译一个x86平台下的slice2cpp可执行程序。再用x86平台的slice2cpp对.ice进行映射后,再利用交叉编译器接着生成libIce.so。

五、ICE编译需要修改的文件:

1. IceConfig/ Make.common.rules

用x86平台的slice2cpp对.ice进行映射时,由于这个文件修改了LD_LIBRARY_PATH变量将ice_lib_dir目录放在最先查找的位置上导致slice2cpp会直接去找IceCppRoot/lib/libSlice.so.34。所以必须改变LD_LIBRARY_PATH,

238 export LD_LIBRARY_PATH :=$(LD_LIBRARY_PATH): $(ice_lib_dir)

改为:

238 export LD_LIBRARY_PATH := $(ice_lib_dir):$(LD_LIBRARY_PATH)

2. IceCppConfig/Make.rules

14 prefix ?= /opt/Ice-$(VERSION)

prefix -- 指定make install的安装路径。

33 #OPTIMIZE = yes

OPTIMIZE = yes的话,就会在编译时进行一些优化而且在编译时去掉-g选项

66 #BZIP2_HOME ?= /opt/bzip2

BZIP2_HOME -- bzip2的安装目录,其它XXX_HOME与此类似,不作解释。

258 SLICE2CPP = $(ice_dir)/$(binsubdir)/slice2cpp

SLICE2CPP -- 指定slice2cpp程序的位置,由于我们需要使用x86平台编译的slice可执行文件,所以我们要在262行重新定义SLICE2CPP和SLICEPARSERLIB(slice2cpp依赖库的目录)、SLICE2XSD、SLICE2FREEZE。我编译的x86平台的slice可执行文件放在/opt/Ice-3.4.1/bin下,相关的依赖库放在/opt/Ice-3.4.1/lib下。所以

SLICEPARSERLIB:= /opt/Ice-3.4.1/lib

SLICE2CPP:=/opt/Ice-3.4.1/bin/slice2cpp

SLICE2XSD:= /opt/Ice-3.4.1/bin/slice2xsd

SLICE2FREEZE:= /opt/Ice-3.4.1/bin/slice2freeze

3. IceCppConfig /Make.rules.Linux

在这个文件里Ice指定了编译器名字为c++或者g++,而我们交叉编译器的名字为arm-linux-g++所以我们必须修改此项.将

34 ifeq ($(CXX),c++)

改为

34 CXX := arm-linux-g++

35 ifeq ($(CXX),arm-linux-g++)

4. IceCppRoot/Makefile

我们交叉编译出来的test可执行文件是arm指令的。这些可执行文件在x86平台下是不可能运行,所以是一定通不过test的。所以我们根本不需要编译test,将

14 SUBDIRS = config src include test demo

改为

14 SUBDIRS = config src include

六、编译ICE:

我们只想编译ICE的C++动态链接库,所以我们只需编译IceCppRoot下的文件即可。进入IceCppRoot目录,在make之前,我们要先导出x86平台下的slice依赖库的路径(我本机的slice依赖库路径为/opt/Ice-3.4.1/lib),执行”export LD_LIBRARY_PATH=/opt/Ice-3.4.1/lib:$ LD_LIBRARY_PATH”;接着make && make install就大功告成了。

安装Ice3.4.2之前,应该下载并安装其依赖库。经过了n此安装失败后,最后终于弄好了。两个字,苦逼。具体过程如下:

1. 下载第三方包和Ice源文件:/download.html(官方下载页面)

在Source Distributions一栏下下载源文件:Ice-3.4.2.tar.gz;在Third-Party Source Code 一栏下选择ThirdParty-Sources-3.4.2.tar.gz第三方压缩包下载。

2. 安装第三方依赖库

解压ThirdParty-Sources-3.4.2.tar.gz:tar -xzvf

ThirdParty-Sources-3.4.2.tar.gz 。

2.1) 安装Berkeley DB

$tar zxvf db-4.8.30.NC.tar.gz

$cd db-4.8.30.NC/build_unix

$../dist/configure --prefix=/usr --enable-cxx

(说明:db的默认安装prefix路径是/usr/local/BerkeleyDB.4.6,需要改为/usr,否则make Ice时会找不到路径)

$make #编译

$sudo make install #安装

2.2)安装 bzip2-1.0.6.tar.gz

$tar zxvf bzip2-1.0.6.tar.gz

$cd bzip2-1.0.6

$make install

2.3)安装 expat-2.0.1.tar.gz

$tar zxvf expat-2.0.1.tar.gz

$cd expat-2.0.1

$./configure

$sudo make install

2.4)安装openssl-0.9.8d.tar.gz

$tar zxvf openssl-0.9.8d.tar.gz

$cd openssl-0.9.8d

$./config --prefix=/usr --openssldir=/usr/openssl

(注意:prefix为/usr/local/ssl,openssldir默认为/usr/ssl/openssl,需要改为上面的,否则默认安装路径会找不到。)

$ make

$ make test

$ sudo make install

2.5)安装mcpp

$sudo apt-get install libmcpp-dev

3.安装Ice-3.4.2

$tar zxvf Ice-3.4.2.tar.gz

$cd Ice-3.4.2/cpp

$export LD_LIBRARY_PATH=/opt/Ice-3.4.2/lib

$make

$sudo make install

体裁作文