From: Christopher Croughton Message-Id: <97Nov26.134529gmt+0100.17032@internet01.amc.de> Subject: Re: Where is JLIB located these days? To: luenen AT informatik DOT uni-bonn DOT de, djgpp AT delorie DOT com Date: Wed, 26 Nov 1997 12:38:17 +0100 Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk Ahasverus wrote: > I found the Jlib homepage at http://www.wave.co.nz/pages/jpg/jlib/ and > it says, that the latest version is v1.9, dating from 12 Aug 97. > BTW, has anyone using Jlib under Linux so far? When I run the demo from > Jlib, I always get > JLib Application: Internal Error. > SIGSEGV Recieved. > Stack Dump: > screen_blit_fs_buffer > End of Stack Dump. > Segmentation fault > Any idea? Not directly. However, I ran it on a DEC Alpha (64-bit RISC architecture, OSF1 / DEC Unix, gcc) and I found a load of errors in his 'optimised' memory functions (mainly bad casts and assuming pointers are (a) the same size as ints and (b) they're only 32-bit). I suggest for a start that you go through his multuline macros in jlib.h and replace them with the appropriate function (memset/memcopy), which will in fact be faster anyway since they use assembler and are optimised for the machine architecture. Note that I always get SIGSEGV, even with clipping on, when using the "* sprite color" and "* sprite texture" when they go near the left side of the area. Not even overlapping, as far as I can see, just near it, and nothing else crashes at all with clipping on (everything else clips properly, including the rotating sprite). This is using the X version (oh, the makefile is a makefile.in which needs to be preprocessed by some (missing) Perl script, I did it by hand). BTW, it seems to not like running under DesqView (under MSDOS) at all. Possibly something to do with the video mode. I'll experiment with other screen resolutions and see if they work... Still, at least it lets me draw things under X which otherwise is a real pain... Chris C