This page is a mirror of Tepples' nesdev forum mirror (URL TBD).
Last updated on Oct-18-2019 Download

Help! NTRQ Tool Needs Windows Build

Help! NTRQ Tool Needs Windows Build
by on (#77832)
I've just made some changes to the NSF exporter tool for NTRQ and have just remembered that I had to delete my XP virtual machine a while ago (I use a MacBook Pro so I run....sorry, ran...Windows via Parallels Desktop).

I used to use gcc to build a Win32 executable but I can no longer build it until I reinstall the XP Virtual Machine. I'll get around to it eventually but in the meantime could someone with gcc build me a Windows executable? It's only a couple of hundred lines of C.

Neil

by on (#77838)
I can, where is the sources? You need it to be built with gcc exactly, or VC is OK too?
Re: Help! NTRQ Tool Needs Windows Build
by on (#77840)
Good for you! I still keep an image of XP myself, although I've used it about 2 times in 5 years...

Anyway, you should be able to cross compile a win32 binary with mingw.
http://www.mingw.org/

I don't have experience on OS X though, just Linux...

I googled this, hopefully it helps with some of the steps:

http://web.me.com/dove_family/martin/cross_compile.html
Re: Help! NTRQ Tool Needs Windows Build
by on (#77841)
neilbaldwin wrote:
I used to use gcc to build a Win32 executable

I have MinGW installed on one of my Windows machines. I can build it and do some basic tests as long as it doesn't use anything that isn't available in MinGW (like MFC or some parts of unistd), and as long as you provide a testing procedure spec (TPS) so that I can run smoke tests before making the build public.


CAUTION: Knowing what a TPS report is and how to LOAD LETTER-size paper into an HP printer before you watch Office Space may cause sympathizing with management.
Re: Help! NTRQ Tool Needs Windows Build
by on (#77924)
Ortega wrote:
Good for you! I still keep an image of XP myself, although I've used it about 2 times in 5 years...

Anyway, you should be able to cross compile a win32 binary with mingw.
http://www.mingw.org/

I don't have experience on OS X though, just Linux...

I googled this, hopefully it helps with some of the steps:

http://web.me.com/dove_family/martin/cross_compile.html


Funnily enough I used to use mingw on the XP virtual machine (for gcc). Been struggling to get it installed on OSX though I came across this last night:

http://mingw-cross-env.nongnu.org/

which, fingers crossed, so far seems to be installing without (much) complaint.

@Shiru & Tepples: I'm going to go down this cross-compiler route first as that would be a nice solution for me if it works. If not, I make take up your offers.

:)

by on (#78060)
Well, that was fun!

Several attempts at building the entire suite of packages that I linked to were unsuccessful so I opted instead to just build GCC (and presumably the necessary dependancies).

As a result I think I managed to build a Windows .exe of the tool but, of course, not having Windows I can't actually test it. :)

Would someone (or more than one) be willing to give it a try for me? The link below is a ZIP file that contains the tool and some files with which to run it. Give it a try and report back.

To run the tool (Windows command line):

Code:
ntrq2nsf.exe ntrq_quest.sav ntrq_quest.nsf NTSC 1 Quest Name Name


Should produce a NSF file called 'ntrq_quest.nsf'


http://dl.dropbox.com/u/5493868/mingw-test.zip

by on (#78061)
It works, got a NSF file, which plays in a NSF player.

by on (#78099)
Thanks Shiru :)

by on (#78116)
I wasn't aware of this topic until just now. lol

I just tested the output for both regions (in Nintendulator and other players) and it works and has higher compatibility now. And you can specify the number of tunes as well. That's great! Thanks for fixing it.

by on (#78127)
Brilliant, thank Gil :)

I had real trouble getting the tool built. Took me about an hour to make the changes and about 5 days to build the Windows .exe LOL

I'll update the NTRQ release package. You'll be able to download it from here:

http://nes-audio.com

Neil