Difference between revisions of "PatchCompilation"
From TTWiki
Jump to navigationJump to searchm (4 revisions) |
m (1 revision) |
(No difference)
|
Revision as of 19:09, 12 June 2011
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:
- 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.
- 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.
- Using subversion or TortoiseSVN, check out the source into a new directory.
- 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>+-
- 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.
- 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