<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Compile_on_MinGW</id>
	<title>Compile on MinGW - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.labrps.com/index.php?action=history&amp;feed=atom&amp;title=Compile_on_MinGW"/>
	<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Compile_on_MinGW&amp;action=history"/>
	<updated>2026-04-08T12:19:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>https://wiki.labrps.com/index.php?title=Compile_on_MinGW&amp;diff=2429&amp;oldid=prev</id>
		<title>LabRPS: Created page with &quot; {{TOCright}}  This guide will walk through the steps necessary to build LabRPS on Windows using the MSYS2/MinGW environment. Basic familiarity with Bash shell commands will be useful for understanding what each step does, but following the guide by rote should result in a working build even if you don&#039;t understand exactly what you did to get it.  === Before you start ===   Download and install [https://www.msys2.org MSYS2] if you have not already. When launching MSYS2,...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.labrps.com/index.php?title=Compile_on_MinGW&amp;diff=2429&amp;oldid=prev"/>
		<updated>2024-11-26T19:05:36Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot; {{TOCright}}  This guide will walk through the steps necessary to build LabRPS on Windows using the MSYS2/MinGW environment. Basic familiarity with Bash shell commands will be useful for understanding what each step does, but following the guide by rote should result in a working build even if you don&amp;#039;t understand exactly what you did to get it.  === Before you start ===   Download and install [https://www.msys2.org MSYS2] if you have not already. When launching MSYS2,...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{{TOCright}}&lt;br /&gt;
&lt;br /&gt;
This guide will walk through the steps necessary to build LabRPS on Windows using the MSYS2/MinGW environment. Basic familiarity with Bash shell commands will be useful for understanding what each step does, but following the guide by rote should result in a working build even if you don&amp;#039;t understand exactly what you did to get it.&lt;br /&gt;
&lt;br /&gt;
=== Before you start === &lt;br /&gt;
&lt;br /&gt;
Download and install [https://www.msys2.org MSYS2] if you have not already. When launching MSYS2, use the &amp;quot;MSYS2 MinGW 64-bit&amp;quot; runtime unless you know what you are doing and have a specific reason not to. If you use the UCRT console, make sure to adapt your installation to use the UCRT packages instead.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pacman -Syu&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and then relaunching and running&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pacman -Su&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
before proceeding.&lt;br /&gt;
&lt;br /&gt;
=== Install basic development tools === &lt;br /&gt;
&lt;br /&gt;
In all of the following steps, when prompted by MSYS2&amp;#039;s shell, accept the default installations of everything by pressing &amp;quot;Enter&amp;quot; when asked.&lt;br /&gt;
&lt;br /&gt;
First, install the mingw-w64 GCC toolchain:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pacman -S --needed base-devel mingw-w64-x86_64-toolchain mingw-w64-x86_64-cmake mingw-w64-x86_64-ninja&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will probably take several minutes to complete, as the compiler toolchain is quite large.&lt;br /&gt;
&lt;br /&gt;
Install git:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pacman -S git&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Close your current console window and relaunch the MSYS2 MinGW 64 console (in a standard installation this will be in your Start menu in the MSYS2 folder).&lt;br /&gt;
&lt;br /&gt;
=== Check out the LabRPS sources === &lt;br /&gt;
&lt;br /&gt;
To get the LabRPS source code, clone it from the main git repository:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone https://github.com/LabRPS/LabRPS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you do not want to compile the latest HEAD, once you have the source you can check out a specific tag:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd LabRPS&lt;br /&gt;
git checkout tags/1.0 -b releases/LabRPS-1-0&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Or a specific pull request (in this example, PR 1234):&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cd LabRPS&lt;br /&gt;
git fetch origin pull/1234/head:pr/1234&lt;br /&gt;
git checkout pr/1234&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that not all versions can be compiled on MSYS2, several changes were required to enable it and these were not present in the 0.19 or earlier versions. For example, the 0.19.3 tag will not be compilable.&lt;br /&gt;
&lt;br /&gt;
=== Install required libraries === &lt;br /&gt;
&lt;br /&gt;
LabRPS depends on many 3rd-party libraries for its functionality. They may be installed individually, or as a single unified command.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--T:101--&amp;gt;&lt;br /&gt;
Now, install the following required dependencies using pacman:&lt;br /&gt;
&lt;br /&gt;
* mingw-w64-x86_64-qt5&lt;br /&gt;
* mingw-w64-x86_64-med&lt;br /&gt;
* mingw-w64-x86_64-swig&lt;br /&gt;
* mingw-w64-x86_64-qtwebkit&lt;br /&gt;
* mingw-w64-x86_64-python-ply&lt;br /&gt;
* mingw-w64-x86_64-python-six&lt;br /&gt;
* mingw-w64-x86_64-python-yaml&lt;br /&gt;
* mingw-w64-x86_64-python-numpy&lt;br /&gt;
* mingw-w64-x86_64-python-matplotlib&lt;br /&gt;
* mingw-w64-x86_64-pyside2-qt5&lt;br /&gt;
* mingw-w64-x86_64-python-markdown&lt;br /&gt;
* mingw-w64-x86_64-python-pygit2&lt;br /&gt;
&lt;br /&gt;
The following is a single command to install everything in the list above:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
pacman -S mingw-w64-x86_64-qt5 mingw-w64-x86_64-med mingw-w64-x86_64-swig mingw-w64-x86_64-qtwebkit mingw-w64-x86_64-pyside2-qt5 mingw-w64-x86_64-python-ply mingw-w64-x86_64-python-six mingw-w64-x86_64-python-yaml mingw-w64-x86_64-python-numpy mingw-w64-x86_64-python-matplotlib mingw-w64-x86_64-python-markdown mingw-w64-x86_64-python-pygit2&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Build LabRPS === &lt;br /&gt;
&lt;br /&gt;
Make a directory for the build: note this is typically not a subdirectory of the source directory (it is often useful to be able to delete either the source or the build directory independently).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
mkdir LabRPS-build&lt;br /&gt;
cd LabRPS-build&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Run cMake:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake ../LabRPS&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
And finally:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
cmake --build ./&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
{{Userdocnavi}}&lt;br /&gt;
[[Category:Developer_Documentation]]&lt;br /&gt;
[[Category:Developer]]&lt;/div&gt;</summary>
		<author><name>LabRPS</name></author>
	</entry>
</feed>