(1)Download the corresponding TAOs. I downloaded ace‑tao-1.3a_with_latest_patches.tar.gz.
: Http://www.theaceorb.com/downloads/index.html.
When downloading source files, you can download TAO
Some sections of Developer's Guide, including:
Chapter 3-Getting Started
Chapter 4-The Makefile, Project and Workspace Creator
(MPC)
TAO Developer's Guide is paid for download, but the above section with TAO support documentation (http://www.cs.wustl.edu /~ Schmidt/TAO.html) is sufficient for getting started.
(2)Decompress ace1_tao-1.3a_with_latest_patches.tar.gz
/Sdr/Corba/ACE_wrappers
(3)Set four environment variables:
ACE_ROOT=/sdr/Corba/ACE_wrappers;
TAO_ROOT=$ACE_ROOT/TAO
PATH and $ ACE_ROOT/bin
LD_LIBRARY_PATH = $ACE_ROOT/lib
How to add environment variables: Modify/etc/profile
Add four lines of export command at the end of file/etc/profile ,:
To make the environment variable take effect, run: source/etc/profile or restart. The environment variable of the previous method is only valid on the current command terminal.
You can use "echo $ PATH"
Check whether the $ PATH variable is successfully modified.
(4)Create the config. h file in the $ ACE_ROOT/ace path and enter
#include "ace/config-linux.h"
(5)In$ACE_ROOT/include/makeinclude
Create a file under the path:
Platform_macros.GNU and enter the following content
######################
debug=1 # (or debug=0)
optimize=0 # (or optimize=1)
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
######################
(6) run the following command,Form ACE + TAO
Cd $ TAO_ROOT and make
(Make is recommended to start after entering root)
After the file is created, you can view the new file in $ ACE_ROOT/lib.
(7)Finally, if you want to use the MPC, install perl. By using the command related to the PC, we can use the CPP source file we created to automatically generate the GNU make project dependency.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~ ~ Now, you can learn about Chapter 3-Getting Started Chapter 4-The Makefile, Project and Workspace Creator (MPC) to get Started with TAO share and enjoy!Supplement:I was surprised to find that ACE-TAO had a bug. It was okay to make it in my own notebook, but make on the lab computer always said that I couldn't find the shared library file: error while loading shared libraries: libTAO_IDL_BE_DLL.so: cannot open shared object file: No such file or directory. This may be related to the processor or software version ~~ Solution: $ TAO_ROOT/TAO_IDL/tao_idl-GI./test. idl make