linux编译ACE

linux下编译ACE遇到了点问题,找到一个有用的解决发放,记录一下。

linux2.6内核

ace5.6.7

设置环境变量:

export ACE_ROOT=/home/jsq/lib_tryout/ACE_wrappers
export LD_LIBRARY_PATH=$ACE_ROOT/lib:/usr/lib:/usr/local/lib:$LD_LIBRARY_PATH

编译ACE:
1.选择平台配置文件,本系统应该选择config-linux.h,在$ACE_ROOT/ace 目录下新建config.h文件,在config.h中加入一行 
#include "config-linux.h"。
2.选择平台宏定义文件,本系统应该选择platform_linux.GNU,在$ACE_ROOT/include/makeinclude 目录下新建 
platform_macros.GNU,在platform_macros.GNU中加入一行如 下:include 
$(ACE_ROOT)/include/makeinclude/platform_linux.GNU
3.进入$(ACE_ROOT)/ace/, 输入编译命令:make -f GNUmakefile, 开始编译


ACE下载地址http://download.dre.vanderbilt.edu/previous_versions/

你可能感兴趣的:(linux,ACE,library,path,include,平台,linux)