[omniORB] Trying to get omniidl to work for python..

Kiernan J Holland kiernanholland@juno.com
Wed Aug 14 02:34:01 2002


I'm having troubles trying to get omniidl to run, I was hoping to use it
with Python, 
and want to prototype some ORB services with it, I was also wanting to 
know that once I do get this to work, where would I specify the include
path 
for the idl files.


Platform:  NT 4.0, Cygwin, Python 2.2 

I dearchived omniORB305-win32-omniPython.zip to c:/  

I created the following in my cygwin.bat:
 
set PATH=%PATH%;C:\omniORB305-win32-omniPython\bin\x86_win32
set OMNIORBTOP=C:\omniORB305-win32-omniPython
set
PYTHONPATH=%PYTHONPATH%;%OMNIORBTOP%\lib\python;%OMNIORBTOP%\lib\x86_win3
2
set LD_LIBRARY_PATH=%LD_LIBRARY_PATH%;%OMNIORBTOP%\lib\x86_win32

When I get into cygwin, 

> omniidl -bpython -u CosNaming.idl

        Undefine name for preprocessor
  -Idir           Include dir in search path for preprocessor
  -E              Run preprocessor only, print on stdout
  -Ycmd           Set command for the preprocessor
  -N              Do not run preprocessor
  -T              Use a temporary file, not a pipe, for preprocessor
output
  -Wparg[,arg...] Send args to the preprocessor
  -bback_end      Select a back-end to be used. More than one permitted
  -Wbarg[,arg...] Send args to the back-end
  -nf             Do not warn about unresolved forward declarations
  -nc             Do not treat identifiers differing only in case as an
error
  -k              Comments after declarations are kept for the back-ends
  -K              Comments before declarations are kept for the back-ends
  -Cdir           Change directory to dir before writing output
  -d              Dump the parsed IDL then exit
  -i              Enter interactive mode after parsing the IDL
  -pdir           Path to omniidl back-ends ($TOP/lib/python)
  -V              Print version info then exit
  -u              Print this usage message and exit
  -v              Trace compilation stages
omniidl: Could not import back-end `python'
omniidl: Maybe you need to use the -p option?
omniidl: (The error was `No module named python')

If I go to c: directory I get a listing something like this:

du --max-depth=1 c:/omni*/*

7 c:/omniORB305-win32-omniPython/CHANGES_240
1 c:/omniORB305-win32-omniPython/CHANGES_250
8 c:/omniORB305-win32-omniPython/CHANGES_261
8 c:/omniORB305-win32-omniPython/CHANGES_271
9 c:/omniORB305-win32-omniPython/CHANGES_280
18 c:/omniORB305-win32-omniPython/COPYING
26 c:/omniORB305-win32-omniPython/COPYING.LIB
2 c:/omniORB305-win32-omniPython/COPYING.PYTHON
4 c:/omniORB305-win32-omniPython/CREDITS
4 c:/omniORB305-win32-omniPython/PORTING
4 c:/omniORB305-win32-omniPython/README.ETSKernel
8 c:/omniORB305-win32-omniPython/README.FIRST
4 c:/omniORB305-win32-omniPython/README.FreeBSD
1 c:/omniORB305-win32-omniPython/README.KAI_C++
2 c:/omniORB305-win32-omniPython/README.Linux
1 c:/omniORB305-win32-omniPython/README.Python
2 c:/omniORB305-win32-omniPython/README.SGI
1 c:/omniORB305-win32-omniPython/README.SunC++5
1 c:/omniORB305-win32-omniPython/README.aix
1 c:/omniORB305-win32-omniPython/README.bs2000
1 c:/omniORB305-win32-omniPython/README.egcs
3 c:/omniORB305-win32-omniPython/README.hpux11
12 c:/omniORB305-win32-omniPython/README.openvms
2 c:/omniORB305-win32-omniPython/README.openvms_v6
2 c:/omniORB305-win32-omniPython/README.os2
11 c:/omniORB305-win32-omniPython/README.rtems
12 c:/omniORB305-win32-omniPython/README.unix
17 c:/omniORB305-win32-omniPython/README.win32
17 c:/omniORB305-win32-omniPython/ReleaseNote_omniORB_305
0 c:/omniORB305-win32-omniPython/THIS_IS_omniORB_3_0_5
41 c:/omniORB305-win32-omniPython/bin/scripts
25276 c:/omniORB305-win32-omniPython/bin/x86_win32
25317 c:/omniORB305-win32-omniPython/bin
9 c:/omniORB305-win32-omniPython/bugfixes-300.xml
7 c:/omniORB305-win32-omniPython/bugfixes-301.xml
7 c:/omniORB305-win32-omniPython/bugfixes-302.xml
4 c:/omniORB305-win32-omniPython/bugfixes-303.xml
5 c:/omniORB305-win32-omniPython/bugfixes-304.xml
1 c:/omniORB305-win32-omniPython/bugfixes-305.xml
5 c:/omniORB305-win32-omniPython/config
305 c:/omniORB305-win32-omniPython/doc/omniORB
423 c:/omniORB305-win32-omniPython/doc/tex
2390 c:/omniORB305-win32-omniPython/doc
101 c:/omniORB305-win32-omniPython/etc
243 c:/omniORB305-win32-omniPython/idl/COS
276 c:/omniORB305-win32-omniPython/idl
1235 c:/omniORB305-win32-omniPython/include/COS
870 c:/omniORB305-win32-omniPython/include/omniORB3
1 c:/omniORB305-win32-omniPython/include/omniParTcl
23 c:/omniORB305-win32-omniPython/include/omnithread
3 c:/omniORB305-win32-omniPython/include/omniVms
342 c:/omniORB305-win32-omniPython/include/python1.5
2495 c:/omniORB305-win32-omniPython/include
1251 c:/omniORB305-win32-omniPython/lib/python
125 c:/omniORB305-win32-omniPython/lib/python1.5
103732 c:/omniORB305-win32-omniPython/lib/x86_win32
105108 c:/omniORB305-win32-omniPython/lib
19 c:/omniORB305-win32-omniPython/man/man1
16 c:/omniORB305-win32-omniPython/man/man5
35 c:/omniORB305-win32-omniPython/man
172 c:/omniORB305-win32-omniPython/mk/platforms
247 c:/omniORB305-win32-omniPython/mk
89 c:/omniORB305-win32-omniPython/patches
157 c:/omniORB305-win32-omniPython/src/appl
1 c:/omniORB305-win32-omniPython/src/atmos_if
238 c:/omniORB305-win32-omniPython/src/examples
8219 c:/omniORB305-win32-omniPython/src/lib
94 c:/omniORB305-win32-omniPython/src/services
1350 c:/omniORB305-win32-omniPython/src/tool
10065 c:/omniORB305-win32-omniPython/src
17 c:/omniORB305-win32-omniPython/stub
156 c:/omniORB305-win32-omniPython/update.log