[omniORB] Cross-Compiling omniORB

Peter Schaefer-Hutter schaefer.hutter at gmail.com
Fri May 13 22:55:23 BST 2005


Hello!

I'm trying to cross-compile omniORB 4.0.6 for a PPC-Target by
using gcc on a x86-host and the old makefile method.

Steps i've done:

1) Uncommented the line

   platform = powerpc_linux_2.2_glibc

   in config/config.mk

2) Copied i586_linux_2.0_glibc.mk to powerpc_linux_2.2_glibc.mk
   because powerpc_linux_2.2_glibc.mk is MIA.

3) In powerpc_linux_2.2_glibc.mk i substituted the processor-line with

   PowerPCProcessor = 1

   and exchanged every reference to gcc using the path to my ppc-gcc.

So far a i can see, everything compiles fine up to the point when omniidl
gets called for the first time:

omniidl: ERROR!
omniidl: Could not open IDL compiler module _omniidlmodule.so
omniidl: Please make sure it is in directory /home/peter/omniorb/omniORB-4.0.6/lib/powerpc_linux_2.2_glibc
omniidl: (or set the PYTHONPATH environment variable)
omniidl: (The error was '/home/peter/omniorb/omniORB-4.0.6/lib/powerpc_linux_2.2_glibc/_omniidlmodule.so: ELF file data
encoding not little-endian')

Well, that's clear, 'cause PPC is big-endian.

Any way to give omniidl a clue?

Best regards,

 Peter



More information about the omniORB-list mailing list