Build Your Own Arcade Controls Forum

Main => Software Forum => Topic started by: Wade on November 07, 2004, 10:54:07 pm

Title: Mame 0.36 build failing with"can't run in DOS mode" error
Post by: Wade on November 07, 2004, 10:54:07 pm
I'm trying to do a .36 build according to the directions on mame.net, and everything is working fine except the final build.

I'm using Win2k.  On the previous makes, I had to exit into DOS mode to get the build to work.  Well, now, on the final "make" for mame.exe, it built for awhile and then quits with a "can't run in DOS mode" error.

Does anyone know how I can find out which program is giving this error?

I noticed I got the exact same error message when trying to run unzip.exe from the same site.  So I deleted it and copyed a DOS version of pkunzip.exe (which I verified works properly) to unzip.exe.  Still didn't change the program, still bombs on the same exact error message.

Any ideas?

Thanks,
Wade
Title: Re:Mame 0.36 build failing with"can't run in DOS mode" error
Post by: Thenasty on November 07, 2004, 10:58:20 pm
if its the final stage, MAME.EXE gets compress by the UPX.EXE program and that is a WINDOWS prgoram. Maybe there is a DOS one and if so, you need to reaplce it ot maybe the MAKEFILE you  could un-comment it NOT TO COMPRESS the final EXE file so that givves you a LARGER MAME.EXE file size.
Title: Re:Mame 0.36 build failing with"can't run in DOS mode" error
Post by: Wade on November 08, 2004, 08:31:15 am
Are you sure UPX is a windows program?  If I run it from the DOS command line, it seems to work okay (gives me a list of command line options, etc.)

I read that UPX is optional.  However, this build is crashing before it gets to the UPX step.  There is no MAME.exe found.  My understanding is that UPX just compresses the finished EXE file.  I'd be okay without compressing the EXE, but so far I haven't been able to get it to build the EXE completely.

I'm going to try to do the build on a Windows98 machine tonight and see if that changes anything.

Any other ideas are appreciated!

Thanks!
Wade
Title: Re:Mame 0.36 build failing with"can't run in DOS mode" error
Post by: Thenasty on November 08, 2004, 08:56:21 am
are you sure the compile is finished ?

Maybe you are not finish. At some point if you were compiling from a pure dos machine, you should have gotten and error about NASM  m68000 bla bla bla error. This is also a windows program, I dunno if there is a DOS one, and if I remember correctly, the file must be rename or copied to NASMW.exe or versa, versa. What I did was just have those 2 files (NASM.EXE, NASMW.EXE) which are of course the same file.

Like I said, the last step after a succesfull compile is that UPX thing.

Maybe somone else know something about your errors.
Compile it under Win98 and all should be ok.
Title: Re:Mame 0.36 build failing with"can't run in DOS mode" error
Post by: Wade on November 08, 2004, 09:12:21 am
No, the compile isn't finished.  I'm at the step where you do the last "make", in the djgpp\mame directory.  It runs for awhile and then quits with that error message.  If I restart it, it just quits immediately with the same error message.

I think the step you are talking about might be where I am.  I am getting some kind of error which mentions m68 something I think.

If it builds okay in Win98 tonight then I guess I can't really complain.  I'll try it tonight.

Thanks for the help,
Wade
Title: Re:Mame 0.36 build failing with"can't run in DOS mode" error
Post by: Wade on November 09, 2004, 08:10:29 am
Well, it built fine with Win98.  Yay!  Thanks for the help.

Wade