Building and Installing ACE on UNIX

As of ACE 6.0.6, you can building ACE on UNIX with:

Traditional ACE/GNU Make Configuration

The build process for Windows is different from the UNIX methods.

Using the Traditional ACE/GNU Configuration

Here’s what you need to do to build ACE using GNU Make and ACE’s traditional per-platform configuration method:

Install GNU make 3.79.1 or greater on your system (available via http anonymous ftp from ftp.gnu.org in the pub/gnu/make/ directory). You must use GNU make when using ACE‘s traditional per-platform configuration method or ACE won‘t compile.
Add an environment variable called ACE_ROOT that contains the name of the root of the directory where you keep the ACE wrapper source tree. The ACE recursive Makefile scheme needs this information. There are several ways to set the ACE_ROOT variable. For example:

    TSCH/CSH: setenv ACE_ROOT /home/cs/faculty/schmidt/ACE_wrappers 

    BASH or Bourne Shell: ACE_ROOT=/home/cs/faculty/schmidt/ACE_wrappers; export ACE_ROOT 

If you‘re building a number of versions of ACE, however, (e.g., for different OS platforms or for different releases of ACE) you might use the following approach (assuming TCSH/CSH):

    setenv ACE_ROOT $cwd 

Create a configuration file, $ACE_ROOT/ace/config.h, that includes the appropriate platform/compiler-specific header configurations from the ACE source directory. For example:

    #include "ace/config-linux.h" 

The platform/compiler-specific configuration file contains the #defines that are used throughout ACE to indicate which features your system supports. See the $ACE_ROOT/ace/README file for a description of these macro settings. If you desire to add some site-specific or build-specific changes, you can add them to your config.h file; place them before the inclusion of the platform-specific header file.

There are config files for most versions of UNIX. If there isn‘t a version of this file that matches your platform/compiler, you‘ll need to make one. Please send email to the ace-users list if you get it working so it can be added to the master ACE release.
Create a build configuration file, $ACE_ROOT/include/makeinclude/platform_macros.GNU, that contains the appropriate platform/compiler-specific Makefile configurations, e.g.,

    include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU 

This file contains the compiler and Makefile directives that are platform/compiler-specific. If you‘d like to add make options, you can add them before including the platform-specific configuration.

NOTE! There really is not a # character before ‘include‘ in the platform_macros.GNU file. # is a comment character.
If you wish to install ACE (using "make install"), set the installation prefix in platform_macros.GNU.

    INSTALL_PREFIX = /usr/local 

Headers will be installed to $INSTALL_PREFIX/include, executables to $INSTALL_PREFIX/bin, documentation and build system files to $INSTALL_PREFIX/share and libraries to $INSTALL_PREFIX/lib. The library directory can be customized by setting INSTALL_LIB (for example, INSTALL_LIB=lib64). With INSTALL_PREFIX set, RPATH will be enabled for all executables and shared libraries. To disable RPATH (for example, if $INSTALL_PREFIX/$INSTALL_LIB is already a system-known location for shared libraries such as those listed in /etc/ld.so.conf), set the make macro install_rpath to 0 by adding install_rpath=0 to platform_macros.GNU.
Note that because ACE builds shared libraries, you‘ll need to set LD_LIBRARY_PATH (or equivalent for your platform) to the directory where binary version of the ACE library is built into. For example, you probably want to do something like the following:

    % setenv LD_LIBRARY_PATH $ACE_ROOT/lib:$LD_LIBRARY_PATH

When all this is done, hopefully all you‘ll need to do is type:

    % make

at the ACE_ROOT directory. This will build the ACE library, tests, the examples, and the sample applications. Building the entire ACE release can take a long time and consume lots of disk space, however. Therefore, you might consider cd‘ing into the $ACE_ROOT/ace directory and running make there to build just the ACE library. As a sanity check, you might also want to build and run the automated "one-button" tests in $ACE_ROOT/tests. Finally, if you‘re also planning on building TAO, you should build the gperf perfect hash function generator application in $ACE_ROOT/apps/gperf.
If you‘ve set the INSTALL_PREFIX before building, now run

    % make install

If you need to regenerate the ace/Svc_Conf_y.cpp file, you‘ll need to get GNU Bison. However, you should rarely, if ever, need to do this.
时间: 2024-10-12 14:56:11

Building and Installing ACE on UNIX的相关文章

Installing TensorFlow from Source

TensorFlow Install Installing TensorFlow from Sources 目录 Determine which TensorFlow to install Clone the TensorFlow repository Prepare environment for Linux Install Bazel Install TensorFlow Python dependencies Optional: install TensorFlow for GPU pre

Python著名的lib和开发框架(均为转载)

第一,https://github.com/vinta/awesome-python Awesome Python A curated list of awesome Python frameworks, libraries, software and resources. Inspired by awesome-php. Awesome Python Admin Panels Algorithms and Design Patterns Anti-spam Asset Management A

Blender在Ubuntu上的编译

Here you find information about how to build Blender on modern machines and distributions. Troubleshooting In case you're trying to build on old distributions, chances are that your package manager doesn't provide a recent Python, Collada, etc: in th

Easy Install详细参数

Easy Install Easy Install is a python module (easy_install) bundled with setuptools that lets you automatically download, build, install, and manage Python packages. Please share your experiences with us! If you encounter difficulty installing a pack

Python教程大纲

缘起:最近想在部门推Python语言,写这个blog主要就是个教程大纲,之前先列出一些资源:Python历史:http://www.docin.com/p-53019548.html                   :http://blog.csdn.net/zhchongyao/article/details/7748668 Python中文社区主站入口:http://woodpecker.org.cn/Python简明教程:http://woodpecker.org.cn/abyteof

mysql下面的INSTALL-BINARY的内容,所有的mysql的配置内容都在这

2.2 Installing MySQL on Unix/Linux Using Generic Binaries Oracle provides a set of binary distributions of MySQL. These include binary distributions in the form of compressed tar files (files with a .tar.gz extension) for a number of platforms, as we

vtpm使用手册

Copyright (c) 2010-2012 United States Government, as represented bythe Secretary of Defense.  All rights reserved.November 12 2012Authors: Matthew Fioravante (JHUAPL), Daniel De Graaf (NSA) This document describes the virtual Trusted Platform Module

Linux环境下使用同态加密库HElib

HElib库是在NTL库的基础上编写的,所以要顺利使用HElib库就得先编译NTL库: http://www.shoup.net/ntl/-- NTL库的链接 https://github.com/shaih/HElib-- HElib库的链接 1. 编译NTL库 1)进入http://www.shoup.net/ntl/.依次点击A Tour of NTL->Obtaining and Installing NTL for UNIX.默认按照第一种方式编译: % gunzip ntl-xxx.

关于ios越狱开发的那些事

也许吧,每每接触某些新东西的时候,都有点犯晕吧,这不是应该要的. 第一次接触ios越狱开发,也是这样吧.这篇主要是从无到有的说一下ios越狱的开发,网上很多的教程大部门都比较旧了吧,放在新设备上总是出现这样那样的问题,使人很是头疼. 从windows转到mac下开发,总有这个那个的不适应.习惯了vs的开发,突然用起了xcode难免有些为难,不是说xcode不好,两者都是非常好用的工具. 当然了,开发越狱程序和日常开发的iOS程序很相似,不过,越狱程序能做更强大的事情.你的设备也必须是要越狱的,你