Install ACE/TAO on Debian

来自开放百科 - 灰狐
(版本间的差异)
跳转到: 导航, 搜索
 
 
(未显示2个用户的3个中间版本)
第1行: 第1行:
 +
#apt-get install libace-dev - An Object-Oriented Network Programming Toolkit in C++
 +
#apt-get install libace-doc - Documentation for the ADAPTIVE Communication Environment (ACE)
 +
#apt-get install libace5.4 - An Object-Oriented Network Programming Toolkit in C++
 +
 
ACE-5.5+TAO-1.5+CIAO-0.5.tar.gz, 环境 Debian 3.1
 
ACE-5.5+TAO-1.5+CIAO-0.5.tar.gz, 环境 Debian 3.1
  
 +
从 http://download.huihoo.com/middleware/ace-tao/ 获得
 
  tar zxvf ACE-5.5+TAO-1.5+CIAO-0.5.tar.gz
 
  tar zxvf ACE-5.5+TAO-1.5+CIAO-0.5.tar.gz
 
  cd ACE_wrappers
 
  cd ACE_wrappers
第62行: 第67行:
 
  Consumer (5654|1082727520): 1900 events received
 
  Consumer (5654|1082727520): 1900 events received
 
  Consumer (5654|1082727520): 2000 events received
 
  Consumer (5654|1082727520): 2000 events received
 +
 +
相关 [[Install ACE/TAO on Ubuntu]]
 +
 +
[[Category:ACE]]
 +
[[Category:TAO]]
 +
[[Category:Debian]]

2010年8月22日 (日) 06:23的最后版本

#apt-get install libace-dev - An Object-Oriented Network Programming Toolkit in C++
#apt-get install libace-doc - Documentation for the ADAPTIVE Communication Environment (ACE)
#apt-get install libace5.4 - An Object-Oriented Network Programming Toolkit in C++

ACE-5.5+TAO-1.5+CIAO-0.5.tar.gz, 环境 Debian 3.1

http://download.huihoo.com/middleware/ace-tao/ 获得
tar zxvf ACE-5.5+TAO-1.5+CIAO-0.5.tar.gz
cd ACE_wrappers
export ACE_ROOT=/home/huihoo/c-c++/ACE_wrappers
bin/create_ace_build linux

You should consider using clone_build_tree.pl found with MPC

cd build/linux/bin

export ACE_ROOT=/home/huihoo/c-c++/ACE_wrappers
touch $ACE_ROOT/ace/config.h
add #include "ace/config-linux.h"
touch $ACE_ROOT/include/makeinclude/platform_macros.GNU
add include /home/huihoo/c-c++/ACE_wrappers/include/makeinclude/platform_linux.GNU
export LD_LIBRARY_PATH=$ACE_ROOT/ace:$ACE_ROOT/lib:$LD_LIBRARY_PATH
cd /ace/
make
create libACE.so.5.5.0, libACE.so in /lib
cd examples/Threads
make
./task_one

//build tao

export TAO_ROOT=/home/huihoo/c-c++/ACE_wrappers/TAO
cd TAO
touch macros.GNU
add include $(TAO_ROOT)/rules.tao.GNU
make
OK :)

测试命名服务、事件服务

加入多播路由支持

/sbin/route add -net 224.0.0.0 netmask 224.0.0.0 dev eth0

在$TAO_ROOT/orbsvcs/Naming_Service下,

Naming_Service -m 1 -ORBDottedDecimalAddresses 1 -ORBEndpoint iiop://192.168.1.6:2809
$TAO_ROOT/orbsvcs/examples/RtEC/Simple$ ./Service
$TAO_ROOT/orbsvcs/examples/RtEC/Simple$ ./Supplier
$TAO_ROOT/orbsvcs/examples/RtEC/Simple$ ./Consumer
Consumer (5654|1082727520): 100 events received
Consumer (5654|1082727520): 200 events received
Consumer (5654|1082727520): 300 events received
Consumer (5654|1082727520): 400 events received
Consumer (5654|1082727520): 500 events received
Consumer (5654|1082727520): 600 events received
Consumer (5654|1082727520): 700 events received
Consumer (5654|1082727520): 800 events received
Consumer (5654|1082727520): 900 events received
Consumer (5654|1082727520): 1000 events received
Consumer (5654|1082727520): 1100 events received
Consumer (5654|1082727520): 1200 events received
Consumer (5654|1082727520): 1300 events received
Consumer (5654|1082727520): 1400 events received
Consumer (5654|1082727520): 1500 events received
Consumer (5654|1082727520): 1600 events received
Consumer (5654|1082727520): 1700 events received
Consumer (5654|1082727520): 1800 events received
Consumer (5654|1082727520): 1900 events received
Consumer (5654|1082727520): 2000 events received

相关 Install ACE/TAO on Ubuntu

分享您的观点
个人工具
名字空间

变换
操作
导航
工具箱