[omniORB] Omniidl and omniidlrun.py problem

Duncan Grisby dgrisby@uk.research.att.com
Fri, 24 Aug 2001 12:23:53 +0100


On Thursday 23 August, "Paulo" wrote:

> I am trying to cross-compile omniorb3.0.4 to lynx3.0.1 (from sun =
> solaris) and keep getting this errors:
> %../../../bin/powerpc_lynxos_3.0.1/omniidl
> /usr/bin/env: No such file or directory
> 
> % ../../../bin/powerpc_lynxos_3.0.1/omniidlrun.py
> /usr/bin/env: No such file or directory

The root of the problem is that the build environment doesn't know you
are cross-compiling. It has built the IDL compiler for your lynxos
platform, but is trying to run it on Solaris. Have a look at
mk/rtems.mk to see how the build for rtems uses a different platform's
IDL compiler.

Having said that, your immediate problem seems to be that your machine
doesn't have the /usr/bin/env command, which is a bit peculiar. You
can avoid that problem by editing omniidlrun.py to directly reference
/usr/local/bin/python or wherever you put Python.

Cheers,

Duncan.

-- 
 -- Duncan Grisby  \  Research Engineer  --
  -- AT&T Laboratories Cambridge          --
   -- http://www.uk.research.att.com/~dpg1 --