Re: Cross compiling orbit2



On Tue, 2011-02-01 at 09:23 +0100, Michael Haubenwallner wrote:
> Hi,
> 
> Which platform do you use to crosscompile?
i am on X-86/Ubuntu10.04.
> Which platform do you crosscompile for?
ARM11
> 
> 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.
How can i do the same ??
> Additionally, you might have to tweak ORBit's build-system to use the
> pre-installed IDL-compiler instead of the just built one.
I understand that i have to use :--with-idl-compiler option while
configuring ORBit2.
One catch here is if i will give--with-idl-compiler=/usr/bin/orbit-idl-2
then it will build for me.
But i think in this case it uses orbit-idl-2 binary built for host & it
will not run on target.
> 
> > -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?
configure happen successfully for me & i can see that while compiling it
is using header from path used for cross compilation.

If someone has cross compiled ORBit then please do share their result or
idea to solve the problem.
> 
> > 
> > Can any one help me to solve link error.
> 
> This isn't a link-error, but a runtime error.
> 
> HTH,
> /haubi/
> _______________________________________________
> orbit-list mailing list
> orbit-list gnome org
> http://mail.gnome.org/mailman/listinfo/orbit-list




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