First, install omniORBpy

Get omniORBpy and Decompress

Download the omniORBpy v2.7 source (tar.gz file) from http://omniorb.sourceforge.net/. Later versions have not been tested.

$ tar -xzvf omniORBpy-2.7.tar.gz

Build and Install omniORBpy

$ ./configure
$ make
$ su -c "make install"

or

$ cd [omniORBpy directory]
$ mkdir build
$ cd build
$ ../configure [configure options]
$ make
$ su -c "make install"

Create the python bindings for omniORB

You can create the bindings directory somewhere in your user directory and list the directory in a .pth file as shown here, or you copy the compiled idl to the local site-packages directory.

$ mkdir idl_py
$ cd idl_py
$ cp <path to ossie idl files>/*.idl .
$ omniidl -p<path to omniORBpy backend> -bpython *
  • <path to ossie idl files> is typically /usr/local/include/ossie/ if installing from subversion but may be elsewhere if installed by another method.
  • <path to omniORBpy backend> is typically /usr/local/lib/python<version>/site-packages.

As root, create ossie.pth

# cd /usr/lib/python<version>/site-packages/
# vim ossie.pth
  • Create the ossie.pth file to look as follows
<path to idl_py>
/usr/local/lib/python2.x/site-packages/







注:omniORBpy(原文出处,翻译整理仅供参考!)