Re: Cross compiling orbit2



On 02/01/2011 10:45 AM, vijay singh wrote:
> 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.

Then this is the way to go.

> But i think in this case it uses orbit-idl-2 binary built for host & it
> will not run on target.

Do you /think/ so or have you /tried/ an experienced this problem?

Actually, you do want to use /usr/bin/orbit-idl-2 at cross-build-time: it
is "used" (=executed) to process idl-files shipped with ORBit2 to create
more c-files to be cross-compiled.

This does /not/ mean /usr/bin/orbit-idl-2 will be "used" (=copied) to the
target machine instead of another cross-compiled orbit-idl-2 binary.

/haubi/


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