ZSNES with MinGW and MSYS

General area for talk about ZSNES. The best place to ask for related questions as well as troubleshooting.

Moderator: ZSNES Mods

Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

The makefile in CVS has been updated to include UNIx-like environments. [win32-unix-shell is the PLATFORM flag for it, I believe.]
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Vareni Stargazer wrote:The makefile in CVS has been updated to include UNIx-like environments. [win32-unix-shell is the PLATFORM flag for it, I believe.]
Yes, I saw.

I was also informed that that commit referred to you, not me. :P
[u][url=http://bash.org/?577451]#577451[/url][/u]
Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

Yeah, cos I wouldn't stop bitching 'til he did something about non-cmd.exe commandlines.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Noxious Ninja wrote:
Vareni Stargazer wrote:The makefile in CVS has been updated to include UNIx-like environments. [win32-unix-shell is the PLATFORM flag for it, I believe.]
Yes, I saw.

I was also informed that that commit referred to you, not me. :P
It referred to both of you.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
ieremiou
Rookie
Posts: 49
Joined: Thu Jul 29, 2004 6:38 am
Location: Michigan
Contact:

Post by ieremiou »

"rm -f" just got added to the CVS so that part is in still have to commit out the "\blahblablah" and "del" stuff.

Otherwise looking good.

Although I said this already in the main CVS thread two of the four GUIs aren't working for me. Water Effect B and Burning Effect.

Just to let you all know that I'm seeing this.

Like I also said. Burning Effect works in Ipher's MSVC build.

/Ieremiou
Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

The burn effect uses MSVC-specific C somewhere. We haven't been able to ferret it out, so it won't work.
Dead
Lurker
Posts: 118
Joined: Sat Sep 25, 2004 10:59 am
Location: I don't know where I am

Post by Dead »

Free versions of MSVC are available here and here.
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

Hello. I followed Noxious Ninja's how to compile guide (the last edited one) I got it until I reached the 8. step.

If I try to compile the ZSNES last official source I get this error:

nasm -O1 -f gnuwin32 -D__WIN32__ -o chips/fxemu2.obj chips/fxemu2.asm
nasm: fatal: unrecognised output format `gnuwin32' - use -hf for a list
type `nasm -h' for help
mingw32-make: *** [chips/fxemu2.obj] Error 1
Microsoft(R) Windows DOS
(C)Copyright Microsoft Corp 1990-2001.

C:\MINGW\SRC\ZSNES\SRC>

What can be the problem?

Im using the following libs/sources/progs:


dx80_mgw.zip
libpng-1.2.8.tar.gz
MinGW-3.1.0-1.exe
nasm-0.98.39-win32.zip
w32api-3.2.tar.gz
zlib-1.2.1.tar.gz

and the ZSNES 1.42 source code

and at last, my command is this:

@echo off
Set PATH=PATH;c:\mingw\bin;%PATH%
chdir c:\MinGW\src\zsnes\src
mingw32-make -f makefile.ms PLATFORM=win32
command

launched from a .bat batch file.
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Some changes were been made to the development tools after the release of 1.42, and my instructions reflect those changes. If you want to compile 1.42, you will need to use this version of NASM.

Oh, and you should use MinGW 3.2.0-rc3.
[u][url=http://bash.org/?577451]#577451[/url][/u]
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

Thanks for the quick response, I will try it out immediately, but first:

can I compile the older versions of zsnes with the new utils you mentioned?

and shold i recompile the zlib and libpng too?

(or) is it enough if I copy over the new util packs to my old MinGW system?
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

The new NASM link you added is broken is broken... can you tell me the version number? Till that I will use the newest one I find...
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

wow the new MinGW is 150 megabytes... this is weird :D
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

I still need to overwrite everything with win32api if I use this new mingw?
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

It seams that this new wersion already contains all the files from win32api3.2
creaothceann
Seen it all
Posts: 2302
Joined: Mon Jan 03, 2005 5:04 pm
Location: Germany
Contact:

Post by creaothceann »

There's an Image button. :roll:
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

mague wrote:Thanks for the quick response, I will try it out immediately, but first:

can I compile the older versions of zsnes with the new utils you mentioned?
Older version of ZSNES cannot be compiled with MinGW. 1.41+ can be, I don't remember about 1.40. The only util that changed after 1.42 was NASM.
and shold i recompile the zlib and libpng too?
I recommend recompiling everything with the latest MinGW.
mague wrote:The new NASM link you added is broken is broken... can you tell me the version number? Till that I will use the newest one I find...
It was a special version made just for ZSNES. I guess Nach removed it since it was no longer needed. You can get it here: http://rapidshare.de/files-en/542604/nasmw.zip.html. For CVS compiles or versions after 1.42, you should use the latest official NASM.
mague wrote:I still need to overwrite everything with win32api if I use this new mingw?
Yes
mague wrote:It seams that this new wersion already contains all the files from win32api3.2
Almost everything, but not quite.
[u][url=http://bash.org/?577451]#577451[/url][/u]
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

to creaothceann:
Thanks for the info, I did not see that... and yes, this is fixed my problem :D truely...

to Noxious Ninja:

Thanks again, I will recompile everything then.
I found that the latest official NASM was: nasm-0.98.39-win32.zip and I already used that. Or there is a newer version somewhere? On sourceforge I could not find any newer... :(

Finally It compiled, thanks for all your help.
Last edited by mague on Mon Feb 07, 2005 8:08 pm, edited 2 times in total.
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

To compile 1.41 and 1.42 you need the special NASM that I posted.
[u][url=http://bash.org/?577451]#577451[/url][/u]
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

And for newer versions that will turn out in that time I think, again, thanks everithing.

Is it possible/or permitted to change the gui (menu) asm's so it can be translated to other language?

And what characters is the ZSNES supports? I need 6 extra chars for the language I want. That is in the ASCII code table in the secound 128 characters...

And one last question, is it true that the burn and water effect is not working without msvc compiling? (Is it crashes the emu or its simply not response to the configuratin?)
Last edited by mague on Mon Feb 07, 2005 8:58 pm, edited 1 time in total.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Noxious Ninja wrote:
It was a special version made just for ZSNES. I guess Nach removed it since it was no longer needed.
No...
You linked our visitor to a thread he can't access, not my NASM.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

ZSNES isn't support extra/special characters like éáűőúöüó?

I tried to make it with "dos-> west-european" format, but stil no spec chars...

Haw can they be added? I have to write the shar graphics in asm code to get them?
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Nach wrote:No...
You linked our visitor to a thread he can't access, not my NASM.
Oh. I didn't even think about that. My bad.
mague wrote:ZSNES isn't support extra/special characters like éáűőúöüó?

I tried to make it with "dos-> west-european" format, but stil no spec chars...

Haw can they be added? I have to write the shar graphics in asm code to get them?
You would have to add the font for the characters.
mague wrote:And one last question, is it true that the burn and water effect is not working without msvc compiling? (Is it crashes the emu or its simply not response to the configuratin?)
Just the burn/smoke effect doesn't work. It doesn't crash, it simply doesn't display the effect.

EDIT: I'm kind of confused here. Which file corresponds to the ZSNES "burning effect", smoke.c or burn.c?
Last edited by Noxious Ninja on Mon Feb 07, 2005 9:42 pm, edited 1 time in total.
[u][url=http://bash.org/?577451]#577451[/url][/u]
mague
Rookie
Posts: 11
Joined: Mon Feb 07, 2005 3:25 pm
Location: Hungary

Post by mague »

And these fonts are also programmed in assembly... unfortunately, my assembly language knowledge is not so impressive... then, I will start to learn assembly...

thanks for the info.
Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

Noxious Ninja wrote:EDIT: I'm kind of confused here. Which file corresponds to the ZSNES "burning effect", smoke.c or burn.c?
burn.c, I believe. smoke.c is the old smoke effect.

I don't know where the snow effect's stored, but it's probably in the one for the water effects.
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Vareni Stargazer wrote:
Noxious Ninja wrote:EDIT: I'm kind of confused here. Which file corresponds to the ZSNES "burning effect", smoke.c or burn.c?
burn.c, I believe. smoke.c is the old smoke effect.

I don't know where the snow effect's stored, but it's probably in the one for the water effects.
The snow effect is stored in gui.asm.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Post Reply