Compiling zsnes in mingw needs some work.
Moderator: ZSNES Mods
Compiling zsnes in mingw needs some work.
I attempted to compile the CVS version after I found out that 1.42 is over a year old. It was not fun. First, I tried the configure script, only to find out later that it was Linux only. There are plenty of projects whose autotools setup works on BSD, Linux, mingw, etc. I can't see any reason this project's shouldn't.
Someone in the IRC channel pointed me Makefile.ms. This didn't work either, probably because I haven't downloaded the massive DirectX SDK. I know zsnes works with SDL and OpenGL, why can't I compile it with them in mingw?
Some work needs to be done with the build setup to accommodate mingw. Incorporate Makefile.ms into Makefile.in. Have it check for SDL, OpenGL and DirectX. Give the option to build one or the other, or both.
Cool project, btw. I haven't seem many projects of this size use assembly to such an extent. I've started programming in assembly recently, so I can understand the difficulties involved.
Someone in the IRC channel pointed me Makefile.ms. This didn't work either, probably because I haven't downloaded the massive DirectX SDK. I know zsnes works with SDL and OpenGL, why can't I compile it with them in mingw?
Some work needs to be done with the build setup to accommodate mingw. Incorporate Makefile.ms into Makefile.in. Have it check for SDL, OpenGL and DirectX. Give the option to build one or the other, or both.
Cool project, btw. I haven't seem many projects of this size use assembly to such an extent. I've started programming in assembly recently, so I can understand the difficulties involved.
-
- Regular
- Posts: 317
- Joined: Tue Sep 14, 2004 12:48 am
- Location: In a small padded white room
- Contact:
Re: Compiling zsnes in mingw needs some work.
Try zget.mattst88 wrote:I attempted to compile the CVS version after I found out that 1.42 is over a year old. It was not fun. First, I tried the configure script, only to find out later that it was Linux only. There are plenty of projects whose autotools setup works on BSD, Linux, mingw, etc. I can't see any reason this project's shouldn't.
Someone in the IRC channel pointed me Makefile.ms. This didn't work either, probably because I haven't downloaded the massive DirectX SDK. I know zsnes works with SDL and OpenGL, why can't I compile it with them in mingw?
Some work needs to be done with the build setup to accommodate mingw. Incorporate Makefile.ms into Makefile.in. Have it check for SDL, OpenGL and DirectX. Give the option to build one or the other, or both.
Cool project, btw. I haven't seem many projects of this size use assembly to such an extent. I've started programming in assembly recently, so I can understand the difficulties involved.
http://board.zsnes.com/phpBB2/viewtopic.php?t=6657
It's supposed to do all the work for you.
http://jdrrant.blogspot.com/ - CODEpendent Blog
http://games.technoplaza.net/ - Emulation Goodies
http://games.technoplaza.net/ - Emulation Goodies
CVS is outdated. Now use SVN ( https://zsnes.bountysource.com/svn ). Here is the source code more actual. Download it with TortoiseSVN.
I compile SVN with MinGW in WinXP perfectly. It's not problem of edit makefile.ms or other files. The problem is configuration of MinGW's enviroment and add any libs and includes, nasm, a possibility other things (I not remember exactly).
I compile SVN with MinGW in WinXP perfectly. It's not problem of edit makefile.ms or other files. The problem is configuration of MinGW's enviroment and add any libs and includes, nasm, a possibility other things (I not remember exactly).
heres a mingw tutorial made (for compiling zsnes) by xamenus.
http://www.filelodge.com/files/room17/4 ... nstall.txt
http://www.filelodge.com/files/room17/4 ... nstall.txt
Core i7 920 @ 2.66GHZ | ASUS P6T Motherboard | 8GB DDR3 1600 RAM | Gigabyte Geforce 760 4GB | Windows 10 Pro x64
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
Heretics.
Please research stuff before spewing.
BTW, new zget out: http://board.zsnes.com/phpBB2/viewtopic.php?t=7356
Please research stuff before spewing.
BTW, new zget out: http://board.zsnes.com/phpBB2/viewtopic.php?t=7356
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
That's not a matter of compiling, it's a matter of modifying the source.mattst88 wrote:How about the ability to compile with SDL instead of DirectX?
And I have to question why? SDL wraps to DX on Windows.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding
-
- ZSNES Developer
- Posts: 3904
- Joined: Tue Jul 27, 2004 10:54 pm
- Location: Solar powered park bench
- Contact:
And introduced a new one, since you now imply we don't use SDL at all, when we use it on *nix.byuu wrote:Corrected mistake.pagefault wrote:SDL is a complete joke. It would be a huge downgrade compared to what we have already.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
_____________
Insane Coding
True. I'm not really one to talk in this regard, but an emulator as popular as ZSNES really needs a linux interface not written in Simple Directmediocrity Layer. Since you've already replaced the sound code, that leaves OGL and joypad support that's still dependant on it. Are there any direct OGL libraries for nix systems?
Well, there's obviously mesa, which SDL links to.byuu wrote:True. I'm not really one to talk in this regard, but an emulator as popular as ZSNES really needs a linux interface not written in Simple Directmediocrity Layer. Since you've already replaced the sound code, that leaves OGL and joypad support that's still dependant on it. Are there any direct OGL libraries for nix systems?
You can also use freeglut that provides some basic input and windowing functions. (also links to mesa)
16:13 <Link`sAdventure> If I had my choice between Fedora and Windows, I'd pick windows.