[omniORB] EXT: Re: Building omniORBpy 2.4.6 on MSYS2 + MinGW64

Duncan Grisby duncan at grisby.org
Thu Jul 18 11:20:59 UTC 2024


First of all, are you now using omniORB 4.3.2?  If not, please do. Any
changes you propose will not be applied to the 4.2.x line. You must
work with 4.3.x.

> In that call, it  runs a preprocessor command aimed to generated the
> c++ code from the IDL:
> 
>       file = os.popen(preproc_cmd, "r")

This is failing because the pipe does not work on native Windows (I
think it does work with cygwin). Look at IdlPyAlwaysTempFile in
idlpython.cc:

  static PyObject* IdlPyAlwaysTempFile(PyObject* self, PyObject* args)
  {
    if (!PyArg_ParseTuple(args, (char*)"")) return 0;
#if defined (_MSC_VER) && _MSC_VER > 1200 || defined(__DMC__)
    return PyInt_FromLong(1);
#else
    return PyInt_FromLong(0);
#endif
  }

That needs to return 1 for you too.

Duncan.
> > 

-- 
Duncan Grisby <duncan at grisby.org>



More information about the omniORB-list mailing list