compile.html 49 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <link title="Purple" rel="stylesheet" href="manual-purple.css" type="text/css">
  6. <link title="Minty" rel="alternate stylesheet" href="manual-minty.css" type="text/css">
  7. <link title="Plain" rel="alternate stylesheet" href="manual.css" type="text/css">
  8. <title>openMSX Compilation Guide</title>
  9. </head>
  10. <body>
  11. <h1>openMSX Compilation Guide</h1>
  12. <h2>Contents</h2>
  13. <ol class="toc">
  14. <li><a class="internal" href="#intro">1. Introduction</a>
  15. <ol class="toc">
  16. <li><a class="internal" href="#newver">1.1 New Versions of this Document</a></li>
  17. <li><a class="internal" href="#purpose">1.2 Purpose</a></li>
  18. <li><a class="internal" href="#contrib">1.3 Contributors</a></li>
  19. <li><a class="internal" href="#history">1.4 Revision History</a></li>
  20. </ol>
  21. </li>
  22. <li><a class="internal" href="#preparation">2. Preparation</a>
  23. <ol class="toc">
  24. <li><a class="internal" href="#tools">2.1 Build Tools</a></li>
  25. <li><a class="internal" href="#libs">2.2 Libraries</a></li>
  26. </ol>
  27. </li>
  28. <li><a class="internal" href="#getsource">3. Getting the Source Code</a>
  29. <ol class="toc">
  30. <li><a class="internal" href="#getrelease">3.1 Released Version</a></li>
  31. <li><a class="internal" href="#getscm">3.2 Git Clone</a></li>
  32. </ol>
  33. </li>
  34. <li><a class="internal" href="#local">4. Binary for Local System</a>
  35. <ol class="toc">
  36. <li><a class="internal" href="#compilelocal">4.1 Compilation</a></li>
  37. <li><a class="internal" href="#installlocal">4.2 Installation</a></li>
  38. </ol>
  39. </li>
  40. <li><a class="internal" href="#standalone">5. Stand-alone Binary</a>
  41. <ol class="toc">
  42. <li><a class="internal" href="#compilestandalone">5.1 Compilation</a></li>
  43. <li><a class="internal" href="#installstandalone">5.2 Installation</a></li>
  44. </ol>
  45. </li>
  46. <li><a class="internal" href="#androidbuild">6. Android build (openMSX 0.15.0 only)</a>
  47. <ol class="toc">
  48. <li><a class="internal" href="#androidbuildintegrate">6.1 Integrate SDL Android build with openMSX build</a></li>
  49. <li><a class="internal" href="#androidcompilationandinstallation">6.2 Compilation and installation</a></li>
  50. </ol>
  51. </li>
  52. <li><a class="internal" href="#next">7. Next Steps</a></li>
  53. <li><a class="internal" href="#contact">8. Contact Info</a></li>
  54. </ol>
  55. <h2><a id="intro">1. Introduction</a></h2>
  56. <h3><a id="newver">1.1 New Versions of this Document</a></h3>
  57. <p>
  58. The latest version of the openMSX manual can be found on the openMSX home page:
  59. </p>
  60. <p>
  61. <a class="external" href="http://openmsx.org/manual/">http://openmsx.org/manual/</a>
  62. </p>
  63. <p>
  64. You can also use this URL to get up-to-date versions of the hyperlinks
  65. if you printed out this manual.
  66. </p>
  67. <h3><a id="purpose">1.2 Purpose</a></h3>
  68. <p>
  69. This guide is about openMSX, the open source MSX emulator that tries to achieve
  70. near-perfect emulation by using a novel emulation model.
  71. You can find more information about openMSX on the
  72. <a class="external" href="http://openmsx.org/">openMSX home page</a>.
  73. </p>
  74. <p>
  75. If you just want to use openMSX, there is likely <a class="external" href="faq.html#easyinstall">a pre-packaged version</a> you can use. This document describes how you can compile openMSX from source, which is useful if:
  76. </p>
  77. <ul>
  78. <li>There is not yet a pre-packaged version for your favourite platform.</li>
  79. <li>You want to closely follow the latest developments.</li>
  80. <li>You want to make changes to openMSX.</li>
  81. </ul>
  82. <p>
  83. If you need help compiling openMSX, please
  84. <a class="internal" href="#contact">contact us</a>.
  85. If you needed any modifications to make openMSX compile,
  86. please send those modifications to us,
  87. so we can make openMSX ever more portable.
  88. </p>
  89. <h3><a id="contrib">1.3 Contributors</a></h3>
  90. <p>
  91. The following people contributed to this document in one way or another:
  92. </p>
  93. <ul>
  94. <li>Jorrith Schaap</li>
  95. <li>Manuel Bilderbeek</li>
  96. <li>Maarten ter Huurne</li>
  97. <li>other openMSX developers</li>
  98. </ul>
  99. <p>
  100. Thanks to all of them!
  101. </p>
  102. <h3><a id="history">1.4 Revision History</a></h3>
  103. <p>
  104. For the revision history, please refer to the <a class="external"
  105. href="https://github.com/openMSX/openMSX/commits/master/doc/manual/compile.html">commit log</a>.
  106. </p>
  107. <h2><a id="preparation">2. Preparation</a></h2>
  108. <p>
  109. Before you can start compiling openMSX, you have to make sure your system
  110. has all the necessary build tools installed, as well as the libraries
  111. openMSX depends upon. The following sections tell you how you can prepare your system.
  112. </p>
  113. <p>
  114. Every section starts with generic instructions, that apply to all platforms and
  115. compilers. At the end of each section, platform specific notes cover differences or additional steps for certain platforms
  116. or compilers.
  117. </p>
  118. <h3><a id="tools">2.1 Build Tools</a></h3>
  119. <p>
  120. For compilation, you need <a class="external" href="http://www.python.org/download/">Python</a>, a C++ compiler, and some compiler-specific programs.
  121. If you have compiled packages from source before, you probably have some of these installed already.
  122. </p>
  123. <dl>
  124. <dt><a class="external" href="http://www.python.org/download/">Python</a></dt>
  125. <dd>A compact and dynamic programming language. The latest version should work fine. Note: on Windows 7 you may have to add the path to Python (e.g. <code>C:\Python</code>) to your <code>PATH</code> manually.</dd>
  126. <dt>C++ compiler</dt>
  127. <dd>There are three compilers that are supported to build openMSX: GCC, clang
  128. and Visual C++. The GCC compiler builds openMSX on all supported platforms, clang is the default on macOS, while Visual C++ is the primary compiler for Windows.</dd>
  129. </dl>
  130. <h4>GCC</h4>
  131. <p>For compilation with GCC, you need GNU Make and g++:</p>
  132. <dl>
  133. <dt>make</dt>
  134. <dd>GNU implementation of the Make tool.
  135. Make interprets rules that define how a project should be built.
  136. Version 3.79 or higher should suffice, but 3.80 or higher is recommended and even necessary if you are building a standalone binary with the method described below.</dd>
  137. <dt>g++</dt>
  138. <dd>The GNU C++ compiler.
  139. Version 7 or later is required to build openMSX.
  140. </dd>
  141. </dl>
  142. <h5>Microsoft Windows (MinGW)</h5>
  143. <p>You need to install MinGW (with MSYS).</p>
  144. <p>You can download the latest version of <code>mingw-get-inst</code> from <a class="external" href="http://sourceforge.net/project/showfiles.php?group_id=2435">the download page</a> of the MinGW project (it's the default download if you're on Windows). Double click on this installer after downloading. Click Next, Next, select "Download latest repository catalogues" and click Next again. Accept the license agreement and click Next. Use the default installation directory (<code>C:\MinGW</code>), or at least a <strong>clean and empty</strong> (e.g. non-existing) directory without spaces and <strong>not</strong> a network folder (i.e. shared folder on another computer) and click Next. Click Next again. In the "Select Components" step, make sure to check "C++ Compiler" and "MSYS Basic System" and click Next. Then click Install. This will then update the package repositories first, which takes a while. After this, it will download all the MinGW packages and install them.
  145. </p>
  146. <h5>OpenDingux</h5>
  147. <p>For compilation for OpenDingux to run on GCW Zero, you need to install the
  148. GCW Zero toolchain. This toolchain is for x86 Linux; if you have an x86 machine but no Linux, you can install Linux in a virtual machine. You can find the toolchain and installation instructions in the <a href="http://www.gcw-zero.com/develop">development section of the GCW Zero web site</a>.
  149. </p>
  150. <h4>clang</h4>
  151. <h5>macOS</h5>
  152. <p>
  153. Install Xcode from Apple, which you can find in the Mac App Store. The openMSX build is not done inside the Xcode IDE, but it uses the SDK and command line tools that are provided by Xcode.
  154. </p>
  155. <h4>Visual C++</h4>
  156. <p>To build with Visual C++ you need to have the latest version of it installed. Currently, this is 2019.</p>
  157. <p>Use this way to obtain the Visual C++ compiler:</p>
  158. <dl>
  159. <dt><a class="external" href="http://www.visualstudio.com/downloads/">Visual Studio Community</a></dt>
  160. <dd>This is a free (as in beer) IDE and development environment. It builds 32 and 64-bit binaries out of the box. Make sure you download the latest version. </dd>
  161. </dl>
  162. <p>To generate an MSI installation package, you also need:</p>
  163. <dl>
  164. <dt> <a class="external" href="http://wixtoolset.org/">WiX</a></dt>
  165. <dd>This is a tool that generates MSI installer packages. We recommend using
  166. version 3.0 or later. If you see a message that the &quot;Votive&quot;
  167. component won't install, that's not a problem, just continue.</dd>
  168. </dl>
  169. <h4>Android (openMSX 0.15.0 only)</h4>
  170. <p><strong>Warning:</strong> the build instructions here are <em>only</em> valid for openMSX 0.15.0!</p>
  171. <p><strong>Warning:</strong> the build of the Android version is only supported on a Linux or Unix host platform. If you want
  172. to build the Android version on a Windows host, then you must install a virtual machine with a Linux distribution on it. This is because the Android build depends on the "commandergenius" SDL Android port, which can only be build on Linux and Unix platforms.</p>
  173. <p>The Android build depends on the following toolkits and libraries that must first be installed:</p>
  174. <dl>
  175. <dt>The Android SDK</dt>
  176. <dd>Download the Android SDK command line tools from the <a
  177. href="http://developer.android.com/sdk/index.html">Android SDK
  178. site</a>. It is sufficient to download the SDK Tools or SDK Manager only package. For
  179. openMSX you do not need the so-called ADT bundle. An older SDK Tools
  180. only package that we used is
  181. <a class="external" href="http://dl.google.com/android/android-sdk_r23.0.2-linux.tgz">Android SDK R23.0.2 Linux</a>. The latest seems to be <a class="external" href="https://dl.google.com/android/repository/sdk-tools-linux-4333796.zip">Android SDK Tools Linux 26.1.1</a>. Most instructions below are based on the older SDK manager.
  182. After downloading it, unpack it to your favourite location. See below for further instructions.
  183. See the README in the ${ANDROID-SDK} directory for further instructions on how to download extra tools and libraries.</dd>
  184. <dt>The Android NDK</dt>
  185. <dd>Download the Android NDK from the <a href="http://developer.android.com/tools/sdk/ndk/index.html">Android NDK site</a>,
  186. unpack it to your favourite location and add the following Android NDK directory to your PATH environment
  187. variable: <code>${ANDROID_NDK_HOME}</code>. It is advisable to do this in your <code>~/.profile</code>
  188. script so that the setting remains available on each login. Note that <code>${ANDROID_NDK_HOME}</code> stands for the
  189. directory in which you installed the Android NDK, for example <code>/opt/android/android-ndk-r18b</code>. We currently only support Android NDK 18b! On top of that, it is also necessary to create a stand-alone toolchain from this NDK. The following works: <code>$ANDROID_NDK_HOME/build/tools/make_standalone_toolchain.py --arch arm --api 16 --install-dir /opt/Android_NDK/r18b-android16-arm-standalone-toolchain</code>. The destination dir here is just an example. You must add the <code>bin</code> subdir to your <code>PATH</code> environment variable, e.g.: <code>/opt/Android_NDK/r18b-android16-arm-standalone-toolchain/bin/</code></dd>
  190. <dt>The "commandergenius" SDL Android port</dt>
  191. <dd>Download the SDL Android port from the git repository to your favourite location. You can download it
  192. into the current directory with the following command: <code>git clone https://github.com/pelya/commandergenius.git</code>. Once that is done, you must set-up an environment variable called SDL_ANDROID_PORT_PATH with the location
  193. of the SDL android port. For example <code>/opt/android/commandergenius</code>. You must also make sure to put it on to the revision that we are currently supporting. Set it to 61c5b7352b22be464487d559df5cb0d50bfbc605. You also need a to make a little change to it... in <code>project/jni/Application.mk</code> in the line with <code>APP_STL :=</code> replace <code>c++_static</code> with <code>c++_shared</code>.</dd>
  194. <dt>Java Development Kit</dt>
  195. <dd>Make sure you install the JDK from your distro. Example packages: <code>openjdk-8-jdk</code> (Debian), <code>java-1.7.0-openjdk</code> (SuSE 12.2).</dd>
  196. <dt>Ant</dt>
  197. <dd>Make sure you install Ant build tool from your distro. Example packages: <code>ant</code> (Debian), <code>ant-1.8.2-11.1.1.noarch</code> (SuSE 12.2).</dd>
  198. <dt>Ant-optional</dt>
  199. <dd>Make sure you install Ant-optional extensions from your distro. Example packages: <code>ant-optional</code> (Debian). Note that this seems to be not applicable for SuSE 12.2; apparently everything is bundled in the ant package.</dd>
  200. <dt>zip</dt>
  201. <dd>Make sure you install the zip command line tool from your distro. Example packages: <code>zip</code> (Debian Squeeze/6.0), <code>zip</code> (SuSE 12.2).</dd>
  202. <dt>libz 32-bit</dt>
  203. <dd>Make sure that if you have a 64-bit distro, you (also) install the 32-bit version of libz (it is required by the Android NDK). Example packages: <code>lib32z1</code> (Debian), <code>zlib-32bit</code> (SuSE 12.2).</dd>
  204. <dt>libstdc++6 32-bit</dt>
  205. <dd>Make sure that if you have a 64-bit distro, you (also) install the 32-bit version of libstdc++6 (it is required by the Android NDK). Example packages: <code>lib32stdc++6</code> (Debian), <code>libstdc++47-32bit</code> (SuSE 12.2).</dd>
  206. </dl>
  207. <p>
  208. After you installed the Android SDK, you actually only installed the "Android SDK Manager". You'll have to use this manager to install the proper Android SDK packages. Start up this tool by running <code>android</code> in a terminal (it is located in the <code>tools</code> folder of the SDK manager you downloaded). This works for the above mentioned older SDK Tools, but it doesn't for the new ones, so you should check these instructions which packages to install with the newer SDK managers. The old SDK manager opens a new window. You should first get some messages in the status bar that it is fetching the repositories. After that, you should get a list of all possible SDK API versions. If you get errors like <code>HttpHostConnect Connection to http://dl-ssl.google.com refused</code>, you are hitting this bug: <a class="external" href="http://skybert.net/java/ipv46-related-network-problems/">IPv4/6 Related Network Problems</a>. You'll have to solve this to proceed.
  209. </p>
  210. <p>Once you have the list of packages, you must select the following options for installation:</p>
  211. <ul>
  212. <li> Tools -&gt; Android SDK Tools
  213. </li>
  214. <li> Tools -&gt; Android SDK Platform-tools
  215. </li>
  216. <li> Tools -&gt; Android SDK Build-tools 28.0.2
  217. </li>
  218. <li> Android 9 (API 28) -&gt; SDK Platform 28 6
  219. </li>
  220. <li> Android 4.1.2 (API 16) -&gt; SDK Platform 16 5
  221. </li>
  222. </ul>
  223. <p>It may be possible that by default another version of the Android API is pre-selected. We're at least trying to target API 16 with this build. You may unselect other APIs in order to save download time and diskspace. (You also don't need the Android Support Package, so if it gets selected, you can also unselect that one.) Next step is to click the "Install N packages" button (N seems to vary a bit... it may be like 12) to install the packages (accept the license terms). After downloading and installing, you can close the Android SDK Manager. When you are trying to execute a build later on, and it stops with "license not accepted for package XYZ", then start the SDK Manager again to install the requested package.</p>
  224. <p>
  225. Finally, add following Android SDK directories to your PATH environment
  226. variable: <code>${ANDROID_SDK}/tools:${ANDROID_SDK}/platform-tools:${ANDROID_SDK}/build-tools/${ANDROID_SDK_VERSION}</code>. The first one only exists for older SDK managers, as explained earlier.
  227. It is advisable to do this in your <code>~/.profile</code>
  228. script so that the setting remains available on each login. Note that <code>${ANDROID_SDK}</code> stands for the
  229. directory in which you installed the Android SDK, for example <code>/opt/android/android-sdk-linux</code>
  230. and <code>${ANDROID_SDK_VERSION}</code> stands for the version of the Android SDK Build-tools you installed with the SDK manager, for example <code>28.0.2</code> (see above).
  231. </p>
  232. <h3><a id="libs">2.2 Libraries</a></h3>
  233. <p>
  234. openMSX depends on the following libraries:
  235. </p>
  236. <dl>
  237. <dt><a class="external" href="http://www.libsdl.org/">SDL</a></dt>
  238. <dd>Simple DirectMedia Layer version 2, a cross-platform library that provides low-level access to video, audio and input devices.</dd>
  239. <dt><a class="external" href="http://www.libsdl.org/projects/SDL_ttf/">SDL_ttf</a></dt>
  240. <dd>Library that provides support for TrueType Fonts in SDL.</dd>
  241. <dt><a class="external" href="http://www.libpng.org/pub/png/libpng.html">libpng</a></dt>
  242. <dd>Library for handling PNG images.</dd>
  243. <dt><a class="external" href="http://www.zlib.org/">zlib</a></dt>
  244. <dd>Library for file compression.</dd>
  245. <dt><a class="external" href="http://www.tcl.tk/">Tcl</a></dt>
  246. <dd>The Tool Command Language, an embeddable scripting language. openMSX requires Tcl 8.6; older versions will not work.</dd>
  247. <dt><a class="external" href="http://www.opengl.org/">OpenGL</a> (optional)</dt>
  248. <dd>Library for accelerated graphics. It is likely that OpenGL is already installed on your system. If not, you should probably get the OpenGL implementation from the manufacturer of your graphics card. On Linux, using <a class="external" href="http://www.mesa3d.org/">Mesa</a> with a DRI driver can be an alternative.</dd>
  249. <dt><a class="external" href="http://glew.sourceforge.net/">GLEW</a> (optional)</dt>
  250. <dd>The OpenGL Extension Wrangler, a library that greatly simplifies the use of OpenGL extensions.</dd>
  251. <dt><a class="external" href="http://www.xiph.org/ogg/">Ogg</a> (optional)</dt>
  252. <dd>The Laserdisc emulation expects files in the Ogg container format for the video and audio of Laserdiscs.</dd>
  253. <dt><a class="external" href="http://www.xiph.org/vorbis/">Vorbis</a> (optional)</dt>
  254. <dd>The Laserdisc emulation expects audio encoded with Vorbis in the ogg container format for the audio of Laserdiscs. Vorbis was chosen since it is not patent-encumbered.</dd>
  255. <dt><a class="external" href="http://www.xiph.org/theora/">Theora</a> (optional)</dt>
  256. <dd>The Laserdisc emulation expects video encoded with the Theora codec in the ogg container format for the video of Laserdiscs. Again, Theora was chosen since it is not patent-encumbered.</dd>
  257. <dt><a class="external" href="http://www.alsa-project.org/">ALSA</a> (optional, Linux only)</dt>
  258. <dd>The ALSA library for ALSA MIDI out support on Linux.</dd>
  259. </dl>
  260. <h4>GCC / clang</h4>
  261. <p>
  262. You can install the required libraries systemwide, or you can use the "3rd party libraries" support in the openMSX build system and build a stand-alone binary. Systemwide is recommended if you run a modular operating system (such as Linux, BSD or macOS with MacPorts, Homebrew or Fink) and you intend to only use the openMSX binary on your computer. The 3rd party library system is recommended if you build for other operating systems (Windows, plain macOS or embedded systems) or if you want to build a binary that can be used on other computers besides your own. If you choose the latter, please skip to the <a class="internal" href="#standalone">Stand-alone Binary</a> chapter.
  263. </p>
  264. <h5>Android</h5>
  265. <p>
  266. For Android, the required SDL library is built in the SDL Android port that you downloaded
  267. in the "Build Tools" section. The rest of the libraries are arranged by the
  268. "3rd party libraries" support in the openMSX build system. If you want to build
  269. openMSX for Android, you can immediately jump to the <a class="internal"
  270. href="#getsource">Getting the source code</a> chapter.
  271. </p>
  272. <h5>Debian and Ubuntu Linux</h5>
  273. <p>
  274. You can easily install all required packages using the "build dependencies" feature of the APT package manager:
  275. </p>
  276. <div class="commandline">
  277. sudo apt-get build-dep openmsx
  278. </div>
  279. <p>
  280. Do note that if the Debian/Ubuntu package that is in the version of the distribution you are currently running is older than the openMSX version you are trying to compile (which is typically so), you might miss some dependencies that were added in the newer version. The build system will complain and you will have to install the remaining (missing) packages manually. Read on to get some tips about that.
  281. </p>
  282. <h5>OpenDingux</h5>
  283. <p>We only support the <a class="internal" href="#standalone">Stand-alone
  284. Binary</a> method, which means the openMSX build system will download
  285. and compile all libraries automatically.</p>
  286. <h5>Other Linux</h5>
  287. <p>
  288. Most Linux distributions have libraries split over two packages: a runtime package and a development package.
  289. The runtime package for the "Foo" library is typically called
  290. <code>libfoo</code>, the development package is typically named
  291. <code>libfoo-dev</code> or <code>libfoo-devel</code>.
  292. Applications that use a library only require the runtime package to be installed, but compilation requires both the runtime package and the development package to be installed.
  293. </p>
  294. <h5>macOS</h5>
  295. <p>
  296. The easiest thing to do is to use the <a class="internal" href="#standalone">stand-alone binary</a> method, which will get the libraries automatically.</p>
  297. <p>
  298. If you want to do things manually, you can get the libraries from
  299. <a class="external" href="http://www.macports.org/">MacPorts</a>,
  300. <a class="external" href="http://brew.sh/">Homebrew</a>
  301. or
  302. <a class="external" href="http://www.finkproject.org/">Fink</a>. These are tools to give you access to a large collection of software packages (or ports). You can use them to install those packages (or ports). The manual approach is not regularly tested by the openMSX developers; unless you enjoy tinkering with builds we suggest you use the stand-alone binary approach instead.
  303. </p>
  304. <h5>Microsoft Windows (MinGW)</h5>
  305. <p>
  306. We strongly recommend using the <a class="internal" href="#standalone">Stand-alone
  307. Binary</a> method, which means the openMSX build system will download and compile all libraries automatically.
  308. </p>
  309. <h4>Visual C++</h4>
  310. <p>
  311. When building with Visual C++, the optional libraries mentioned above are
  312. arranged as follows:</p>
  313. <ul>
  314. <li>Headers and libraries for OpenGL are included with Visual C++ by default.</li>
  315. <li>The GLEW, Ogg, Theora and Vorbis libraries are required.</li>
  316. </ul>
  317. <p>
  318. Also, when building with Visual C++, the &quot;3rd party libraries&quot; support in the openMSX
  319. build system must be used. The resulting binary statically links in all
  320. dependencies, including the C runtime. For more details, please see the <a class="internal" href="#standalone">
  321. Stand-alone Binary</a> chapter.
  322. </p>
  323. <h2><a id="getsource">3. Getting the Source Code</a></h2>
  324. <p>
  325. openMSX is developed using the tools
  326. <a class="external" href="http://github.com/">GitHub</a>
  327. freely offers to open source projects.
  328. The code is stored in Git, an open source version management system.
  329. Once in a while an openMSX release is made.
  330. </p>
  331. <p>
  332. There are several options for getting the source code:
  333. </p>
  334. <dl>
  335. <dt><a class="internal" href="#getrelease">Released Version</a></dt>
  336. <dd>
  337. These are tested versions, which should give you little problems compiling
  338. and running.
  339. However, as openMSX development if often quite fast, they may not have all
  340. the latest features.
  341. Also there could be bugs that have been fixed since the last release.
  342. </dd>
  343. <dt><a class="internal" href="#getscm">Git Clone</a></dt>
  344. <dd>
  345. Through Git you can get the same development version the
  346. openMSX developers are using.
  347. This is the bleeding edge:
  348. the latest stuff, which may be great or may be horribly broken.
  349. Usually the latest openMSX code compiles and runs fine, but we're only human,
  350. so once in a while it breaks.
  351. Also there may be changes that are not documented yet.
  352. </dd>
  353. </dl>
  354. <p>
  355. Releases are intended for general users, Git Clone is intended for
  356. (would be) developers, heavy testers and people who want to follow new
  357. developments closely. It might be a good idea to play with a release first. If
  358. you like what you see and want to get in deeper, you can switch to a Git Clone later.
  359. A Git Clone is very comfortable, because then you can do efficient
  360. incremental updates, saving network bandwidth and compile time.
  361. </p>
  362. <p>
  363. If you downloaded a version that is either a lot older or a lot newer than
  364. this guide, it is a good idea to read the guide included in your downloaded
  365. version instead of the version you're reading right now.
  366. You can find the Compilation Guide in the directory
  367. <code>doc/manual</code>.
  368. </p>
  369. <h3><a id="getrelease">3.1 Released Version</a></h3>
  370. <p>
  371. You can download a released version of openMSX from
  372. <a class="external" href="https://github.com/openMSX/openMSX/releases/"
  373. >the releases page on GitHub</a>.
  374. The latest version is probably the best one. This guide assumes that you are using the latest release.
  375. </p>
  376. <p>
  377. After downloading, type the following in a UNIX or MinGW Shell (in your start menu), or use another
  378. decompression tool:
  379. </p>
  380. <div class="commandline">tar xzvf openmsx-VERSION.tar.gz</div>
  381. <p>
  382. in which <code>VERSION</code> is the openMSX version you downloaded, or use the
  383. file name you saved the tar.gz file with. The directory that is created by uncompressing the <code>tar.gz</code> file
  384. is called <em>the top of the source tree</em>.
  385. </p>
  386. <h3><a id="getscm">3.2 Git Clone</a></h3>
  387. <p>
  388. Getting a Git clone means you use Git to retrieve the latest version
  389. of the source code of openMSX.
  390. This means you will need to install a Git client.
  391. This package is usually named <code>git</code>.
  392. There are graphical front-ends for Git,
  393. but this guide will tell you how to use Git from the command line. More information about Git can be found on the <a class="external"
  394. href="http://git-scm.com/documentation">Git Documentation</a> site.</p>
  395. <p>
  396. Windows
  397. users might want to look at <a class="external" href="https://git-for-windows.github.io/">msysGit</a> for a command line tool, <a class="external" href="http://code.google.com/p/tortoisegit/">TortoiseGit</a> for Windows Explorer integration, or <a class="external" href="http://gitextensions.github.io/">Git Extensions</a>, which also includes Visual Studio integration.
  398. </p>
  399. <p>
  400. With the following line (which is also displayed when you <a class="external" href="https://github.com/openMSX">browse an openMSX git repository</a>) you can retrieve the latest sources (also works on Windows when using msysGit):
  401. </p>
  402. <div class="commandline">
  403. git clone https://github.com/openMSX/openMSX.git openMSX
  404. </div>
  405. <p>
  406. In this line you specified where you want to retrieve the files from
  407. (host name of the Git server),
  408. what project you want to retrieve (<em>openMSX</em> in this case), what
  409. module you want to get (<em>openMSX.git</em> in this case, which is the module that contains
  410. the sources of the main openMSX program) and what directory it should be
  411. cloned to (we chose <em>openMSX</em> in this example).
  412. </p>
  413. <p>
  414. When compiling openMSX on Windows with GCC, it's often convenient to use <code>C:\MinGW\msys\1.0\home\&lt;username&gt;\openMSX</code>
  415. as the target directory, as this is easy to reach from your MinGW Shell - it's
  416. your MinGW home directory.
  417. </p>
  418. <p>
  419. If you're a developer, it makes sense to use this git commandline:
  420. </p>
  421. <div class="commandline">
  422. git clone git@github.com:openMSX/openMSX.git openMSX
  423. </div>
  424. <p>
  425. For this to work smoothly, without having to type your password all the time, it's probably a good idea to <a class="external" href="https://help.github.com/articles/generating-ssh-keys/#platform-all">read the GitHub docs about SSH keys</a>.
  426. </p>
  427. <p>
  428. The Git command creates a directory called <code>openMSX</code> for you
  429. in the current directory (or in the directory you specified in TortoiseGit).
  430. This directory is what we call in this manual <em>the top
  431. of the source tree</em>.
  432. In addition to the openMSX code, you will see a hidden
  433. Git administration directory called <code>.git</code>.
  434. Do not mess with it (nor move contents of this directory around), otherwise Git will get confused.
  435. </p>
  436. <p>
  437. If you want to update your source tree later,
  438. go to the top of the source tree and type:
  439. </p>
  440. <div class="commandline">
  441. git pull
  442. </div>
  443. <p>
  444. or right click on the openMSX directory in Windows Explorer and select "TortoiseGit -&gt; Pull...".
  445. </p>
  446. <h2><a id="local">4. Binary for Local System</a></h2>
  447. <p>
  448. This section explains how to build openMSX for a local system. If you want to build openMSX for Android, you can skip this section and use the <a class="internal" href="#androidbuild">Android build</a> method. If you want to create a binary that runs everywhere, we recommend to skip this chapter and use the <a class="internal" href="#standalone">stand-alone binary</a> method. We also recommend to do that for macOS and especially for Microsoft Windows systems.
  449. </p>
  450. <h3><a id="compilelocal">4.1 Compilation</a></h3>
  451. <p>
  452. Now that all the necessary tools and libraries are installed,
  453. you are almost ready to start the actual compilation of openMSX.
  454. </p>
  455. <h4>GCC / clang</h4>
  456. <p>
  457. The first thing you may want to know is that you can build openMSX in
  458. different flavours. The default flavour depends on the CPU, but is always one that is optimized for performance. For example for x86 processors the default
  459. flavour is "i686": i.e., with optimisations for Pentium II and higher,
  460. without any debugging stuff. The generic optimized flavour "opt" should work for all CPUs.
  461. </p>
  462. <p>
  463. If you are testing new openMSX developments or making changes in openMSX, you can benefit from asserts and debug symbols. To get those, you should select the "devel" flavour, like this:
  464. </p>
  465. <div class="commandline">
  466. export OPENMSX_FLAVOUR=devel
  467. </div>
  468. <p>
  469. Although the default flavours will probably be OK for most cases, you may want to write a specific flavour for your particular wishes. The flavour files are all named <code>build/flavour-*.mk</code>.
  470. </p>
  471. <p>
  472. You can select the C++ compiler to be used by setting the <code>CXX</code> environment variable like this:
  473. </p>
  474. <div class="commandline">
  475. export CXX=g++-5
  476. </div>
  477. <p>
  478. or:
  479. </p>
  480. <div class="commandline">
  481. export CXX=clang++
  482. </div>
  483. <p>
  484. This can be useful if the default compiler on your system is an old version which is either not capable of compiling openMSX, or generates less efficient code.
  485. </p>
  486. <p>
  487. Now we can let a script check if you have indeed all necessary libraries and headers installed.
  488. Go to the top of your openMSX source tree and run the following script:
  489. </p>
  490. <div class="commandline">
  491. ./configure
  492. </div>
  493. <p>
  494. This script will report what versions of libraries you have installed.
  495. It also reports which components can be built with those libraries.
  496. If the script reports that it can't build the openMSX core component,
  497. you should install the missing ones before you can continue.
  498. Otherwise, you can decide to install the libraries needed for the optional
  499. components, or to continue without building some components (e.g. the OpenGL based renderers).
  500. </p>
  501. <p>
  502. If installing the correct libraries doesn't help,
  503. <a class="internal" href="#contact">contact the openMSX developers</a>.
  504. If you file a bug report, please attach the <code>probe.log</code> file
  505. that is written by the <code>configure</code> script in the directory
  506. <code>derived/&lt;cpu&gt;-&lt;os&gt;-&lt;flavour&gt;/config/</code>.
  507. </p>
  508. <p>
  509. You can customise the build process by editing the file
  510. <code>build/custom.mk</code>.
  511. The most likely thing you might want to customise is the installation directory (<code>INSTALL_BASE</code>).
  512. If you are installing openMSX on a system on which you do not have
  513. superuser (root) privileges, you can set the installation directory
  514. to a subdirectory of your home directory.
  515. </p>
  516. <p>
  517. After successfully running <code>configure</code>,
  518. it's time to compile everything.
  519. To start compilation, type:
  520. </p>
  521. <div class="commandline">
  522. make
  523. </div>
  524. <p>
  525. Depending on how fast your system is,
  526. this may take several minutes to half an hour.
  527. </p>
  528. <p>
  529. If you get errors during compilation,
  530. there may be something wrong that was not detected by configure.
  531. Verify that you installed
  532. <a class="internal" href="#libs">all required libraries</a>,
  533. both the run time and development packages.
  534. If that doesn't help, or we forgot to list a library openMSX depends on,
  535. <a class="internal" href="#contact">contact the openMSX developers</a>.
  536. Make sure you provide us with the error message you got.
  537. </p>
  538. <p>
  539. If you want to debug openMSX compilation problems yourself, you can add <code>V=1</code> (verbose) to the Make command line to see all build commands as they are executed.
  540. </p>
  541. <h5>macOS</h5>
  542. <p>
  543. Since openMSX 0.10.0, the minimum required macOS release to build openMSX out of the box is 10.7. This implies that only x86_64 CPUs (64-bit Intel) are supported.
  544. </p>
  545. <p>
  546. Building for older macOS releases should be possible in theory, but it requires a lot of effort to set up the compiler and SDK (C++11 support is required), adjust the openMSX build (<code>build/platform-darwin.mk</code>) etc. It's easier to try an older openMSX release instead.
  547. </p>
  548. <h4>Visual C++</h4>
  549. <p>
  550. While it is possible to configure the supplied Visual C++ project files to
  551. dynamically link against import libraries, this is not currently supported.</p>
  552. <h3><a id="installlocal">4.2 Installation</a></h3>
  553. <h4>GCC / clang</h4>
  554. <h5>Linux and BSD</h5>
  555. <p>
  556. To install openMSX, run the following command:
  557. </p>
  558. <div class="commandline">
  559. make install
  560. </div>
  561. <p>
  562. This installs openMSX, by default in <code>/opt/openMSX</code>.
  563. Note that only root has rights to write to system-wide directories such as
  564. <code>/opt</code>,
  565. so you may have to do <code>su</code> before <code>make install</code>, or use <code>sudo</code>.
  566. </p>
  567. <h5>macOS</h5>
  568. <p>
  569. On macOS, the build creates an application folder. You can "install" this by copying it to a different location. The application folder will depend on systemwide installed libraries, so it will not work on Macs without those libraries.
  570. </p>
  571. <p>
  572. You can run openMSX from the application folder with the following command:
  573. </p>
  574. <div class="commandline">
  575. open derived/&lt;cpu&gt;-darwin-&lt;flavour&gt;/bindist/openMSX.app
  576. </div>
  577. <p>
  578. If you want to see the messages openMSX prints to stdout and stderr, start openMSX like this:
  579. </p>
  580. <div class="commandline">
  581. derived/&lt;cpu&gt;-darwin-&lt;flavour&gt;/bindist/openMSX.app/Contents/MacOS/openmsx
  582. </div>
  583. <h2><a id="standalone">5. Stand-alone Binary</a></h2>
  584. <p>
  585. This chapter describes how to build a binary of openMSX that does not depend on any libraries except those that are available on the platform by default. This procedure is highly recommended on Microsoft Windows. It is also recommended on macOS.
  586. </p>
  587. <p>
  588. The stand-alone binary is made by linking statically against all libraries which are not available as part of the basic platform. The build system will automatically download the sources for these libraries and build them in the minimal configuration needed by openMSX.</p>
  589. <h3><a id="compilestandalone">5.1 Compilation</a></h3>
  590. <h4>GCC / clang</h4>
  591. <p>
  592. If you want to change something about this process, for example switch to a newer library release, edit the <code>build/3rdparty.mk</code> Makefile.
  593. </p>
  594. <p>
  595. Just like for normal compilation, you can set environment variables such as <code>OPENMSX_FLAVOUR</code>, <code>CXX</code>, <code>OPENMSX_TARGET_CPU</code> and <code>OPENMSX_TARGET_OS</code>.
  596. </p>
  597. <p>
  598. To build a stand-alone binary, run the following command at the top of the source tree:
  599. </p>
  600. <div class="commandline">
  601. make staticbindist
  602. </div>
  603. <p>
  604. The final output files will be produced in <code>derived/&lt;cpu&gt;-&lt;os&gt;-&lt;flavour&gt;-3rd/bindist</code>.
  605. </p>
  606. <h5>macOS</h5>
  607. <p>
  608. The final output is a DMG file (Mac disk image) containing the openMSX application folder and documentation. This file is internet-enabled, which means it will be automatically mounted after it is downloaded.
  609. </p>
  610. <h5>Microsoft Windows (MinGW)</h5>
  611. <p>
  612. Here's the very short version if you want quick results on Microsoft Windows
  613. with GCC:
  614. </p>
  615. <ul>
  616. <li>Open a MinGW Shell</li>
  617. <li>Go to the <em>top of the source tree</em> (e.g.: <code>cd openMSX</code> if you chose the MinGW home directory as target directory)</li>
  618. <li>Type: <code>make staticbindist</code></li>
  619. </ul>
  620. <p>A complete package will be created in <code>derived\x86-mingw32-i686-3rd\bindist\install</code>.
  621. </p>
  622. <p>
  623. If you additionally want to build an (by current developers unused) openMSX installer, you should refer to the <a class="external" href="https://github.com/openMSX/package-windows/"><code>package-windows</code></a> module in our Git repository. It contains a README file with a short manual.
  624. </p>
  625. <p>
  626. Note: on a 64-bit Windows system, MinGW will pretend to have built 64-bit binaries (target directory is <code>derived\x86_64-mingw32-opt-3rd\bindist\install</code>), but they're actually just 32-bit.
  627. </p>
  628. <h5>OpenDingux</h5>
  629. <p>After having the toolchain installed, you can simply compile openMSX with
  630. this command:</p>
  631. <div class="commandline">
  632. make staticbindist OPENMSX_TARGET_CPU=mipsel OPENMSX_TARGET_OS=dingux OPENMSX_FLAVOUR=opt
  633. </div>
  634. <p>When this is done, you have a ready to use OPK file for distribution in the folder <code>derived/mipsel-dingux-opt-3rd/</code>.</p>
  635. <h4>Visual C++</h4>
  636. <p>When building with Visual C++, the result is a static executable with minimal
  637. dynamic library dependencies. Two platforms are supported:</p>
  638. <ul>
  639. <li><strong>Win32</strong> - a 32-bit binary that runs on both 32 and 64-bit versions of Windows</li>
  640. <li><strong>x64</strong> - a native 64-bit binary that runs only on 64-bit versions of Windows</li>
  641. </ul>
  642. <p>Three different configurations are supported:</p>
  643. <ul>
  644. <li><strong>Debug</strong>: assertions enabled, debug prints enabled, no optimization,
  645. very slow</li>
  646. <li><strong>Developer</strong>: assertions enabled, debug prints disabled, no optimization</li>
  647. <li><strong>Release</strong>: assertions disabled, debug prints disabled, full optimization</li>
  648. </ul>
  649. <p>When building with Visual C++, you can either use the IDE or build from the command line using <code>msbuild</code>. To do the latter, you need to open a Visual Studio command prompt. A shortcut to a Visual Studio command prompt can usually be found in your start menu. For Visual Studio Community 2017, it will be in &quot;Microsoft Visual Studio 2017\Visual Studio Tools&quot; as the &quot;Visual Studio Command Prompt&quot;.</p>
  650. <!-- TODO - Replace this section when we have integration with the broader 3rd party system -->
  651. <p>In order to build openMSX, the libraries it depends on need to be
  652. downloaded and unpacked:</p>
  653. <ul>
  654. <li>Open a command prompt and go to the <em>top of the openMSX source tree</em></li>
  655. <li>Type <code>python build\thirdparty_download.py windows</code></li>
  656. </ul>
  657. <p>
  658. The following steps can then be used to build openMSX:</p>
  659. <ul>
  660. <li>Open a Visual Studio command prompt</li>
  661. <li>Go to the <em>top of the openMSX source tree</em></li>
  662. <li>To build 3rd party libraries, type <code>msbuild -p:Configuration=<strong>Release</strong>;Platform=<strong>Win32</strong> build\3rdparty\3rdparty.sln</code></li>
  663. <li>To build openMSX, type <code>msbuild -p:Configuration=<strong>Release</strong>;Platform=<strong>Win32</strong> build\msvc\openmsx.sln</code></li>
  664. </ul>
  665. <p>The openMSX executable will be generated in <code>derived\Win32-VC-Release\install</code>.</p>
  666. <p>To build for other platforms or configurations, simply replace &quot;Release&quot; and
  667. &quot;Win32&quot;&nbsp;in the command lines above with the desired options.</p>
  668. <p>To build using the Visual C++ IDE, simply open the aforementioned solution files and from the Build menu select &quot;Build Solution&quot;. This is exactly equivalent to building from the command line using <code>msbuild</code>.</p>
  669. <h3><a id="installstandalone">5.2 Installation</a></h3>
  670. <!-- TODO - generalize this for both MinGW and VC++, integrate into make install -->
  671. <!-- TODO - ensure wxCatapult is optional -->
  672. <h4>Visual C++</h4>
  673. <p>
  674. The following step creates .zip and .msi installation packages for openMSX on Windows using WiX:</p>
  675. <ul>
  676. <li>Build <a href="#standalone_compilation">openMSX</a> and
  677. <a class="external" href="http://openmsx.org/catapult-manual/compile.html">wxCatapult</a>
  678. for a given platform (Win32 or x64) and configuration (usually Release builds)</li>
  679. <li>Go to the <em>top of the openMSX source tree</em></li>
  680. <li>Run <code>build\package-windows\package.cmd <strong>platform configuration</strong>
  681. <strong>catapult_source_path</strong></code>:<ul>
  682. <li><strong>platform</strong> is one of { Win32, x64 }</li>
  683. <li><strong>configuration</strong> is one of { Release, Developer, Debug }</li>
  684. <li><strong>catapult_source_path</strong> is the path to the wxCatapult directory</li>
  685. </ul>
  686. </li>
  687. </ul>
  688. <p>An example command line would be (for 64 bit):</p>
  689. <div class="commandline">
  690. build\package-windows\package.cmd x64 Release ..\wxCatapult</div>
  691. <p>The resulting package files can be found in <code>derived\x64-VC-Release\package-windows.</code></p>
  692. <h4>OpenDingux</h4>
  693. <p>Just copy the OPK file into the <code>apps</code> directory.</p>
  694. <h2><a id="androidbuild">6. Android build (openMSX 0.15.0 only)</a></h2>
  695. <p><strong>Warning:</strong> the build instructions here are <em>only</em> valid for openMSX 0.15.0!</p>
  696. <p>
  697. This chapter describes how to build an Android APK package of openMSX for Android and install it
  698. on an Android device.
  699. </p>
  700. <h3><a id="androidbuildintegrate">Integrate SDL Android build with openMSX build</a></h3>
  701. <p>Once you have downloaded the openMSX source (see
  702. <a class="internal" href="#getsource">Getting the Source Code</a> chapter) and the toolkits and libraries
  703. (see <a class="internal" href="#preparation">Preparation</a> chapter), you must integrate the openMSX build
  704. system with the SDL Android port build system.</p>
  705. <p>Basically, the build will be driven by the build system of the SDL Android port and
  706. you must set that one up in order to be able to build openMSX. In order to do that, you must execute the following
  707. commands, whereby <code>OPENMSX_SRC_HOME</code> stands for the directory into which the openMSX source has been loaded:</p>
  708. <div class="commandline">
  709. <pre>
  710. cd $OPENMSX_SRC_HOME/build/android
  711. ./setup_anddev.sh
  712. </pre>
  713. </div>
  714. <h3><a id="androidcompilationandinstallation">Compilation and installation</a></h3>
  715. <h4>Build of the Android version</h4>
  716. <p>
  717. In order to build the Android version, you must enter the following commands:</p>
  718. <div class="commandline">
  719. <pre>
  720. cd $OPENMSX_SRC_HOME/build/android/openmsx
  721. ./launch_anddev_build.sh
  722. </pre>
  723. </div>
  724. <p>If this gives an error like "Unable to find a javac compiler; com.sun.tools.javac.Main is not on the classpath. Perhaps JAVA_HOME does not point to the JDK.", you may have to set the environment variable <code>JAVA_HOME</code> manually. E.g. if <code>javac</code> is actually installed in <code>/usr/lib/jvm/java-6-openjdk-amd64/bin</code>, make sure to <code>export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-amd64</code> before running this command.</p>
  725. <h4>(Re-)installation of the Android version</h4>
  726. <p>
  727. In order to install the Android version, you must connect the Android device with a USB cable to
  728. the computer, enable the "Developer options" in the settings menu and within the "Developers options" enable
  729. the "USB debugging" option. Once that is done, you can install the APK that was build in the
  730. previous step with the following commands:</p>
  731. <div class="commandline">
  732. <pre>
  733. cd $SDL_ANDROID_PORT_PATH
  734. adb install -r project/app/build/outputs/apk/app-release.apk
  735. </pre>
  736. </div>
  737. <p>Alternatively, you can put this file on a place where you can access it with your device (e.g. on a webserver or sending an e-mail). Then you can download and install it like any APK file.</p>
  738. <h4>Build and (re-)installation of the Android version in one step</h4>
  739. <p>
  740. In order to build and directly install the Android version, you must enter the following commands:</p>
  741. <div class="commandline">
  742. <pre>
  743. cd $OPENMSX_SRC_HOME/build/android/openmsx
  744. ./launch_anddev_build.sh -i
  745. </pre>
  746. </div>
  747. <p>
  748. Note that this only works when the "Developer options" -&gt; "USB debugging" setting has been enabled
  749. on the Android device.</p>
  750. <h2><a id="next">7. Next Steps</a></h2>
  751. <p>
  752. If all went well, you should have openMSX installed now or have a stand alone working binary.
  753. You can test it by executing openMSX from the command line:
  754. </p>
  755. <div class="commandline">
  756. openmsx
  757. </div>
  758. <p>
  759. or, by tapping (on Android) or double clicking (on other systems) the openMSX executable or icon that resulted
  760. from the previous step.
  761. </p>
  762. <p>
  763. You should get a screen similar to this:
  764. </p>
  765. <div class="commandline"><pre>
  766. C-BIOS 0.25 cbios.sf.net
  767. No cartridge found.
  768. This version of C-BIOS can
  769. only start cartridges.
  770. Please restart your MSX
  771. (emulator) with a cartridge
  772. inserted.
  773. </pre></div>
  774. <p>
  775. C-BIOS MSX2+ is the default system BIOS used by openMSX.
  776. It was written from scratch by BouKiCHi and he was kind enough to let us
  777. distribute it together with openMSX.
  778. It is not perfect yet, but it runs many ROM games well.
  779. Nowadays C-BIOS is a separate (SourceForge.net) project, with its own <a class="external" href="http://cbios.sourceforge.net/">web page</a>.
  780. </p>
  781. <p>
  782. If you have a ROM image ready, you can try to run it with C-BIOS:
  783. </p>
  784. <div class="commandline">
  785. openmsx ~/msx/games/my-favourite-game.rom
  786. </div>
  787. <p>
  788. or, you can just drop it on the openMSX executable.
  789. </p>
  790. <p>
  791. The next step would be to read the
  792. <a class="external" href="setup.html">openMSX Setup Guide</a>.
  793. That document describes how you can configure openMSX to emulate
  794. actual MSX machines, such as the Panasonic FS-A1GT (turboR).
  795. It also describes how you can have openMSX start up with your
  796. personal settings, how you can configure openMSX and your system
  797. for optimal performance and several other configuration related
  798. topics.
  799. And finally there is of course the
  800. <a class="external" href="user.html">openMSX User's Manual</a>,
  801. which describes all the things you can do with openMSX once
  802. it is fully running.
  803. </p>
  804. <p>
  805. If you got stuck somewhere in the compilation and installation process,
  806. please contact us. The next chapter will tell you how.
  807. </p>
  808. <h5>macOS</h5>
  809. <p>
  810. You can run the openMSX application folder from Finder or from the command line:
  811. </p>
  812. <div class="commandline">
  813. open derived/&lt;cpu&gt;-darwin-&lt;flavour&gt;-3rd/bindist/openMSX.app
  814. </div>
  815. <p>
  816. We do not have a finished GUI yet that works on macOS, so you can either use openMSX from the command line for now, or use third party software like <a class="external" href="http://nekocan.sitemix.jp/?page_id=17">NekoLauncher openMSX</a>.
  817. </p>
  818. <h5>Microsoft Windows</h5>
  819. <p>
  820. You can use the <a class="external" href="http://openmsx.org/catapult-manual/">
  821. Catapult</a> launcher to run openMSX.</p>
  822. <h2><a id="contact">8. Contact Info</a></h2>
  823. <p>
  824. Since openMSX is still under heavy development, feedback and bug reports are very
  825. welcome!
  826. </p>
  827. <p>
  828. If you encounter problems, you have several options:
  829. </p>
  830. <ol>
  831. <li>
  832. Go to our IRC channel: <code>#openMSX</code> on <code>irc.freenode.net</code>
  833. and ask your question there. Also reachable via <a class="external" href="http://webchat.freenode.net/?channels=openMSX">webchat</a>! If you don't get a reply immediately, please stick around for a while, or use one of the other contact options. The majority of the developers lives in time zone GMT+1. You may get no response if you contact them in the middle of the night...
  834. </li>
  835. <li>
  836. Post a message on <a class="external" href="http://www.msx.org/forum/semi-msx-talk/openmsx">the openMSX forum on MRC</a>.
  837. </li>
  838. <li>
  839. Create a new issue in the
  840. <a class="external" href="https://github.com/openMSX/openMSX/issues">openMSX issue tracker</a>
  841. on GitHub.
  842. You need a (free) log-in on GitHub to get access.
  843. </li>
  844. <li>
  845. Contact us and other users via one of the mailing lists. If you're a regular user and want to discuss openMSX and possible problems,
  846. join our <code>openmsx-user</code> mailing list.
  847. If you want to address the openMSX developers directly,
  848. post a message to the <code>openmsx-devel</code> mailing list.
  849. More info on the
  850. <a class="external" href="https://sourceforge.net/p/openmsx/mailman">openMSX mailing lists</a>,
  851. including an archive of old messages, can be found at SourceForge.
  852. </li>
  853. </ol>
  854. <p>
  855. In all cases, please provide as much information as possible when you describe your
  856. bug or request.
  857. </p>
  858. <h4>GCC / clang</h4><p>For experienced users: if you get a crash or a hang,
  859. try to provide a <code>gdb</code> backtrace.
  860. This will only work if you did not strip the openMSX binary
  861. of its debug symbols.</p>
  862. <p>Another useful thing to do is to install the debug versions of libstdc++ and libc6,
  863. and then run openmsx with an <code>LD_LIBRARY_PATH=/usr/lib/debug</code> exported in the environment.
  864. This will give a more detailed stacktrace, especially in optimized code.
  865. </p>
  866. <h4>Visual C++</h4><p>For experienced users: if you get a crash or a hang,
  867. try to provide a user dump. This will work for any openMSX binary, including
  868. pre-built binaries obtained from <a class="external" href="http://openmsx.org/">openmsx.org</a>.</p>
  869. <p>As of Windows Vista SP1 and later operating systems, you can find user dump files for crashed processes
  870. in the &quot;%LocalAppData%\CrashDumps&quot; directory. The default Windows crash dump
  871. behavior can be further customized as per
  872. <a href="http://msdn.microsoft.com/en-us/library/bb513638(VS.85).aspx">MSDN</a>.</p>
  873. <p>To generate a user dump on demand on any Windows OS, please read
  874. <a class="external" href="http://support.microsoft.com/kb/286350">KB286350</a>.</p>
  875. </body>
  876. </html>