Install:Windows: Difference between revisions

From ENIGMA
Jump to navigation Jump to search
m (Undo revision 31836 by RobertBColton (talk))
m (git is a logical group so use a colon only which means don't expand x86_64)
Line 11: Line 11:
:- '''NOTE:''' You do not need to type the entire command below. Both Command Prompt and MSYS2 have a right-click menu option that allows you to just paste the command from this wiki page.
:- '''NOTE:''' You do not need to type the entire command below. Both Command Prompt and MSYS2 have a right-click menu option that allows you to just paste the command from this wiki page.
:- '''NOTE:''' These packages are for 64 bit, if you want 32 bit then you need to install the same packages but replace <code>:x</code> with <code>:i</code> in the name of each package.
:- '''NOTE:''' These packages are for 64 bit, if you want 32 bit then you need to install the same packages but replace <code>:x</code> with <code>:i</code> in the name of each package.
:- The Pacboy command you will need to run is: <syntaxhighlight lang="bash">pacboy -S git:x toolchain:x boost:x protobuf:x rapidjson:x pugixml:x yaml-cpp:x openal:x dumb:x libvorbis:x libogg:x flac:x mpg123:x libsndfile:x libgme:x sfml:x gtk2:x zlib:x libffi:x box2d:x bullet:x glew:x glm:x alure:x</syntaxhighlight>
:- The Pacboy command you will need to run is: <syntaxhighlight lang="bash">pacboy -S git:x toolchain:x boost:x protobuf:x rapidjson:x pugixml:x yaml-cpp:x openal:x dumb:x libvorbis:x libogg:x flac:x mpg123:x libsndfile: libgme:x sfml:x gtk2:x zlib:x libffi:x box2d:x bullet:x glew:x glm:x alure:x</syntaxhighlight>
* '''NOTE:''' If you want to use DirectX for graphics, instead of OpenGL, you'll want to make sure you have the DirectX 9.0 or higher End User Runtime installed.
* '''NOTE:''' If you want to use DirectX for graphics, instead of OpenGL, you'll want to make sure you have the DirectX 9.0 or higher End User Runtime installed.
:- https://www.microsoft.com/en-us/download/details.aspx?id=35
:- https://www.microsoft.com/en-us/download/details.aspx?id=35

Revision as of 20:12, 1 October 2018

The official logo of Windows based operating systems and environments.

MSYS2

These steps will help you configure an ENIGMA setup using the modern MSYS2 project. This setup better facilitates both 32-bit and 64-bit compilation.

  • First, you will want to download and install MSYS2 by following these instructions (all the way to step 8): http://www.msys2.org/
- NOTE: The x86_64 download button will support compilation of both 32-bit and 64-bit games.

Dependencies

  • Reopen MSYS2 MinGW 64-bit to use the included Pacboy to obtain the packages used by ENIGMA for building games, which includes things like OpenAL. You will also need to install Git using Pacboy so you can clone the ENIGMA source code from GitHub to complete this installation.
- NOTE: You do not need to type the entire command below. Both Command Prompt and MSYS2 have a right-click menu option that allows you to just paste the command from this wiki page.
- NOTE: These packages are for 64 bit, if you want 32 bit then you need to install the same packages but replace :x with :i in the name of each package.
- The Pacboy command you will need to run is:
pacboy -S git:x toolchain:x boost:x protobuf:x rapidjson:x pugixml:x yaml-cpp:x openal:x dumb:x libvorbis:x libogg:x flac:x mpg123:x libsndfile: libgme:x sfml:x gtk2:x zlib:x libffi:x box2d:x bullet:x glew:x glm:x alure:x
  • NOTE: If you want to use DirectX for graphics, instead of OpenGL, you'll want to make sure you have the DirectX 9.0 or higher End User Runtime installed.
- https://www.microsoft.com/en-us/download/details.aspx?id=35

Get ENIGMA

  • Use the change directory command (cd path/to/directory) to change MSYS2 to the directory you want ENIGMA installed in.
  • Then simply run this command: git clone https://github.com/enigma-dev/enigma-dev.git
  • Change directories into the cloned enigma-dev folder now using cd enigma-dev
  • Now simply run make to build the compiler and its backend into compileEGMf.dll, which is used by the CLI and any IDE for ENIGMA.
  • Optional: You can then run make emake if you also intend to use the CLI for building games.

Configure an IDE

  • Finally, you will want LateralGM for editing games which you can use by installing Java and then download lateralgm by running ./install.sh
  • Once you have LateralGM setup you can simply run it using: java -jar lateralgm.jar.
- NOTE: This method of launching LGM using MSYS2 is recommended over double-clicking the jar because the environment will be configured correctly so that it includes MinGW for ENIGMA to find it.