| | 1 | === First, install omniORBpy === |
| | 2 | |
| | 3 | === Get omniORBpy and Decompress === |
| | 4 | |
| | 5 | Download the omniORBpy v2.7 source (tar.gz file) from http://omniorb.sourceforge.net/. Later versions have not been tested. |
| | 6 | |
| | 7 | {{{ |
| | 8 | $ tar -xzvf omniORBpy-2.7.tar.gz |
| | 9 | }}} |
| | 10 | |
| | 11 | === Build and Install omniORBpy === |
| | 12 | |
| | 13 | {{{ |
| | 14 | $ ./configure |
| | 15 | $ make |
| | 16 | $ su -c "make install" |
| | 17 | }}} |
| | 18 | |
| | 19 | or |
| | 20 | |
| | 21 | {{{ |
| | 22 | $ cd [omniORBpy directory] |
| | 23 | $ mkdir build |
| | 24 | $ cd build |
| | 25 | $ ../configure [configure options] |
| | 26 | $ make |
| | 27 | $ su -c "make install" |
| | 28 | }}} |
| | 29 | |
| | 30 | === Create the python bindings for omniORB === |
| | 31 | |
| | 32 | 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. |
| | 33 | |
| | 34 | {{{ |
| | 35 | $ mkdir idl_py |
| | 36 | $ cd idl_py |
| | 37 | $ cp <path to ossie idl files>/*.idl . |
| | 38 | $ omniidl -p<path to omniORBpy backend> -bpython * |
| | 39 | }}} |
| | 40 | |
| | 41 | - <path to ossie idl files> is typically ''/usr/local/include/ossie/'' if installing from subversion but may be elsewhere if installed by another method. |
| | 42 | |
| | 43 | - <path to omniORBpy backend> is typically ''/usr/local/lib/python<version>/site-packages''. |
| | 44 | |
| | 45 | === As root, create ossie.pth === |
| | 46 | |
| | 47 | {{{ |
| | 48 | # cd /usr/lib/python<version>/site-packages/ |
| | 49 | # vim ossie.pth |
| | 50 | }}} |
| | 51 | |
| | 52 | - Create the ossie.pth file to look as follows |
| | 53 | |
| | 54 | {{{ |
| | 55 | <path to idl_py> |
| | 56 | /usr/local/lib/python2.x/site-packages/ |
| | 57 | }}} |