Table of Contents

Building the WP-34s firmware on a computer running 64-bit Windows 7

This file details my recent (July 2012) experiences building the calc.bin file for my WP-34S from source, on a computer running 64-bit Windows 7. I found that when following the instructions in the earlier wikis on this site (HOWTO build the Windows emulator from source and HOWTO build a new flash load (calc.bin) from source) there were a number of things that didn't work correctly for me, probably due to changes in the project since those documents written. So I'm writing up what I did in case there is anyone else who wants to try this but has the same problems that I had in getting it to work.

What follows is completely based on those earlier wikis. I have tried to give a complete set of instructions here, but readers should certainly consult the other wikis as well.

Building the Windows emulator

34:	char tmpname[ FILENAME_MAX ];

to

34: 	char tmpname[ FILENAME_MAX ] = "rev_tmp.txt";

and comment out lines 39-42 by adding double forward slashes to the start of each line, like this:

//	if (tmpnam( tmpname ) == NULL) {
//		perror("Unable to create tempory file name");
//		return 1;
//	}
my $preproc_fallback_dir = "";

to

my $preproc_fallback_dir = "C:/Users/nd/wp34s/trunk/tools/";

where the long path name is simply the full address of the tools folder on my system. Change this to whatever is correct on your system.

Building ''calc.bin'' (and the other .bin files) from source

So: you've successfully compiled the Windows emulator. However, since you can download this from the svn repository anyway you are probably intending to do more than this. You almost certainly want to explore the source code and perhaps change it, and ultimately to upload such changes to your calculator.

This section deals with producing the files calc.bin, calc_full.bin, and so on.

Having done all of this you are free to try making changes to the calculator source code. You should try out any changes on the emulator first, so that you can debug them (and to avoid draining your calculator batteries!). Good luck!