天天看點

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庫,代碼在網站上有。

ACE_TAO

2。解壓,并設定路徑變量。

ACE_ROOT=c:\src\ACE_wrapper

TAO_ROOT=c:\src\ACE_wrapper\tao

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

“\” 變為 "/"

ACE_TAO

具體的修改,參照如下:

  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
               
    多謝,親愛的。 

繼續閱讀