Difference between revisions of "PatchCompilation"
From TTWiki
Jump to navigationJump to searchm (4 revisions) |
(Reformat and update) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | Marcin's suggested procedure for building TTDPatch: |
||
⚫ | # Install Cygwin. [http://svn.ttdpatch.net/trac/browser/trunk/0compile.txt 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. |
||
− | '''''Compiling TTDPatch''''' |
||
⚫ | # If you're going to compile for the DOS environment, install [http://www.openwatcom.org/index.php/Download 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. |
||
− | |||
− | Marcin Grzegorczyk said: |
||
− | |||
− | <pre> |
||
− | |||
− | > 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: |
||
− | |||
− | </pre> |
||
− | |||
− | So, here's what he gave in his email. It's not the best, but it's a start: |
||
⚫ | # Install Cygwin. [http://svn.ttdpatch.net/trac/browser/trunk/0compile.txt |
||
⚫ | # If you're going to compile for the DOS environment, install [http://www.openwatcom.org/index.php/Download |
||
# Using subversion or TortoiseSVN, check out the source into a new directory. |
# 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. |
+ | # Edit start.bat and make sure the PATH contains all the necessary directories before the rest. For example:<pre>PATH D:\Cygwin\bin;D:\Watcom\BINNT;%PATH%</pre> |
− | # Run start.bat. |
+ | # 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<pre> |
+ | # Now, depending on whether you want to compile the DOS or the Windows version, type<pre>make dos</pre>or<pre>make win</pre>and prepare to report the error messages you'll get ;-) |
− | |||
− | -- |
||
+ | [[Category:TTDPatch Development]] |
||
− | Marcin Grzegorczyk |
Latest revision as of 12:26, 31 July 2011
Marcin's suggested procedure for building TTDPatch:
- 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.
- 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.
- 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;%PATH%
- 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
ormake win
and prepare to report the error messages you'll get ;-)