[omniORB] omniidl and pydev

Duncan Grisby duncan at grisby.org
Wed Oct 19 11:57:05 BST 2005


On Monday 17 October, "J rgen" Weber wrote:

> I'd like to try to write a backend for omniidl.
> 
> Not considering myself a Real Programmer
> (http://catb.org/~esr/jargon/html/R/Real-Programmer.html)
> and just starting in Python (coming from 10 ys of
> Java), I would like to use the great pydev Eclipse
> plugin to debug and single-step the backend code.
> 
> Has anybody tried this already?
> 
> Pydev not being able to run the omniidl.exe I tried to
> run the Unix omniidlrun.py within the debugger.
> 
> It fails with the message given below. It seems to
> miss the .so but there is no corresponding .dll for
> Windows.

omniidl has a C++ front-end parser, and Python back-ends.

On Unix platforms, the C++ bit is compiled as a shared library that is
loaded by Python. The main() function is written in Python.

On Windows, it's awkward to make the omniidl command as a Python
program (especially if there isn't a system-wide install of Python), so
the main() function is written in C++. With that arrangement, there is
no library for the C++ bit -- it's all inside the omniidl.exe
executable.

To run omniidl inside pydev, you'll have to build the omniidl C++ part
as a library rather than an executable. You need to modify the dir.mk
file in src/tool/omniidl/cxx to build a library. You should be able to
figure out the incantations you need by looking at modules/dir.mk in the
omniORBpy distribution.

To be honest, I think that'll all be more trouble than it's worth.

Cheers,

Duncan.

-- 
 -- Duncan Grisby         --
  -- duncan at grisby.org     --
   -- http://www.grisby.org --



More information about the omniORB-list mailing list