Install:Windows: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 1: | Line 1: | ||
[[File:Windows.png|thumb|200px|The official logo of Windows based operating systems and environments.]] | [[File:Windows.png|thumb|200px|The official logo of Windows based operating systems and environments.]] | ||
=== MSYS2 === | === MSYS2 === |
Revision as of 11:27, 16 June 2018
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: 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 Pacman to obtain the packages used by ENIGMA for building games, which includes things like OpenAL. You will also need to install Git using Pacman 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
x86_64
withi686
in the name of each package. - - The Pacman command you will need to run is:
pacman -S base-devel git mingw-w64-x86_64-toolchain mingw-w64-x86_64-boost mingw-w64-x86_64-openal mingw-w64-x86_64-dumb mingw-w64-x86_64-libvorbis mingw-w64-x86_64-libogg mingw-w64-x86_64-flac mingw-w64-x86_64-mpg123 mingw-w64-x86_64-libsndfile mingw-w64-x86_64-libgme mingw-w64-x86_64-sfml mingw-w64-x86_64-gtk2 mingw-w64-x86_64-zlib mingw-w64-x86_64-libffi mingw-w64-x86_64-box2d mingw-w64-x86_64-bullet mingw-w64-x86_64-glew mingw-w64-x86_64-alure
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
- - If you are not familiar with git then you may simply download an archive from: https://github.com/enigma-dev/enigma-dev/archive/master.zip
- - NOTE: If you use the archive method then you will not be able to use git to update to the latest source code version later and will have to manually redownload it.
- Change directories into the 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.jar
andenigma.jar
from: Install:Extra Packages. You will also needjna.jar
from: https://github.com/java-native-access/jna#jna
- - NOTE: You will want to download
jna.jar
notjna-platform.jar
which is the same thing, but bigger because it includes helper methods that LateralGM does not require or use. - - If any of the following directories don't exist, use
mkdir directoryname
to create them. - -
lateralgm.jar
goes inenigma-dev/lateralgm.jar
- -
enigma.jar
goes inenigma-dev/plugins/enigma.jar
- -
jna.jar
goes inenigma-dev/plugins/shared/jna.jar
- 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.