xmess emulator

IRIX and IRIX software discussion including open source and commerical offerings.
Forum rules
Any posts concerning pirated software or offering to buy/sell/trade commercial software are subject to removal.
User avatar
alix
Posts: 48
Joined: Fri May 09, 2003 2:25 pm

xmess emulator

Unread postby alix » Sun May 25, 2003 3:42 am

has anyone successfully compiled the xmess emu for irix :cry: ??

I'm still searching for a sega genesis / mega drive emu for irix ... perhaps someone can help :roll: ??

User avatar
dexter1
Moderator
Moderator
Posts: 2062
Joined: Thu Feb 20, 2003 6:57 am
Location: Voorburg, The Netherlands
Contact:

Unread postby dexter1 » Sun May 25, 2003 4:30 am

Welcome Oddoh!

We have succesfully compiled xmame 0.65-1 and 0.66-1 (see the tardists Neko has made), and at this moment i'm trying to build xmess 0.66-1.
Considering the build problems with previous xmame/xmess releases have now been ironed out, this should not be hard. I'll let you know in two hours (!) if my Origin has spit out something useful...

Oh and xmame/xmess 0.68 is out and winmame 0.69 has just been released today...

User avatar
alix
Posts: 48
Joined: Fri May 09, 2003 2:25 pm

xmess

Unread postby alix » Sun May 25, 2003 4:44 am

great!! thanks a lot!!!

User avatar
dexter1
Moderator
Moderator
Posts: 2062
Joined: Thu Feb 20, 2003 6:57 am
Location: Voorburg, The Netherlands
Contact:

Unread postby dexter1 » Sun May 25, 2003 5:35 am

Xmess compile fails with this statement:

Compiling src/cpu/m6805/m6805.c ...
cc-1143 cc: ERROR File = src/cpu/m6805/6805ops.c, Line = 75
Declaration is incompatible with "void bset(char *, bitnum_t)" (declared at
line 517 of "/usr/include/unistd.h").

INLINE void bset (UINT8 bit)

So i have to fix this... Hold on

User avatar
dexter1
Moderator
Moderator
Posts: 2062
Joined: Thu Feb 20, 2003 6:57 am
Location: Voorburg, The Netherlands
Contact:

Unread postby dexter1 » Tue May 27, 2003 5:04 am

Found it, it seems to be a header clash.

I have made a patch, recompiled the 0.67.2 binary and i have tested this with a vectrex image and seems to work fine.
I'll try to contact the xmame/xmess people about this so that we can implement this in xmame 0.69.1

If you have the MIPSPro compilers you can build it yourself with the following patch:

--- osdutils.h.old Sun Apr 6 23:41:28 2003
+++ osdutils.h Mon May 26 16:58:27 2003
@@ -1,7 +1,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
+#ifndef __ARCH_irix
#include <unistd.h>
+#endif

#define strcmpi strcasecmp
#define strncmpi strncasecmp

Patch it against xmame-0.67.2, enable xmess in the makefile, disable xv, and enable mit-shm

That should do the trick. Enjoy :)

User avatar
alix
Posts: 48
Joined: Fri May 09, 2003 2:25 pm

xmess

Unread postby alix » Tue May 27, 2003 12:41 pm

amazing - great work!!! thank you very very much!!
since I don't have the mips pro c compiler - could I have the package from you :cry: ??

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8031
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: xmess

Unread postby nekonoko » Tue May 27, 2003 1:13 pm

I'll try to put one together this evening.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
Shtoink
Posts: 839
Joined: Mon Jan 27, 2003 1:46 am
Location: Port Orchard, WA

Unread postby Shtoink » Wed May 28, 2003 1:53 am

Once again, Neko comes in to save our butts... :wink:

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8031
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Wed May 28, 2003 3:30 am

Shtoink wrote:Once again, Neko comes in to save our butts... :wink:


Sorry, no luck this time. During the link process I get:

Linking xmess.x11 ...
ld32: WARNING 16 : apf_ints used in xmess.obj/apf.a(apf.o) and xmess.obj/apf.a(apf.o) have different sizes.
### Compiler Error in file 4.I (user routine 'x11_window_update_16_to_16bpp..CHKD') during Global Code Motion phase:
### Out of memory in Allocate_Large_Block
cc INTERNAL ERROR: /usr/lib32/cmplrs/be returned non-zero status 1
--- xmess.x11.ipaa003N-/4.o ---
*** Error code 1
/usr/sbin/smake: Error: 1 error
gmake: *** [xmess.x11] Error 2

This is with 1.5GB RAM and approximately 100MB free at the time of the error (no swap used).

Some particulars from makefile.unix:

CFLAGS = -fullwarn -n32 -mips4 -Ofast -OPT:Olimit=0 -IPA
IL = -DINLINE=static
LD = $(CC) -fullwarn -n32 -mips4 -IPA

Also, on the patch above ... maybe add an #ifndef __ARCH_irix_al
as well? I noticed that choosing ARCH = irix_al (with sound using the new al package) tripped that bit up.
Last edited by nekonoko on Wed May 28, 2003 4:52 am, edited 1 time in total.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8031
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Wed May 28, 2003 3:52 am

