OpenCCM - Home Page | |||||||||||||||||||||||||||
Table of contents
Extracting contents of archiveThe archive has the following form: "microccm-version.tar.gz", so the user has to uncompress this file by using the command: tar -xvzf microccm-version.tar.gz. Contents of archiveAfter deflating, the user obtain a directory called "microccm-version". Inside it, we can find some directories:
Development environment and prerequisiteFor the microCCM component framework, the following configuration has been used: The main configuration used by the generator
The resulting code (run-time) is generated for the following configurations:
Quick installation processIntroductionThree steps are necessary to install the framework:
Variables configurationBefore installing the application, the user must configure some environment variables. There are two possibilities: Either the user can type in $microCCM_DIR directory: $. ./set_environment.sh Or, one can execute the following shell commands: Configuring environment variables for TAO: $ export ACE_ROOT=/install/dir/of/TAO/ACE_wrappers $ export TAO_ROOT=$ACE_ROOT/TAO $ export LD_LIBRARY_PATH=$ACE_ROOT/lib $ export PATH=$TAO_ROOT/TAO_IDL:$ACE_ROOT/bin:$PATH Configuring some variables for OpenCCM: $ cd $OPENCCM_INSTALL_DIR/JacORB-2.1/bin $ . ./envi.OpenCCM.sh Configuring some variables for microCCM component framework $ export microCCM_DIR=$PWD $ export PATH=$microCCM_DIR/bin:$PATH $ export LD_LIBRARY_PATH=$microCCM_DIR/lib:$LD_LIBRARY_PATH Installing microccm component FrameworkIn order to create all the executables and libraries the user can proceed this way: in the $microCCM_DIR directory, the user can type $ generateMakefiles.sh MCCMGenerator.mwc $ make Installing deploymentIn $microCCM_DIR/deployment directory you can type: $ generateMakefiles MCCMDeployment.mwc $ make Installing testsThe events test: $ cd $microCCM_DIR/tests/unit/events $ generateMakefiles.sh events.mwc $ make The components_connection test: $ cd $microCCM_DIR/tests/unit/components_connection $ generateMakefiles.sh components_connection.mwc $ make Generator descriptionOverviewIn this section, we attempt to describe how to generate all the executable files used for the code generation: it takes an idl3 file as parameters. For example "component1.idl3" and generates 3 kinds of files, one for the executors, anbother one for the Component Implementation Framework (CORBA) and finally, a file containing all the interfaces. The directory generators contains all the source code for the MicroCCM generator. In order to build the generator, the user has to install TAO and/or OpenCCM before. The generator send CORBA Interface Repository requests to an IR3 server (those one can be provided either from TAO or from OpenCCM), in order to obtain all data defined in the component IDL3 file. Then, thanks to these data, it generates for instance, two types of files: IDL files, and C++ files (containing the executor and CORBA code). The result of compilation will produce some binaries written in the directory $microCCM_DIR/bin:
All the objects file concerning this platform, this orb, and this compiler will be written in the directory where the files are compiled. MPC files in generator's directoryIn the directory $microCCM_DIR/generators, the file MCCMGenerator.mpc contains all the configurations to generate the corresponding "Makefile" files. It will generate one Makefile per project. There are five projects:
In order to generate the makefile for the library libMCCMGenerator.so, the mpc project inherits from some base projects: taolib.mpb, mccm_taodefaults.mpb which contains all paths, libaries and includes data, needed to compile a project containing references to TAO libraries such as: PortableServer, libTAO, etc. Among other things, this project use lib_TAO_IFR_Client.so, the TAO shared library, that permits to send IFR requests to the chosen IFR server. Therefore, some specific configurations, dedicated to this project, have been added: library's name, installation directory etc. MPC files in includes directoryIn the directory $microCCM_DIR/includes, the MPC file contains all the configurations to generate the corresponding "Makefile" files. It will generate one Makefile per project. The project "libComponentStubsTAO" produces "Makefile.libComponentStubsTAO". In turn, it creates stubs and skeleton from the LightWeight component IDL2 file (Lw_component.idl) for TAO, and creates the shared library "libComponentStubsTAO.so". MWC file and Makefile generation for MicroCCM generatorThe user launches the "Makefile" generation, using perl scripts mpc.pl and mwc.pl (those located in the $microCCM_DIR/bin directory). The user doesn't need to invoke them directly, mwc.pl perl program is invoked by a script called generateMakefiles.sh (in $microCCM_DIR/bin directory) with all the needed parameters. Here is the detail: $ $microCCM_DIR/bin/mwc.pl -type make \ -template mccm_make \ -value_template soext=so -include $microCCM_DIR/config_mpc/templates \ -include $microCCM_DIR/config_mpc/base_projects In the $microCCM_DIR directory, the workspace file, MCCMGenerator.mwc contains all the needed projects allowing to generate the right makefiles, which in turn creates all MicroCCM code generator libraries and executables, i.e. those located in includes and generators directories. Hence, all Makefiles can be generated by executing the following command: $ generateMakefiles.sh MCCMGenerator.mwc Compilation processOnce the makefiles (Makefile and Makefile.MCCMGenerator) has been generated in the $microCCM_DIR directory, the user can simply type the following command: $ make Then all the needed libraries will be installed in the $microCCM_DIR/lib directory, and the binaries will be installed in the $microCCM_DIR/bin directory. Building the deployment binariesOverviewAll the files directly involved in the creation of deployment binaries are located in $microCCM_DIR/deployment.
Compiling processIn $microCCM_DIR/deployment directory you can type: $ generateMakefiles MCCMDeployment.mwc $ make Building the tool librariesOverviewInside the $microCCM_DIR/tools directory, the user can find three subdirectories:
Compilation processInside the directory $microCCM_DIR/tools type: $ generateMakefiles.sh MakeLibTools.mwc $ make Copyright Thales 2003-2005. |
|||||||||||||||||||||||||||
Copyright © 1999-2005, ObjectWeb Consortium | contact | webmaster | Last modified at 2005-07-07 02:04 PM |