Compiling ZSNES with MinGW - For Beginners

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

Moderator: ZSNES Mods

AspiringSquire
Born to Rule... Impatiently
Posts: 265
Joined: Wed Nov 17, 2004 8:21 pm
Location: Everywhere I want to be.
Contact:

Re: Compiling ZSNES - For Beginners

Post by AspiringSquire »

Nach wrote:
AspiringSquire wrote: * how NASM and MinGW relate/interact/whatever
They don't.
If they have no correlating purpose, then why does NASM need to be placed in a MinGW directory, hmm?
[url=http://board.zsnes.com/phpBB2/viewtopic.php?t=3298][color=brown]My [u]NES palette[/u][/color][/url] - better colors with any emulator.

"the more you know, and the more you can do... the more you are."
- [url=http://www.danielbohman.com][color=brown][u]daniel bohman[/u][/color][/url]
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Re: Compiling ZSNES - For Beginners

Post by Nach »

AspiringSquire wrote:
Nach wrote:
AspiringSquire wrote: * how NASM and MinGW relate/interact/whatever
They don't.
If they have no correlating purpose, then why does NASM need to be placed in a MinGW directory, hmm?
It doesn't have to be placed there, it does't matter where you place it as long as the makefile can find it. Meaning place it in any directory in your path.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Re: Compiling ZSNES - For Beginners

Post by Noxious Ninja »

Syvalion wrote:
Noxious Ninja wrote:Nope.
My bad. I thought this was it.
That might work. I don't know if anybody's tried it or not. In any case, it wasn't around in 2000.
AspiringSquire wrote:
Nach wrote:
AspiringSquire wrote: * how NASM and MinGW relate/interact/whatever
They don't.
If they have no correlating purpose, then why does NASM need to be placed in a MinGW directory, hmm?
What Nach said. I just wrote to put it in the MinGW directory so you only have to add one item to your path.

You could stick it in C:\WINDOWS for all I care.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Dead
Lurker
Posts: 118
Joined: Sat Sep 25, 2004 10:59 am
Location: I don't know where I am

Re: Compiling ZSNES - For Beginners

Post by Dead »

Noxious Ninja wrote:That might work. I don't know if anybody's tried it or not. In any case, it wasn't around in 2000.
That link came from a reliable source.

Cool, eh? Too bad it wasn't a free download in 2000.
washuu108
Rookie
Posts: 20
Joined: Thu Dec 30, 2004 9:05 am
Contact:

Post by washuu108 »

AspiringSquire, what did you do to fix this?

Code: Select all

windres --define GCC_WINDRES -o zlibrc.o win32/zlib1.rc
windres: win32/zlib1.rc:9: syntax error
mingw32-make: *** [zlibrc.o] Error 1
Edit: Nevermind, apparantly I missed twice that you fixed it by using zlib 1.2.1... :oops: (Go ahead and delete, if anyone with the ability so chooses)

Edit2: Now undefined IID_IDirectSoundBuffer8, IID_IDirectInput8A, and IID_IDirectDraw7? Can't figure this one out...
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

washuu108 wrote:AspiringSquire, what did you do to fix this?

Code: Select all

windres --define GCC_WINDRES -o zlibrc.o win32/zlib1.rc
windres: win32/zlib1.rc:9: syntax error
mingw32-make: *** [zlibrc.o] Error 1
Edit: Nevermind, apparantly I missed twice that you fixed it by using zlib 1.2.1... :oops: (Go ahead and delete, if anyone with the ability so chooses)

Edit2: Now undefined IID_IDirectSoundBuffer8, IID_IDirectInput8A, and IID_IDirectDraw7? Can't figure this one out...
Make sure you got the Allegro Minimal DirectX SDK and copied the headers as per the instructions.
[u][url=http://bash.org/?577451]#577451[/url][/u]
washuu108
Rookie
Posts: 20
Joined: Thu Dec 30, 2004 9:05 am
Contact:

Post by washuu108 »

All the DX8 headers are in MinGW's include directory...
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Try copying the items in the libs folder. Do not overwrite any files that already exist. I may have missed this step.
[u][url=http://bash.org/?577451]#577451[/url][/u]
washuu108
Rookie
Posts: 20
Joined: Thu Dec 30, 2004 9:05 am
Contact:

Post by washuu108 »

Tried that before posting earlier, didn't help anything...
AspiringSquire
Born to Rule... Impatiently
Posts: 265
Joined: Wed Nov 17, 2004 8:21 pm
Location: Everywhere I want to be.
Contact:

Post by AspiringSquire »

Could someone please "stickify" this thread? I'm sure there are many users who would benefit from the data that is in here, and if they still need help, they can ask for it in here also. :)


By the way, washuu108, I have no idea what's causing the problem you were having. The only thing I can suggest is to try starting from scratch; uninstall and delete everything you downloaded for the purpose of compiling ZSNES, and just be sure to read the directions carefully and follow them explicitly—though there are cases where something may need to be done slightly differently... just use your best judgment. ;) Hopefully you can get it working or at least discover what the problem is.
[url=http://board.zsnes.com/phpBB2/viewtopic.php?t=3298][color=brown]My [u]NES palette[/u][/color][/url] - better colors with any emulator.

"the more you know, and the more you can do... the more you are."
- [url=http://www.danielbohman.com][color=brown][u]daniel bohman[/u][/color][/url]
Bahamut_ZERO_Clue

Post by Bahamut_ZERO_Clue »

Wow... I never thought you guys would get it to work but you did. Works great too. BTW the compiling your own zlib and libpng is actually a bit better IMO.
Nightcrawler
Romhacking God
Posts: 922
Joined: Wed Jul 28, 2004 11:27 pm
Contact:

Post by Nightcrawler »

DIP switch wrote:
Noxious Ninja wrote:Nope.
My bad. I thought this was it.
Absolutely. You can download the command line visual C++ compiler that comes with Visual C++/Studio .NET 2003 free of charge. Of course that's ONLY the command line compiler. Bare bones.. nothing else.

Of course.. I'd also like to point out that MS is giving away Visual C++ Express 2005 Beta edition free of charge as well. It's working pretty good despite being beta status and is probably worth the download for anyone who doesn't already have Visual C++ in some form. If you do download this, make sure you download the Platform SDK as well since the beta version doesn't come with it like the retail versions. Other than that, I think it's complete.
[url=http://transcorp.romhacking.net]TransCorp[/url] - Home of the Dual Orb 2, Cho Mahou Tairyku Wozz, and Emerald Dragon SFC/SNES translations.
[url=http://www.romhacking.net]ROMhacking.net[/url] - The central hub of the ROM hacking community.
ieremiou
Rookie
Posts: 49
Joined: Thu Jul 29, 2004 6:38 am
Location: Michigan
Contact:

Post by ieremiou »

Personally I prefer MinGW with its UNIX-like shell component named MSYS (use the snapshot at the bottom of the MinGW page). I wish they would officially release a new verison though it really needs it.

MSYS makes much of everything so much easier though. :lol: Since then everything is basically Unixed oriented but building a Windows program. Very nice. I do this to build DOSBox all the time. I prefer using libpng-1.2.8-config.tar.gz and the zlib-1.2.2.tar.gz and the nasm 98.39.tar.gz.

Build zlib, libpng, nasm and then ZSNES in that order and you're good to go.

/Ieremiou 8)
Post Reply