Date: Thu, 22 Oct 1998 18:58:32 +0100 (BST) From: George Foot To: djgpp AT delorie DOT com Subject: Re: allegro & cross compiler - how? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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