PatchCompilation

From TTWiki
Revision as of 19:09, 12 June 2011 by Orudge (talk | contribs) (1 revision)
Jump to navigationJump to search

Compiling TTDPatch

Marcin Grzegorczyk said:


> Like I said -> wiki entry for setting up patch compilation :)

I'm afraid I won't have time to do that (especially screenshots -- I'd

have to do a fresh system installation!), but here's what I can remember

of the procedure:

So, here's what he gave in his email.  It's not the best, but it's a start:

  1. Install Cygwin. [1] in the ttdpatch source lists the packages you should install. Note that the 20060817 version of binutils is broken. It is also quite ancient. If your selected mirror offers this version for download, click the Back button and select a different mirror.
  2. If you're going to compile for the DOS environment, install [2] (if not, skip this item).  In the setup, in the "Select Host OS" window check "Windows 95/98/NT/2000", and in the "Select Target OS" check "16-bit DOS", everything else is up to you. Instead of ))OpenWatcom[[]]OpenWatcom[[ you can use Borland C++ 3.1, if you can get it and feel more familiar with it.  (Borland C++ 5.02 can be made to work as well.)  But then you have to tweak Makefile.local.  Details will follow on demand.
  3. Using subversion or TortoiseSVN, check out the source into a new directory.
  4. Edit start.bat and make sure the PATH contains all the necessary directories before the rest.  For example:
    -+PATH D:\Cygwin\bin;D:\Watcom\BINNT;<nowiki>%PATH%</nowiki>+-
  5. Run start.bat.  If you did all of the above properly (and your system is not badly misconfigured), you'll get a console window with a bash prompt.
  6. Now, depending on whether you want to compile the DOS or the Windows version, type
    -+make dos+-
    or
    -+make win+-
    and prepare to report the error messages you'll get ;-)

--

Marcin Grzegorczyk