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

Andreas Waechter andreasw at watson.ibm.com
Wed Feb 27 13:54:21 EST 2008


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
>



More information about the Coin-discuss mailing list