ACE_TAO
Posted islinyoubiao
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ACE_TAO相关的知识,希望对你有一定的参考价值。
ACE
The
ADAPTIVE
Communication
Environment
https://download.dre.vanderbilt.edu/
http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/ACE-INSTALL.html#mingw
https://download.dre.vanderbilt.edu/
The latest micro release is ACE 7.0.2 and TAO 3.0.2 (ACE+TAO x.0.2), please use the links below to download it。
ACE是一个优秀的网络开发库,非常专业的。
1。下载最新的ACE_TAO库,代码在网站上有。
2。解压,并设置路径变量。
ACE_ROOT=c:\\src\\ACE_wrapper
TAO_ROOT=c:\\src\\ACE_wrapper\\tao
3。打开msys2,切换到 c:\\src\\ACE_wrapper\\ace
make
4。make install INSTALL_PREFIX=c:\\src\\ace
5。切换到 c:\\src\\ACE_wrapper\\tao
make
6。注意:make install 的时候把ACE_ROOT和TAO_ROOT修改一下,如下:
“\\” 变为 "/"
具体的修改,参照如下:
- Install the MinGW tools (including the MinGW Development toolkit) into a common directory, say c:/mingw.
- Install the MSYS tools into a common directory, say c:/msys.
- Open a MSYS shell. Set your PATH environment variable so your MinGW's bin directory is first:
% export PATH=/c/mingw/bin:$PATH
- Add an ACE_ROOT environment variable pointing to the root of your ACE wrappers source tree:
% export ACE_ROOT=/c/work/mingw/ACE_wrappers
- Create a file called config.h in the $ACE_ROOT/ace directory that contains:
#include "ace/config-win32.h"
- Create a file called platform_macros.GNU in the $ACE_ROOT/include/makeinclude directory containing:
include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
If you lack Winsock 2, add the line
winsock2 = 0
If you want to install ACE (using "make install") and want all the .pc files generated, set the installation prefix in platform_macros.GNU.
INSTALL_PREFIX=/c/ACE
- In the MSYS shell, change to the $ACE_ROOT/ace directory and run make:
% cd $ACE_ROOT/ace % make
This should create libACE.dll (the Win32 shared library) and libACE.dll.a (the Win32 import library for the DLL). Note that the name for the ACE DLL follows the MinGW convention, which itself resembles UNIX.
If you want static libs also, you may run:
% make static_libs_only=1
- Run make install:
% make install
This should create ACE.pc to use with pkg-config.
- The same rules for Win32 search of DLLs apply for MinGW. If you want to run some ACE programs from the MSYS shell, you may need to add the directory for libACE.dll to your PATH:
% export PATH=/c/ work/mingw/ACE_wrappers/ace:$PATH
多谢,亲爱的。
以上是关于ACE_TAO的主要内容,如果未能解决你的问题,请参考以下文章