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修改一下,如下:

“\\” 变为 "/"

 

具体的修改,参照如下:

  1. Install the MinGW tools (including the MinGW Development toolkit) into a common directory, say c:/mingw.
     
  2. Install the MSYS tools into a common directory, say c:/msys.
     
  3. Open a MSYS shell. Set your PATH environment variable so your MinGW's bin directory is first:
           % export PATH=/c/mingw/bin:$PATH
           
  4. Add an ACE_ROOT environment variable pointing to the root of your ACE wrappers source tree:
           % export ACE_ROOT=/c/work/mingw/ACE_wrappers
           
    From now on, we will refer to the root directory of the ACE source tree as $ACE_ROOT.
     
  5. Create a file called config.h in the $ACE_ROOT/ace directory that contains:
           #include "ace/config-win32.h"
           
  6. Create a file called platform_macros.GNU in the $ACE_ROOT/include/makeinclude directory containing:
           include $(ACE_ROOT)/include/makeinclude/platform_mingw32.GNU
           
    In the above text, don't replace $(ACE_ROOT) with the actual directory, GNU make will take the value from the environment variable you defined previously.

    If you lack Winsock 2, add the line

           winsock2 = 0
           
    before the previous one.
     

    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
           
    Headers will be installed to $INSTALL_PREFIX/include, documentation and build system files to $INSTALL_PREFIX/share and libraries to $INSTALL_PREFIX/lib. With INSTALL_PREFIX set, RPATH will be enabled. To disable RPATH (for example, if $INSTALL_PREFIX/$INSTALL_LIB is already a system-known location for shared libraries), set the make macro install_rpath to 0 by adding install_rpath=0 to platform_macros.GNU.
     
  7. 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
           
  8. Run make install:
           % make install
           

    This should create ACE.pc to use with pkg-config.

  9. 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的主要内容,如果未能解决你的问题,请参考以下文章

ACE_TAO 017 ACE_wrappersexamplesReactor

ACE_TAO 007

ACE_TAO 003

ACE_TAO 007 客户端重连

ACE_TAO 013 ACE_NEW_RETURN

ACE_TAO 013 ACE_NEW_RETURN