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 [2019/07/17 12:33 (12 months ago)]
sausage Changes for installing mingw-w64. Gmake needs to be tested.
en:tutorials:compiling_orx_with_mingw32_gmake [2019/07/18 02:33 (12 months ago)]
sausage
Line 1: Line 1:
 ====== Compiling Orx with MinGW-w64/​gmake on Windows ====== ====== Compiling Orx with MinGW-w64/​gmake on Windows ======
- 
-<WRAP center round tip 60%> 
-Note: when cloning orx and running it's accompanying 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
Line 22: Line 18:
 Orx works with MinGW-w64. Do not download the Mingw32 project, Orx does not support this compiler anymore. You can download the installer from: https://​mingw-w64.org/​doku.php/​download/​mingw-builds Orx works with MinGW-w64. Do not download the Mingw32 project, Orx 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-w64-install.exe''​ file.  You will want the ''​mingw-w64-install.exe''​ file. 
 +
 +<WRAP center round tip 80%>
 +The current minimum version of MinGW supported by Orx is 8.1.0.
 +</​WRAP>​
 +
  
   * Run the ''​mingw-w64-install.exe''​ file.   * Run the ''​mingw-w64-install.exe''​ file.
Line 46: Line 47:
 ===== 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 66: 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 152: 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 178: 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 187: 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.txt · Last modified: 2019/07/18 05:33 (12 months ago) (external edit)