Difference between revisions of "PatchCompilation"

From TTWiki
Jump to navigationJump to search
m (1 revision)
(Reformat and update)
 
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>
 
 
&gt; Like I said -&gt; 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. &nbsp;It's not the best, but it's a start:
 
# 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.
 
# If you're going to compile for the DOS environment, install [http://www.openwatcom.org/index.php/Download|OpenWatcom] (if not, skip this item). &nbsp;In the setup, in the &quot;Select Host OS&quot; window check &quot;Windows 95/98/NT/2000&quot;, and in the &quot;Select Target OS&quot; check &quot;16-bit DOS&quot;, 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. &nbsp;(Borland C++ 5.02 can be made to work as well.) &nbsp;But then you have to tweak Makefile.local. &nbsp;Details will follow on demand.
 
 
# 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. &nbsp;For example:<pre>-+PATH D:\Cygwin\bin;D:\Watcom\BINNT;<nowiki><nowiki>%PATH%</nowiki></nowiki>+-</pre>
+
# 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. &nbsp;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.
+
# 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>-+make dos+-</pre>or<pre>-+make win+-</pre>and prepare to report the error messages you'll get ;-)
+
# 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:

  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 ;-)