PatchCompilation

From TTWiki
Jump to navigationJump to search

Marcin's suggested procedure for building TTDPatch:

  1. Install Cygwin. 0compile.txt 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 OpenWatcom (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 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;%PATH%
  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 ;-)