mirror of
https://github.com/n64decomp/mk64
synced 2026-05-24 15:01:10 -04:00
145 lines
7.1 KiB
HTML
145 lines
7.1 KiB
HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
|
|
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
|
|
<meta name="generator" content="Doxygen 1.9.1"/>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1"/>
|
|
<title>Mario Kart 64: Compiling mk64</title>
|
|
<link href="tabs.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="jquery.js"></script>
|
|
<script type="text/javascript" src="dynsections.js"></script>
|
|
<link href="navtree.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="resize.js"></script>
|
|
<script type="text/javascript" src="navtreedata.js"></script>
|
|
<script type="text/javascript" src="navtree.js"></script>
|
|
<link href="search/search.css" rel="stylesheet" type="text/css"/>
|
|
<script type="text/javascript" src="search/searchdata.js"></script>
|
|
<script type="text/javascript" src="search/search.js"></script>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css" />
|
|
<link href="doxygen-awesome.css" rel="stylesheet" type="text/css"/>
|
|
<link href="doxygen-awesome-sidebar-only.css" rel="stylesheet" type="text/css"/>
|
|
</head>
|
|
<body>
|
|
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
|
|
<div id="titlearea">
|
|
<table cellspacing="0" cellpadding="0">
|
|
<tbody>
|
|
<tr style="height: 56px;">
|
|
<td id="projectalign" style="padding-left: 0.5em;">
|
|
<div id="projectname">Mario Kart 64
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<!-- end header part -->
|
|
<!-- Generated by Doxygen 1.9.1 -->
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
|
|
/* @license-end */
|
|
</script>
|
|
<script type="text/javascript" src="menudata.js"></script>
|
|
<script type="text/javascript" src="menu.js"></script>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(function() {
|
|
initMenu('',true,false,'search.php','Search');
|
|
$(document).ready(function() { init_search(); });
|
|
});
|
|
/* @license-end */</script>
|
|
<div id="main-nav"></div>
|
|
</div><!-- top -->
|
|
<div id="side-nav" class="ui-resizable side-nav-resizable">
|
|
<div id="nav-tree">
|
|
<div id="nav-tree-contents">
|
|
<div id="nav-sync" class="sync"></div>
|
|
</div>
|
|
</div>
|
|
<div id="splitbar" style="-moz-user-select:none;"
|
|
class="ui-resizable-handle">
|
|
</div>
|
|
</div>
|
|
<script type="text/javascript">
|
|
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
|
|
$(document).ready(function(){initNavTree('compiling.html',''); initResizable(); });
|
|
/* @license-end */
|
|
</script>
|
|
<div id="doc-content">
|
|
<!-- window showing the filter options -->
|
|
<div id="MSearchSelectWindow"
|
|
onmouseover="return searchBox.OnSearchSelectShow()"
|
|
onmouseout="return searchBox.OnSearchSelectHide()"
|
|
onkeydown="return searchBox.OnSearchSelectKey(event)">
|
|
</div>
|
|
|
|
<!-- iframe showing the search results (closed by default) -->
|
|
<div id="MSearchResultsWindow">
|
|
<iframe src="javascript:void(0)" frameborder="0"
|
|
name="MSearchResults" id="MSearchResults">
|
|
</iframe>
|
|
</div>
|
|
|
|
<div class="PageDoc"><div class="header">
|
|
<div class="headertitle">
|
|
<div class="title">Compiling mk64 </div> </div>
|
|
</div><!--header-->
|
|
<div class="contents">
|
|
<div class="textblock"><h2><a class="anchor" id="autotoc_md15"></a>
|
|
Dependencies</h2>
|
|
<p>The build system has the following package requirements: </p><pre class="fragment">binutils-mips >= 2.27
|
|
python3 >= 3.6
|
|
libaudiofile
|
|
</pre><p> To add submodules run <code>git submodule update --init --recursive</code> after cloning.</p>
|
|
<h2><a class="anchor" id="autotoc_md16"></a>
|
|
EU Specific Steps (All versions)</h2>
|
|
<p>Both EU builds first requires US to be built first: </p><div class="fragment"><div class="line">make -j</div>
|
|
</div><!-- fragment --><p>Now build either EU 1.0 <code>eu-1.0</code> or EU 1.1 <code>eu-final</code> </p><div class="fragment"><div class="line">make -j VERSION=eu-final</div>
|
|
</div><!-- fragment --><p>diff/first-diff commands </p><div class="fragment"><div class="line">python3 first-diff.py --eu</div>
|
|
<div class="line">./diff <function> -eu</div>
|
|
</div><!-- fragment --><h4><a class="anchor" id="autotoc_md17"></a>
|
|
Debian / Ubuntu</h4>
|
|
<div class="fragment"><div class="line">sudo apt install build-essential pkg-config git binutils-mips-linux-gnu python3 zlib1g-dev libaudiofile-dev libcapstone-dev</div>
|
|
</div><!-- fragment --><h4><a class="anchor" id="autotoc_md18"></a>
|
|
Arch Linux</h4>
|
|
<p>To install build dependencies: </p><div class="fragment"><div class="line">sudo pacman -S base-devel capstone python</div>
|
|
</div><!-- fragment --><p> Install the following AUR packages:</p><ul>
|
|
<li><a href="https://aur.archlinux.org/packages/mips64-elf-binutils">mips64-elf-binutils</a> (AUR)</li>
|
|
</ul>
|
|
<p>Review the n64decomp/sm64 readme for instructions to compile in other distributions.</p>
|
|
<h4><a class="anchor" id="autotoc_md19"></a>
|
|
Windows</h4>
|
|
<p>Compiling on Windows requires <code>MSYS2 MinGW x64</code>. The setup process is a tad intensive. <br />
|
|
</p>
|
|
<p>Instructions here</p>
|
|
<h4><a class="anchor" id="autotoc_md20"></a>
|
|
macOS</h4>
|
|
<p>Install <a href="https://brew.sh">Homebrew</a>, then install the following dependencies: </p><div class="fragment"><div class="line">brew update</div>
|
|
<div class="line">brew install python3 capstone coreutils make pkg-config tehzz/n64-dev/mips64-elf-binutils</div>
|
|
</div><!-- fragment --><p>When building, use <code>gmake</code> to ensure that homebrew <code>make</code> is used instead of the old, macOS system <code>make</code>.</p>
|
|
<h4><a class="anchor" id="autotoc_md21"></a>
|
|
Docker</h4>
|
|
<p>Build the Docker image: </p><div class="fragment"><div class="line">docker build -t mk64 .</div>
|
|
</div><!-- fragment --><p>When building and using other tools, append the following in front of every command you run: </p><div class="fragment"><div class="line">docker run --rm -v ${PWD}:/mk64 mk64</div>
|
|
</div><!-- fragment --><p>For example: </p><div class="fragment"><div class="line">docker run --rm -v ${PWD}:/mk64 mk64 make -C tools</div>
|
|
<div class="line">docker run --rm -v ${PWD}:/mk64 mk64 make</div>
|
|
</div><!-- fragment --><h2><a class="anchor" id="autotoc_md22"></a>
|
|
Building</h2>
|
|
<p>Place a US version of Mario Kart 64 called <code>baserom.us.z64</code> into the project folder for asset extraction.</p>
|
|
<p>Run the following commands after pulling: </p><div class="fragment"><div class="line">make -C tools</div>
|
|
<div class="line">make</div>
|
|
</div><!-- fragment --> </div></div><!-- contents -->
|
|
</div><!-- PageDoc -->
|
|
</div><!-- doc-content -->
|
|
<!-- start footer part -->
|
|
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
|
|
<ul>
|
|
<li class="navelem"><a class="el" href="basics.html">Understanding the Basics</a></li>
|
|
<li class="footer">Generated by <a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.1 </li>
|
|
</ul>
|
|
</div>
|
|
</body>
|
|
</html>
|