User Tools

Site Tools


en:tutorials:compiling_orx_with_mingw32_gmake

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:tutorials:compiling_orx_with_mingw32_gmake [2018/07/06 16:44 (15 months ago)]
xenonlab
en:tutorials:compiling_orx_with_mingw32_gmake [2019/07/18 02:33 (9 weeks ago)] (current)
sausage
Line 1: Line 1:
-====== Compiling Orx with mingw32/gmake on Windows ====== +====== Compiling Orx with MinGW-w64/gmake on Windows ======
- +
-<WRAP center round tip 60%> +
-Note: when cloning orx and running it's accomapanying setup file, a windows gmake build project is automatically created. These instructions will help you do this manually if you ever need to remake your own. +
-</​WRAP>​+
  
 There are 5 steps required to build Orx using gmake There are 5 steps required to build Orx using gmake
   - Getting Orx from source   - Getting Orx from source
-  - Getting ​mingw32 ​(not mingw64)+  - Getting ​MinGW-w64 ​(not mingw32)
   - Updating the PATH environment variable   - Updating the PATH environment variable
   - Creating a build project for gmake   - Creating a build project for gmake
Line 18: Line 14:
  
  
-===== Getting ​mingw32 ​=====+===== Getting ​MinGW-w64 ​=====
  
-Orx works with mingw32. Do not download the mingw64 ​projectOrx does not support this compiler ​yet. You can download ​an installer from: https://sourceforge.net/projects/mingw/​files/​Installer+Orx works with MinGW-w64. Do not download the Mingw32 ​projectOrx does not support this compiler ​anymore. You can download ​the installer from: https://mingw-w64.org/doku.php/download/mingw-builds 
-You will want the mingw-get-setup.exe file. +You will want the ''​mingw-w64-install.exe'' ​file. 
  
-  - Run the mingw-get-setup.exe file. +<WRAP center round tip 80%> 
-  - Choose an installation directory. To avoid dramas, ​don'​t ​choose a folder ​with spaces in it. Something like C:\MinGW is best. +The current minimum version of MinGW supported by Orx is 8.1.0. 
-  ​- Turn off the "start menu" and "​on ​the desktop"​ options+</​WRAP>​ 
-  - Continue + 
-  The application will download xml catalogues for a minute or two+ 
-  - Continue +  * Run the ''​mingw-w64-install.exe'' ​file. 
-  ​- Under basic setup, choose ​mingw32-base and mingw32-gcc-g++. +  ​* If you want to install the 64-bit compiler, select the following options: 
-  ​Select the Installation menu / Apply Changes+ 
-  ​- The compiler will be installed into the folder you chose. +{{ :​en:​tutorials:​install-mingw-64bit.png?​nolink |}} 
- + 
 +  * Choose an installation directory. To avoid dramas, choose a folder ​without ​spaces in the path. Something like ''​C:\MinGW-w64\x86_64-8.1.0-win32-seh'' ​is best. 
 +  ​* Continue with the rest of the installation
 +  ​* If you want to install the 32-bit compiler as well, select the following options: 
 + 
 +{{ :​en:​tutorials:​install-mingw-32bit.png?nolink |}} 
 + 
 +  ​* Choose an installation directory. To avoid dramas, choose ​a folder without spaces in the path. Something like ''​C:​\MinGW-w64\i686-8.1.0-win32-dwarf''​ is best
 +  ​* Continue with the rest of the installation.
  
 ===== Updating the PATH environment variable ===== ===== Updating the PATH environment variable =====
Line 38: Line 42:
  
   - Edit the System Environment Variables ​   - Edit the System Environment Variables ​
-  - Add your mingw bin folder ​location ​into the PATH list, ie: C:​\MinGW\bin ​or C:\MinGW-5.3.0\bin (depending where you installed it)+  - Add your MinGW bin folder ​locations ​into the PATH list, ie: ''​C:\MinGW-w64\x86_64-8.1.0-win32-seh\bin''​ and ''​C:\MinGW-w64\i686-8.1.0-win32-dwarf\bin'' ​(depending where you installed it)
  
  
 ===== Creating a build project for gmake ===== ===== Creating a build project for gmake =====
  
-When first cloning Orx, this project should already be created for you. If so, skip this section.+When first cloning Orx, this project should already be created for you at: ''​C:​\[somewhere]\orx\code\build\windows\gmake''​.
  
-  - Open a command window (cmd.exe) +If not, run the ''​setup.bat''​ script in the root of the Orx repo folder.
-  - cd into the C:​\[somewhere]\orx\code\build ​folder +
-  - premake4.exe gmake+
  
-Expected ​output:+If you need to run it, the expected ​output ​is:
   
  Building configurations...  Building configurations...
Line 63: Line 65:
  
   - cd into the gmake folder   - cd into the gmake folder
-  - mingw32-make+  - mingw32-make ​(to compile the default configuration - debug/​64-bit)
  
 Expected output Expected output
Line 149: Line 151:
  
  
-===== Profile ​and Release builds ​===== +===== Other configurations ​and 32-bit / 64-bit ​=====
- +
-If you wish to build the other configurations,​ you can do so with: +
- +
-mingw32-make config=profile +
- +
-and...+
  
-mingw32-make config=release+If you wish to build the other configurations,​ this is the complete list:
  
-... respectively.+  * mingw32-make config=debug64 
 +  * mingw32-make config=profile64 
 +  * mingw32-make config=release64 
 +  * mingw32-make config=debug32 
 +  * mingw32-make config=profile32 
 +  * mingw32-make config=release32
  
  
Line 175: Line 176:
 A. Try compiling again with debug messages again to get all possible information:​ A. Try compiling again with debug messages again to get all possible information:​
  
-''​mingw32-make -d config=debug''​+''​mingw32-make -d config=debug64''​ or ''​mingw32-make -d config=debug32''​
  
  
Line 184: Line 185:
 ''​C:​\Program Files (x86)\Git\bin''​ ''​C:​\Program Files (x86)\Git\bin''​
  
-Reopen your windows console ​and try compiling again.+Reopen your Windows Console ​and try compiling again.
  
 Q. You don't get any specific errors in the debug output. Q. You don't get any specific errors in the debug output.
  
-A. Ensure you passed the correct config value. It must be either ''​debug'',​ ''​profile'',​ ''​release''​ or not specified. If you typed any other value, you will get empty output like:+A. Ensure you passed the correct config value. It must be either ''​debug32'',​ ''​profile32'',​ ''​release32'',​ ''​debug64'',​ ''​profile64'',​ ''​release64''​ or not specified. If you typed any other value, you will get empty output like:
  
 <​code>​ <​code>​
en/tutorials/compiling_orx_with_mingw32_gmake.1530895455.txt.gz · Last modified: 2018/07/06 16:44 (15 months ago) by xenonlab