www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/22/13:02:10

Date: Thu, 22 Oct 1998 18:58:32 +0100 (BST)
From: George Foot <george DOT foot AT merton DOT oxford DOT ac DOT uk>
To: djgpp AT delorie DOT com
Subject: Re: allegro & cross compiler - how?
In-Reply-To: <Pine.SUN.3.91.981022100645.2003P-100000@is>
Message-ID: <Pine.OSF.4.05.9810221846000.8602-100000@sable.ox.ac.uk>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com

On Thu, 22 Oct 1998, Eli Zaretskii wrote:

> On Wed, 21 Oct 1998, Jens Meise wrote:
> 
> > i can't compile allegro with the 
> > cross compiler as the makefile uses dos programs.
> 
> Which DOS programs are those?
> 
> In general, every DOS program has a (more powerful) Unix replacement, so 
> you should have no problems converting the makefiles.

Allegro creates some programs while it builds to help it build
further -- for example, to help accessing structs in its
assembly language routines, it creates (and then runs) a program
to write out the offsets of important struct members to a file
which is then included in assembly sources.

This depends a lot on the alignments in this sample program
being the same as those in the target programs, of course, which
may not be the case in a cross-compilation.  You could modify
the makefile to build these intermediate progarms not for the
DOS target but for whatever machine you're building on, but in
particular the asmdefs program might not work properly.

Once upon a time you used to be able to download Allegro
binaries, for convenience, but I don't think this is the case
any more.  If you like, I can build the library for you and
temporarily upload it somewhere.  Tell me which version you
want, out of:

    Allegro 3.0
    Allegro 3.0 + WIP from March 25th
    Allegro 3.0 + WIP from April 26th
    Allegro 3.0 + WIP from May 30th

Generally there is no reason not to use the latest WIP (May
30th); it's been around for a long time and is very stable, even
though it is theoretically alpha-quality.

OTOH there may be a new WIP released soon, and then a beta and
finally release of Allegro 3.1.  Of course I'll be happy to
recompile for you then too.  Hopefully you'll only need to
download the liballeg.a library, since if you can't
cross-compile the example programs etc then you're not going to
be able to cross-compile your own programs!  The zipped
liballeg.a is around 300k.

Alternatively, let me know what version of Allegro you are using
(in particular, the WIP state) and if it matches one of the
above versions then I can send you the `asmdefs.h' file which is
produced by `asmdefs.exe'.  I can't guarrantee that the rest of
the build will work though.

-- 
george DOT foot AT merton DOT oxford DOT ac DOT uk

xu do tavla fo la lojban  --  http://xiron.pc.helsinki.fi/lojban/lojban.html

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019