I'm trying again with

IL = '-DINLINE=static __inline'

maybe that will change something.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
dexter1
Moderator
Moderator
Posts: 2062
Joined: Thu Feb 20, 2003 6:57 am
Location: Voorburg, The Netherlands
Contact:

Unread postby dexter1 » Wed May 28, 2003 3:56 am

Hi neko,

Thanks for the suggestion for #ifndef __ARCH_irix_al . I missed that one.

Nono the INLINE should be static :( Only then i can get the code to compile...

On my Origin i can compile xmess.x11 just fine, tho it needs 1.5 Gig to do so. I have just finished compiling xmess.x11 version 0.69.1 (it's out today).

Shall i ftp it to you, neko, so that you can make a tardist of it?

Oh and what should we make the binary? mips3 or mips4? Gerneral build or optimise for IP30?

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8031
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Wed May 28, 2003 4:12 am

It compiles fine with IL = '-DINLINE=static __inline' just not IL = '-DINLINE=static __inline__' which is what makefile.unix specifies as default. __inline is a supported MIPSpro keyword in 7.3 and up.

It's on the link phase again at the moment ...
Last edited by nekonoko on Wed May 28, 2003 4:51 am, edited 2 times in total.
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8031
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Unread postby nekonoko » Wed May 28, 2003 4:49 am

Okay, I still get the out of memory error during link. I even tried logging out of X and compiling through ssh so I had the full 1.5GB RAM (plus 1GB swap).

If you could create a build with:

CFLAGS = -fullwarn -n32 -mips4 -Ofast -OPT:Olimit=0 -IPA
IL = '-DINLINE=static __inline' <-- (Try this, seems to work okay)
LD = $(CC) -fullwarn -n32 -mips4 -IPA

You can FTP into the /incoming directory on ftp.nekochan.net and I'll package it tomorrow afternoon :)
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.

User avatar
alix
Posts: 48
Joined: Fri May 09, 2003 2:25 pm

xmess

Unread postby alix » Wed May 28, 2003 9:00 am

wow - I'm very impressed!! - thank you so much guys!!!
optimise for ip30 - oh yes :-D !!
my octane can't wait to play phantasy star 8) ...

User avatar
nekonoko
Site Admin
Site Admin
Posts: 8031
Joined: Thu Jan 23, 2003 1:31 am
Location: Pleasanton, California
Contact:

Re: xmess

Unread postby nekonoko » Thu May 29, 2003 12:46 pm

Status update time :)

I received the binaries from Dex (thanks!) but they aren't working for me:

Code: Select all

[Koyori:/Komugi/downloads] neko 3% ./xmess.x11
warning: no mixer plugins available
Bus error (core dumped)

[Koyori:/Komugi/downloads] neko 6% ./xmame.x11
warning: no mixer plugins available
Bus error (core dumped)


This is happening on both my Octane running 6.5.20 and O2 running 6.5.19.

By contrast, here's an example of what I see with xmame.x11 from 0.66.2:

Code: Select all

[Koyori:/Komugi/downloads] neko 12% /usr/local/bin/xmame.x11
warning: no mixer plugins available
info: trying to parse: /usr/local/share/xmame/xmamerc
info: trying to parse: /usr/people/neko/.xmame/xmamerc
info: trying to parse: /usr/local/share/xmame/xmame-x11rc
info: trying to parse: /usr/people/neko/.xmame/xmame-x11rc
info: trying to parse: /usr/local/share/xmame/rc/pacmanrc
info: trying to parse: /usr/people/neko/.xmame/rc/pacmanrc
Mouse/Trakball selected.
loading rom 0: pacman.6e   
loading rom 1: pacman.6f   
loading rom 2: pacman.6h   
loading rom 3: pacman.6j   
loading rom 4: pacman.5e   
loading rom 5: pacman.5f   
loading rom 6: 82s123.7f   
loading rom 7: 82s126.4a   
loading rom 8: 82s126.1m   
loading rom 9: 82s126.3m   
done
pacman.6e    NOT FOUND
pacman.6f    NOT FOUND
pacman.6h    NOT FOUND
pacman.6j    NOT FOUND
pacman.5e    NOT FOUND
pacman.5f    NOT FOUND
82s123.7f    NOT FOUND
82s126.4a    NOT FOUND
82s126.1m    NOT FOUND
82s126.3m    NOT FOUND
ERROR: required files are missing, the game cannot be run.


Can you confirm these binaries are okay on your end Dex?

Code: Select all

-rwxr-xr-x    1 neko     user     28219256 May 28 21:18 xmame.x11
-rwxr-xr-x    1 neko     user     11600584 May 28 21:18 xmess.x11
Twitter: @neko_no_ko
IRIX Release 4.0.5 IP12 Version 06151813 System V
Copyright 1987-1992 Silicon Graphics, Inc.
All Rights Reserved.


Return to “IRIX and Software”

Who is online

Users browsing this forum: Baidu [Spider], vishnu and 1 guest