[Coin-discuss] Cross-compiling COIN projects (Osi)

Andreas Waechter andreasw at watson.ibm.com
Thu Feb 28 15:13:48 EST 2008


Hi again, Stefan,

I had a look at this.  Are you sure that you need to use the --target 
option?  It is my impression that --host is meant for cross compilation. 
I believe that the run test in configure are switched off if you use 
--host.

I can't try this right now since I don't have access to a system with 
a cross compiler.  But at some point I had successfully compiled Ipopt (so 
that it could run on my Ipod...)

Regards,

Andreas

On Wed, 27 Feb 2008, Andreas Waechter wrote:

> Hi Sebastian,
>
> This is a good observation.  It might be possible to fix it easily.  Do
> you know about autoconf, have you used it?  Is it true that all we have to
> do is to use the AC_CANONICAL_TARGET macro?
>
> Thanks,
>
> Andreas
>
> On Wed, 20 Feb 2008, Sebastian Nowozin wrote:
>
>>
>> Hello everybody,
>>
>> is there a standard way to cross compile COIN projects?
>>
>> I have an Ubuntu 7.10 running a 32 bit kernel and want to produce 64 bit
>> libraries of COIN Osi in order to statically link my program against.  I
>> have done this before for some other libraries using gcc's -m64 option.
>>
>>   The usual configure --build/--host/--target option is not working
>> because --target is missing from the configure script in COIN Osi.
>> Also, I tried using ADDCXXFLAGS="-m64", but the configure script
>> compiles and tries to run some test program which fails because the
>> actual host is 32 bit.
>>
>> Using cross-compilation to produce static binaries would ease the build
>> process (for programs to be run on a 64bit cluster system) considerably,
>> as the target systems are rather old and do not have modern compilers
>> installed.
>>
>> Sebastian
>> _______________________________________________
>> Coin-discuss mailing list
>> Coin-discuss at list.coin-or.org
>> http://list.coin-or.org/mailman/listinfo/coin-discuss
>>
> _______________________________________________
> Coin-discuss mailing list
> Coin-discuss at list.coin-or.org
> http://list.coin-or.org/mailman/listinfo/coin-discuss
>



More information about the Coin-discuss mailing list