How to compile TAO2.0a in cainiao Linux?

Source: Internet
Author: User
For details about how to compile TAO2.0a in cainiao Linux, refer to general Linux technology-Linux technology and application information. Follow these steps:
1. install GNU make
Determine whether g ++ gcc needs to be installed
2. environment variable settings:
Export ACE_ROOT = ***/ACE_wrappers
Export LD_LIBRARY_PATH = $ LD_LIBRARY_PATH: $ ACE_ROOT/ace: $ ACE_ROOT/lib
Export $ TAO_ROOT = $ ACE_ROOT/TAO
3. Compile ACE
A. Create a configuration file: $ ACE_ROOT/ace/config. h. Write the following content:
# Include "ace/config-linux.h"
B. Create a configuration file: $ ACE_ROOT/include/makeinclude/platform_macros.GNU. Write content
Include $ (ACE_ROOT)/include/makeinclude/platform_linux.GNU

C. Enter $ ACE_ROOT and then make

Test. cpp:

# Include "ace/Log_Msg.h"
Int ACE_TMAIN (int arg, ACE_TCHAR * argv [])
{
ACE_DEBUG (LM_DEBUG, ACE_TEXT ("Hello Ace ")));
Return 0;
}

Compile the Connection Program and run the command gcc test. cpp-connector-L $ ACE_ROOT/lib.
Generate. Out

4. Install TAO
Cd $ TAO_ROOT
Find.-name "* GNUmakefile *" | xargs rm
Regenerate Makefile:

$ ACE_ROOT/bin/mwc. pl-type gnuace TAO_ACE.mwc
========================================================== ==========
Now the problem is to install TAO,
$ TAO_ROOT \ orbsvcs/Naming_Service
$ TAO_ROOT \ orbsvcs/Notify_Service
How can I make these two files ??? Unable to generate the name service and Notification Service Execution file ???

Under the guidance of experts, how can we do this ?? Thank you very much .............................. [Img] [/img]

========================================================== ==================

Linux-v0oh:/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service # make
Make [1]: Entering directory '/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service'
NT_Naming_Service will not be built due to the following disabled make macros: winnt

GNUmakefile:/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service/GNUmakefile. NT_Naming_Service MAKEFLAGS = w

Make [1]: Leaving directory '/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service'
Make [1]: Entering directory '/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service'

GNUmakefile:/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service/GNUmakefile. Naming_Service MAKEFLAGS = w

Make [1]: Leaving directory '/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service'
Linux-v0oh:/opt/ace/ACE_wrappers/TAO/orbsvcs/Naming_Service #

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.