Post v1.42 ZSNES WIPs

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

Moderator: ZSNES Mods

Locked
ipher
ZSNES Developer
ZSNES Developer
Posts: 269
Joined: Wed Jul 28, 2004 2:37 am
Contact:

Post by ipher »

End of the Month WIP!

Changes:
10/31/05
ALL: Some DSP-3 stuff before I go mad. [Nach]
ALL: More x86-64 fixes. [Nach]
WIN: Fixed bug in highres mode with HQ4x. [MaxSt]
SDL: Major update to the autoconf script: cleanup and a nifty cpu detection code by Nach to optimize architecture properly with most cpus. [grinvader]
SRC: Updated configure code [grinvader]
SRC: Added ifndef to preproccessor. Really cleaned up the source. Added framework for upcoming features. Outputted file is now optimized a bit. (parsegen) [Nach]
Last edited by ipher on Tue Nov 01, 2005 2:52 am, edited 1 time in total.
[url=http://www.ipherswipsite.com]ipher's WIP Site[/url]
Jipcy
Veteran
Posts: 768
Joined: Thu Feb 03, 2005 8:18 pm
Contact:

Post by Jipcy »

Thanks ipher!

Hey, on your WIP package page http://www.ipherswipsite.com/other/filesw.php you have an extra quote on the end of each link to the packages.
[url=http://zsnes-docs.sf.net]Official ZSNES Docs[/url] | [url=http://zsnes-docs.sf.net/nsrt]NSRT Guide[/url] | [url=http://endoftransmission.net/phpBB3/viewtopic.php?t=394]Using a Wiimote w/ emulators[/url]
snkcube
Hero of Time
Posts: 2646
Joined: Fri Jul 30, 2004 2:49 am
Location: In front of the monitor
Contact:

Post by snkcube »

Thanks devs once again. :D
Try out CCleaner and other free software at Piriform
Image
Stifu
Regular
Posts: 245
Joined: Fri Dec 10, 2004 10:02 pm

Post by Stifu »

Always happy to see a new version, even though I rarely post about it.
Thanks guys and keep up the good work.
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

Have the CPU optimisations been implented in this version?
ALL: More x86-64 fixes. [Nach]
Is this it?

The only line referring to optimisation is to do with the SDL port.

Anyhow, congrats on the update.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

CPU architecture optimisations is only at compile time, if you don't compile it yourself, you don't get the benefits.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
kieran_
Mugwump
Posts: 824
Joined: Fri Jul 30, 2004 9:05 pm

Post by kieran_ »

Oh. Would it be difficult to compile this? Do I just have to compile it as normal, or must I do add something or something to optimise it? I have never compiled anything in my life, but I should be able to figure that out, I'm just wondering if an extra step is required.
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Instructions how to compile ZSNES is bundled with the source code.
May 9 2007 - NSRT 3.4, now with lots of hashing and even more accurate information! Go download it.
_____________
Insane Coding
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

The doc included with the source appears to be written for people who are already very familiar with compiling and just need to know the command/additional programs or libraries needed, and not to people who are new to compiling altogether, and don't know how to use Miscrosoft Visual Studio.
Jipcy
Veteran
Posts: 768
Joined: Thu Feb 03, 2005 8:18 pm
Contact:

Post by Jipcy »

[url=http://zsnes-docs.sf.net]Official ZSNES Docs[/url] | [url=http://zsnes-docs.sf.net/nsrt]NSRT Guide[/url] | [url=http://endoftransmission.net/phpBB3/viewtopic.php?t=394]Using a Wiimote w/ emulators[/url]
Nach
ZSNES Developer
ZSNES Developer
Posts: 3904
Joined: Tue Jul 27, 2004 10:54 pm
Location: Solar powered park bench
Contact:

Post by Nach »

Clements wrote:The doc included with the source appears to be written for people who are already very familiar with compiling and just need to know the command/additional programs or libraries needed, and not to people who are new to compiling altogether, and don't know how to use Miscrosoft Visual Studio.
You shouldn't be using Microsoft Visual Studio.
And the steps are more less what you have to do exactly.

Although one of these days I think I'm going to make a fully automated build script.
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:

Post by Noxious Ninja »

I should probably make sure those instructions still work. Heh.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Sith
Lurker
Posts: 100
Joined: Tue Jul 19, 2005 12:32 pm
Location: Belgium

Post by Sith »

I have been busy lately but now getting back to Zsnes and I'm just in time for a new WIP. Thx guys. :D
[url=http://zsnes.ipherswipsite.com/]Zsnes WIP[/url]
[url=http://byuu.cinnamonpirate.com/?page=bsnes]Bsnes[/url] by Byuu
[url=http://www.eidolons-inn.net/tiki-index.php?page=Kega]Kega Fusion[/url] by SteveSnake
[url=http://www.viceteam.org/]Vice[/url] by Viceteam
xamenus
Veteran
Posts: 907
Joined: Fri Jul 30, 2004 12:26 am

Post by xamenus »

Noxious Ninja wrote:
I should probably make sure those instructions still work. Heh.
I have those instructions nicely laid out in a text file, with some edits.

http://filespace.org/icefox/Compile_ZSN ... _MinGW.txt

I'll probably update this file if it's necessary. :)
Last edited by xamenus on Fri Nov 04, 2005 5:48 am, edited 1 time in total.
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

Several things I don't get about the doc.

1. At MinGW.org, there are many downloads, some of which are labelled MinGW. The doc does not specify which one I need. Which are the ones I need, as in the exact filenames.

2. Step 6: How do you run the command, as in what program do you use? Totally don't understand what this means. The doc files (of which there are several) might as well be in an Alien Language.

3. Step 7: [See 2.]

4. Step 8: [See 2.]
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Are you saying this personally, or just thinking of what a n00b would say? It's all command-line.

The download thing could use a bit mroe clarification, though.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

I am a n00b when it comes to compiling.

...

Step 6: I opened Command Prompt to the zlib directory (C:\src\zlib), first command worked, file copied sucessfully. 2nd command did not (not recognised as an internal command or external command etc.)

I assume mingw32-make.exe is the app I need to use? I still don't know if I have the right files.

If I put the ZSNES SRC in C:\src (along with the zlib folders and libpng folders) and installed Mingw in C:\mingw, what exactly would I need to type, as typing mingw32-make -f makefile.gcc does not work.
ipher
ZSNES Developer
ZSNES Developer
Posts: 269
Joined: Wed Jul 28, 2004 2:37 am
Contact:

Post by ipher »

Why is everyone so interested in compiling ZSNESW now? The CPU optimizations (to my knowledge) are only for the SDL port right now.
[url=http://www.ipherswipsite.com]ipher's WIP Site[/url]
Noxious Ninja
Dark Wind
Posts: 1271
Joined: Thu Jul 29, 2004 8:58 pm
Location: Texas
Contact:

Post by Noxious Ninja »

Clements wrote:I am a n00b when it comes to compiling.

...

Step 6: I opened Command Prompt to the zlib directory (C:\src\zlib), first command worked, file copied sucessfully. 2nd command did not (not recognised as an internal command or external command etc.)

I assume mingw32-make.exe is the app I need to use? I still don't know if I have the right files.

If I put the ZSNES SRC in C:\src (along with the zlib folders and libpng folders) and installed Mingw in C:\mingw, what exactly would I need to type, as typing mingw32-make -f makefile.gcc does not work.
Yeah, some MinGW stuff has changed in the past few months, and those instructions may no longer work 100%.
[u][url=http://bash.org/?577451]#577451[/url][/u]
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

ipher wrote:Why is everyone so interested in compiling ZSNESW now? The CPU optimizations (to my knowledge) are only for the SDL port right now.
Compiling the Win version of ZSNES is still very useful to test current CVS commits. Also, it may be possible to make minor changes to the source and change the values to how I like ZSNES set up by default, so when I open ZSNES, the GUI colours/Video/Sound/Saves settings are set up exactly the way I want and not the standard values. I wouldn't be able to test these changes without a compile. Processor optimisations in the Win port would still be nice if it's feasible.
xamenus
Veteran
Posts: 907
Joined: Fri Jul 30, 2004 12:26 am

Post by xamenus »

Clements wrote:I assume mingw32-make.exe is the app I need to use? I still don't know if I have the right files.
Which MinGW release did you download? Did you try MinGW-4.1.0.exe?

EDIT: It seems that I have MinGW-3.1.0, and it's working fine for me.
Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

Please don't use mingw32-make.exe. It sucks.

Instead, either install MSYS [UNIX environment for Windows that depends on MinGW, but produces straight Windows binaries, unlike Cygwin...] or use UNXUtils. I would suggest MSYS, however.
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

IceFox wrote:
Clements wrote:I assume mingw32-make.exe is the app I need to use? I still don't know if I have the right files.
Which MinGW release did you download? Did you try MinGW-4.1.0.exe?

EDIT: It seems that I have MinGW-3.1.0, and it's working fine for me.
Thanks, that's the file I needed.

I think I know what my other problem is as well. I need to know how to set MinGW\bin directory to my path so it will look in there when I do the second command in Step 6.

... Unfortunately, I don't know how to do this and the doc does not explain this, and using Google and Windows Help didn't help me.

Edit: Nevermind, found the paths thing here:

http://csjava.occ.cccd.edu/~gilberts/mingw/

===========================================

Edit 2: I compiled zlib successfully, but libpng won't compile now.

Here's what I get:

Image

What's the problem, I followed the doc exactly:
7) Go to your src\libpng directory. Run the following commands:

cp scripts\makefile.gcc makefile
mingw32-make

Now copy png.h and pngconf.h to MinGW\include and libpng.a
to MinGW\lib.
Aerdan
Winter Knight
Posts: 467
Joined: Mon Aug 16, 2004 10:16 pm
Contact:

Post by Aerdan »

The docs assume Linux if you're compiling with gcc. Try 'copy' instead.
Clements
Randomness
Posts: 1172
Joined: Wed Jul 28, 2004 4:01 pm
Location: UK
Contact:

Post by Clements »

Aerdan wrote:The docs assume Linux if you're compiling with gcc. Try 'copy' instead.
Thankyou. That worked.

Edit: Yay!

Image
Locked