http://www.mupen64plus.org/wiki/index.php?title=CompilingFromGit&feed=atom&action=history
CompilingFromGit - Revision history
2024-03-29T13:17:33Z
Revision history for this page on the wiki
MediaWiki 1.23.9
http://www.mupen64plus.org/wiki/index.php?title=CompilingFromGit&diff=103&oldid=prev
Richard42: /* Compiling Mupen64Plus from source code under Linux */
2020-10-17T21:45:14Z
<p><span dir="auto"><span class="autocomment">Compiling Mupen64Plus from source code under Linux</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 21:45, 17 October 2020</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 6:</td>
<td colspan="2" class="diff-lineno">Line 6:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== Requirements ===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== Requirements ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>* Build environment (GCC, G++, GNU Make, pkg-config, etc)</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>* Build environment (GCC, G++, GNU Make<ins class="diffchange diffchange-inline">, nasm</ins>, pkg-config, etc)</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Git distributed SCM</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Git distributed SCM</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Development packages for dependencies</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>* Development packages for dependencies</div></td></tr>
<tr><td colspan="2" class="diff-lineno">Line 19:</td>
<td colspan="2" class="diff-lineno">Line 19:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># libspeexdsp</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># libspeexdsp</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># liblircclient</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div># liblircclient</div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;">If you are using Ubuntu, Mint, Debian, or a derived Linux distribution, you may install the pre-requisite packages with this command:</ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"></ins></div></td></tr>
<tr><td colspan="2"> </td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div><ins style="font-weight: bold; text-decoration: none;"> <nowiki>$ sudo apt install build-essential libz-dev libpng-dev libsdl2-dev libfreetype-dev nasm libboost-dev libboost-filesystem-dev</nowiki></ins></div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== Installing Git ===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== Installing Git ===</div></td></tr>
</table>
Richard42
http://www.mupen64plus.org/wiki/index.php?title=CompilingFromGit&diff=102&oldid=prev
Richard42: /* Installing Git */
2020-10-17T21:42:15Z
<p><span dir="auto"><span class="autocomment">Installing Git</span></span></p>
<table class='diff diff-contentalign-left'>
<col class='diff-marker' />
<col class='diff-content' />
<col class='diff-marker' />
<col class='diff-content' />
<tr style='vertical-align: top;'>
<td colspan='2' style="background-color: white; color:black; text-align: center;">← Older revision</td>
<td colspan='2' style="background-color: white; color:black; text-align: center;">Revision as of 21:42, 17 October 2020</td>
</tr><tr><td colspan="2" class="diff-lineno">Line 22:</td>
<td colspan="2" class="diff-lineno">Line 22:</td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== Installing Git ===</div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>=== Installing Git ===</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'>−</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;"><div>If you do not have git installed, launch your favorite application manager and search for '''git<del class="diffchange diffchange-inline">*</del>. If you are on Ubuntu or Debian this line will work in the console:'''</div></td><td class='diff-marker'>+</td><td style="color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;"><div>If you do not have git installed, launch your favorite application manager and search for '''git<ins class="diffchange diffchange-inline">'''</ins>. If you are on Ubuntu or Debian this line will work in the console:'''</div></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"></td></tr>
<tr><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  <nowiki>$ sudo apt-get install git</nowiki></div></td><td class='diff-marker'> </td><td style="background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;"><div>  <nowiki>$ sudo apt-get install git</nowiki></div></td></tr>
</table>
Richard42
http://www.mupen64plus.org/wiki/index.php?title=CompilingFromGit&diff=23&oldid=prev
Richard42: Tutorial on how to check out source code with Git and compile under Linux
2015-07-26T04:10:52Z
<p>Tutorial on how to check out source code with Git and compile under Linux</p>
<p><b>New page</b></p><div><br />
== Compiling Mupen64Plus from source code under Linux ==<br />
<br />
This guide is for people who want to play with the latest Mupen64Plus code under development, by grabbing the source code from our development repository and compiling it yourself.<br />
<br />
=== Requirements ===<br />
<br />
* Build environment (GCC, G++, GNU Make, pkg-config, etc)<br />
* Git distributed SCM<br />
* Development packages for dependencies<br />
# SDL 1.2 or 2.0<br />
# libpng<br />
# FreeType 2<br />
# zlib<br />
# OpenGL (GL, glu)<br />
# Boost (for glide64mk2 video plugin)<br />
* Optional development packages for dependencies<br />
# libsamplerate<br />
# libspeexdsp<br />
# liblircclient<br />
<br />
=== Installing Git ===<br />
<br />
If you do not have git installed, launch your favorite application manager and search for '''git*. If you are on Ubuntu or Debian this line will work in the console:'''<br />
<br />
<nowiki>$ sudo apt-get install git</nowiki><br />
<br />
=== Checking out, building, and updating the source code ===<br />
<br />
Part of the re-design of our emulator has involved breaking it up from a single big package into 6 separate modules which must all be built separately. In order to make this easier for developers, I have written a few simple shell scripts for checking out and building the code. You make download an archive of the scripts here:<br />
<br />
[https://github.com/mupen64plus/mupen64plus-core/raw/master/tools/m64p_helper_scripts.tar.gz m64p_helper_scripts.tar.gz] (updated Dec 18, 2013)<br />
<br />
To check out, build, and run the new Mupen64Plus code, unzip these scripts into an empty directory and run:<br />
<br />
<nowiki>./m64p_get.sh && ./m64p_build.sh && ./m64p_test.sh</nowiki><br />
<br />
If, at a later time, you want to pull the latest changes and rebuild all of the code, you may do the following:<br />
<br />
<nowiki>./m64p_update.sh && ./m64p_build.sh</nowiki><br />
<br />
The build script will create a <code>test</code> directory and place all of the necessary files there. You can go into this directory and run the console front-end (named <code>mupen64plus</code>) to run ROMs.<br />
<br />
=== Custom Builds ===<br />
<br />
The makefiles of the Mupen64Plus modules support many different compile-time options. Some of these options are specific to a single module, while others are common to several modules. You can build the modules individually, passing options to the makefile in the <code>projects/unix/</code> folder of the module, or you can append options to the <code>./m64p_build.sh</code> script and build all the modules with the same options.<br />
<br />
==== Common Options ====<br />
<nowiki><br />
General Options:<br />
BITS=32 == build 32-bit binaries on 64-bit machine<br />
APIDIR=path == path to find Mupen64Plus Core headers<br />
OPTFLAGS=flag == compiler optimization (default: -O3)<br />
PIC=(1|0) == Force enable/disable of position independent code<br />
Install Options:<br />
PREFIX=path == install/uninstall prefix (default: /usr/local)<br />
SHAREDIR=path == path to install shared data files (default: PREFIX/share/mupen64plus)<br />
LIBDIR=path == library prefix (default: PREFIX/lib)<br />
PLUGINDIR=path == path to install plugin libraries (default: LIBDIR/mupen64plus)<br />
DESTDIR=path == path to prepend to all installation paths (only for packagers)<br />
Debugging Options:<br />
DEBUG=1 == add debugging symbols<br />
V=1 == show verbose compiler output<br />
</nowiki><br />
<br />
==== Mupen64Plus-Core Only ====<br />
<nowiki><br />
General Options:<br />
LIRC=1 == enable LIRC support<br />
NO_ASM=1 == build without assembly (no dynamic recompiler or MMX/SSE code)<br />
SHAREDIR=path == extra path to search for shared data files<br />
OSD=(1|0) == Enable/disable build of OpenGL On-screen display<br />
NEW_DYNAREC=1 == Replace dynamic recompiler with Ari64's experimental dynarec<br />
Install Options:<br />
INCDIR=path == path to install core header files (default: PREFIX/include/mupen64plus)<br />
Debugging Options:<br />
PROFILE=1 == build gprof instrumentation into binaries for profiling<br />
DEBUGGER=1 == build graphical debugger<br />
DBG_CORE=1 == print debugging info in r4300 core<br />
DBG_COUNT=1 == print R4300 instruction count totals (64-bit dynarec only)<br />
DBG_COMPARE=1 == enable core-synchronized r4300 debugging<br />
DBG_PROFILE=1 == dump profiling data for r4300 dynarec to data file<br />
</nowiki><br />
<br />
==== Mupen64Plus-Audio-SDL Only ====<br />
<br />
<nowiki><br />
General Options:<br />
NO_OSS=1 == build without OSS; disables Open Sound System support<br />
NO_SRC=1 == build without libsamplerate; disables src-* high-quality audio resampling<br />
NO_SPEEX=1 == build without libspeexdsp; disables speex-* high-quality audio resampling<br />
</nowiki><br />
<br />
==== Mupen64Plus-Input-SDL Only ====<br />
<br />
<nowiki><br />
Debugging Options:<br />
PLUGINDBG=1 == print extra debugging information while running<br />
</nowiki><br />
<br />
==== Mupen64Plus-UI-Console Only ====<br />
<br />
<nowiki><br />
General Options:<br />
COREDIR=path == default path to search for Mupen64Plus Core (must end with slash)<br />
PLUGINDIR=path == default path to search for plugins<br />
SHAREDIR=path == default path to search for shared data files<br />
PIE=(1|0) == Force enable/disable of position independent executables<br />
Install Options:<br />
BINDIR=path == path to install mupen64plus binary (default: PREFIX/bin/)<br />
MANDIR=path == path to install mupen64plus manual page (default: PREFIX/share/man)<br />
</nowiki><br />
<br />
==== Mupen64Plus-Video-Rice Only ====<br />
<br />
<nowiki><br />
General Options:<br />
NO_ASM=1 == build without inline assembly code (x86 MMX/SSE)<br />
</nowiki></div>
Richard42