...
Code Block |
---|
|
# install external products
cd /Repos
source LGPL/acsBUILD/config/.acs/.bash_profile.acs
cd ExtProd/INSTALL
make all
# install ACS
cd ../..
make build |
...
Set INTROOT directory
Visit ACS Directory Structure#INTROOT for full details.
Code Block |
---|
|
export INTROOT=~/workspace/introot
getTemplateForDirectory INTROOT $INTROOT |
Set IDL
First we create the directory for the IDL:
Code Block |
---|
|
getTemplateForDirectory MODROOT_WS idlHelloComp
cd idlHelloComp/src
touch ../idl/HelloComponent.idl |
We fill the IDL with the following:
Code Block |
---|
language | cpp |
---|
title | idlHelloComp/idl/HelloComponent.idl |
---|
linenumbers | true |
---|
collapse | true |
---|
|
#ifndef _HELLOCOMPONENT_IDL_
#define _HELLOCOMPONENT_IDL_
#pragma prefix "acsws"
#include <acscomponent.idl>
module workshop {
interface HelloComponent : ACS::ACSComponent {
string printHello();
};
};
#endif |
We modify the Makefile:
Code Block |
---|
title | idlHelloComponent/src/Makefile |
---|
|
...
IDL_FILES = HelloComponent
HelloComponentStubs_LIBS = acscomponentStubs
...
COMPONENT_HELPERS=on
... |
We then compile and install the IDL definitions:
Code Block |
---|
language | bash |
---|
title | Compilation |
---|
|
make -j all install |