ACE6.10的安装

在网上找一些ace的安装文章,居然还有人用configure配置,但ACE6.1的版本已经没有configure了。这里记录下6.1版本的安装方式。

1. 从 ACE 官网(http://download.dre.vanderbilt.edu/)下载 ACE+TAO+CIAO-6.1.2.tar.bz2,放在/home/yourname; 用

   tar xvjf ACE+TAO+CIAO-6.1.2.tar.bz2 解压得到 /home/yourname/ACE_wrappers

   su 到 root 账户下

2. 设置环境变量: ACE_ROOT=/home/yourname/ACE_wrappers; export ACE_ROOT

备注: 这里是临时的环境变量设置,如果想后面使用的时候每次都有这个,把设置写进 .bash_profile

3. 创建文件 $ACE_ROOT/ace/config.h 写入如下内容 #include "ace/config-linux.h"

   备注: 这里可以定义宏,改变 ACE 的某些特性

4. 创建文件 $ACE_ROOT/include/makeinclude/platform_macros.GNU 写入 include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU

备注: 这里是 build configuration, include 前不需要 #

这步比较重要,否则make可能会出错.

5. 可以在 platform_macros.GNU 里写入 INSTALL_PREFIX = /home/yourname/ace_install_612/ 来制定输出目录

6. 设置环境变量 LD_LIBRARY_PATH=$ACE_ROOT/lib:$LD_LIBRARY_PATH; export LD_LIBRARY_PATH

10. make

备注: 这步时间比较长

在我的环境(fedora20 64bit),编译过程中出现ace SAXPrint compile error,解决办法是在config.h中增加一句

#define ACE_GCC_HAS_TEMPLATE_INSTANTIATION_VISIBILITY_ATTRS 1

7make install  【 在rootexport ACE_ROOT=/home/yourname/software/ACE_wrappers

备注: 这里是把 lib, include, share, 和 bin 输出到 INSTALL_PREFIX 目录下。

原文地址:https://www.cnblogs.com/junnyfeng/p/2880564.html