CentOS 5 編譯 ACE 5.5

來源:互聯網
上載者:User
CentOS 5 編譯ACE5.5

1 在ACE的老巢下載下面的壓縮包 :ACE-5.4.tar.gz

2 tar -xcvf ./ACE-5.4.tar.gz後產生一個目錄ACE_wrappers,
假定我們的目錄是/root/ace_study/ACE_wrappers
為保險起見執行chmod a=rwx -R ACE_wrappers

3 在etc/profile檔案中這樣寫

# Path manipulation
if [ `id -u` = 0 ]; then
        pathmunge /sbin
        pathmunge /usr/sbin
        pathmunge /usr/local/sbin
#下面這行是要加的
        pathmunge /root/ace_study/ACE_wrappers
fi

#下面這兩行是要加上的
ACE_ROOT=/root/ace_study/ACE_wrappers;
export ACE_ROOT

退出,登出CentOS 5;

4 在$ACE_ROOT目錄中的ace目錄下組建檔案config.h,在這個檔案中要包含一句話
#include "ace/config-linux.h"

5 在$ACE_ROOT目錄中的include/makeinclude目錄下組建檔案platform_macros.GNU
在這個檔案中要包含一句話
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU

6 進入$ACE_ROOT/ace目錄

7 執行 make debug=0

8 執行後會產生libACE.so,這就是我們產生的動態庫

9 以後使用的時候別忘了標頭檔的包含目錄和so所在的庫目錄噢

10 在lib下,可以看到產生的庫:libACE.so  libACE.so.5.5.0

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.