Re: Cross compiling orbit2



Hi,

Which platform do you use to crosscompile?
Which platform do you crosscompile for?

On 01/31/2011 11:48 AM, vijay singh wrote:
> Hello,
> 
> Can any one let me know orbit2 cross compiling is possible or not.
> I am trying with 2.14.18 & i found below error during make :
> ====================================================================
> (rm -f corba-defs.h corba-defs-stubs.c corba-defs-skels.c
> corba-defs-common.c corba-defs-imodule.c corba-defs-skelimpl.c || true)
>> /dev/null
> ../../../src/idl-compiler/orbit-idl-2 -I../../../src/idl/CORBA_PIDL

(haven't cross-compiled ORBit2 myself, so just guessing)

As ORBit2's IDL-compiler is executed at buildtime, you likely will need
to have ORBit2 (same version) installed natively on the build platform.
Additionally, you might have to tweak ORBit's build-system to use the
pre-installed IDL-compiler instead of the just built one.

> -I../../../src/idl/CORBA -I../../../src/idl/interop
> -I../../../src/orb/orb-core --noskels --nodefskels --nostubs --noidata
> --nocommon --showcpperrors --define=Object=OObject
> --define=TypeCode=TTypeCode
> --deps ./.deps/corba-defs.idl.P ../../../src/orb/orb-core/corba-defs.idl
> ../../../src/idl-compiler/orbit-idl-2: error while loading shared
> libraries: libIDL-2.so.0: cannot open shared object file: No such file

Interesting here is that it seems the just built IDL-compiler could start
whenever the correct shared libraries were found...
One of the ideas/problems/specifics of cross-compiling usually is that the
just built binaries cannot be executed on the build platform.

> or directory
> make[8]: *** [corba-defs.h] Error 127
> ====================================================================
> 
> This library is available.

Where do you think this library being available?
Is it the correct platform/bitness the idl-compiler does search for?

> 
> Can any one help me to solve link error.

This isn't a link-error, but a runtime error.

HTH,
/haubi/


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]