ace tao 1.3a linux安裝

來源:互聯網
上載者:User

(1)下載相應版本的TAO,我下載了ACE+TAO-1.3a_with_latest_patches.tar.gz。

:http://www.theaceorb.com/downloads/index.html。

下載源檔案時,可下載TAO
Developer's Guide的部分章節,包括:

Chapter 3 - Getting Started

Chapter 4 - The Makefile, Project and Workspace Creator
(MPC)

TAO Developer's Guide是需要付費下載的,但上述部分章節加上TAO的支援文檔(http://www.cs.wustl.edu/~schmidt/TAO.html)足以應付入門。

(2)解壓ACE+TAO-1.3a_with_latest_patches.tar.gz為
/sdr/Corba/ACE_wrappers

(3)設定4個環境變數:

ACE_ROOT=/sdr/Corba/ACE_wrappers;
TAO_ROOT=$ACE_ROOT/TAO 
PATH 再包括 $ACE_ROOT/bin 
LD_LIBRARY_PATH = $ACE_ROOT/lib
添加環境變數方法:修改/etc/profile
在檔案/etc/profile最後加入四行export命令,:

為了讓環境變數生效,可執行:source /etc/profile或重啟,前一方法環境變數只在當前命令終端有效。
可利用“echo $PATH”
查看$PATH變數是否修改成功。

(4)在$ACE_ROOT/ace路徑下建立檔案config.h,並輸入
#include "ace/config-linux.h"
(5)
$ACE_ROOT/include/makeinclude

路經下建立檔案:

platform_macros.GNU,並輸入以下內容
######################
debug=1 # (or debug=0)
optimize=0 # (or optimize=1)
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
######################


(6)通過如下命令,組建ACE+TAO
cd $TAO_ROOT 和 make
(make建議進入root後開始)
完成建立後,可在 $ACE_ROOT/lib中查看建立檔案。
(7)最後,如果想使用MPC,需安裝perl。 利用MPC相關指令,可利用我們建立的CPP源檔案自動產生GNU make的工程依賴
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~ 至此,你就可以通過學習 Chapter 3 - Getting Started Chapter 4 - The Makefile, Project and Workspace Creator (MPC) 就可以入門TAO了share and enjoy!  補充: 驚奇地發現ACE-TAO有bug,在我自己筆記本上make時沒問題,但在實驗室電腦上make,總是說找不到共用庫檔案: error while loading shared libraries: libTAO_IDL_BE_DLL.so: cannot open shared object file: No such file or directory 這可能是和處理器或軟體版本有關吧~~ 解決辦法:  $TAO_ROOT/TAO_IDL/tao_idl -GI ./test.idl make
相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.