From: Rugxulo Newsgroups: openwatcom.users.c_cpp Subject: Re: more examples for "User projects" (wiki), apps compiled with Watcom Date: Sat, 20 Nov 2010 12:21:54 -0800 (PST) Hi again, :-) On Nov 20, 1:22pm, Rugxulo wrote: > > On Nov 20, 11:34am, "Roald Ribe" wrote: > > > Personally I will only add projects that has specific support for > > Watcom/OW. > > I don't remember ever (successfully) trying to build Allegro (DOS) > with OpenWatcom. But it did allegedly work at one time. Here's the > relevant makefile: > > https://alleg.svn.sourceforge.net/svnroot/alleg/allegro_outdated/trun... > > If I get really bored later, maybe I'll try building it, but > definitely not now. Okay, so I changed my mind. It works, but you still need some DJGPP tools (as, make, sed?), even when building with OpenWatcom (for DOS/ 4GW). I got the "hacked / patched" 4.2.2 version from Raine dude's website (though he only patched the DJGPP part). Seems that even 4.2.2 (which is latest DJGPP puts in /v2tk/) had some regressions that he had to work around for his emulator. http://rainemu.swishparty.co.uk/html/archive/allegro-4.2.2.tar.bz2 (srcs, 3 MB) I setup OpenWatcom env. vars. (manually, "call watcom win32") then added my DJGPP bin\ directory to the path and set %DJGPP% as typical. Then "fix.bat watcom", "make" [sic], and fix the BinUtils 2.19 bug / quirk ("fnstsw %eax" -> "fnstsw %ax") x2 (since newer BinUtils is more picky than older ones, and this was only officially fixed in later Allegro 4.2.3 I think), then "make" again, and it seems to (mostly) successfully build! :-)) EDIT: Trying again, oops, forgot that it had some minor errors on the way. I think I just manually built asmdef (not sure why that's not done correctly), then later I just ran "make -k" to ignore whatever else couldn't be done so that it would build all the examples. Almost all the examples it comes with that I tried worked okay though using the mouse seems to crash any of the programs consistently, not sure why, bug? (Yes, I tried a few different extenders.) Obviously XP mostly isn't friendly to DOS, so I had to do most testing under DOSBox 0.74, but the actual compiling (via Win32-hosted compiler) was okay. > Anyways, here's an ultra simple (!) example for > Allegro (Vector, by Angelo Mottola) First of all, my bad, it's not called Vector (was thinking of another Euphoria game) but Monospace (aka, mono.c). And it's non-standard C, apparently, so it doesn't like OpenWatcom. No huge loss though, the official Allegro examples are *way* more impressive (and there are lots). Just for proof (from /examples/): -----m 774640 Nov 20 14:14 ex12bit.exe -----m 774684 Nov 20 14:14 ex3buf.exe -----m 783332 Nov 20 14:14 ex3d.exe -----m 775240 Nov 20 14:14 exaccel.exe -----m 774924 Nov 20 14:14 exalpha.exe -----m 774828 Nov 20 14:14 exbitmap.exe -----m 774880 Nov 20 14:14 exblend.exe ... ... etc. etc.