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

en:tutorials:compiling_orx_with_mingw32_gmake [2019/07/18 02:33 (10 months ago)]
sausage
en:tutorials:compiling_orx_with_mingw32_gmake [2019/07/18 05:33 (10 months ago)]
Line 1: Line 1:
-====== Compiling Orx with MinGW-w64/​gmake on Windows ====== 
- 
-There are 5 steps required to build Orx using gmake 
-  - Getting Orx from source 
-  - Getting MinGW-w64 (not mingw32) 
-  - Updating the PATH environment variable 
-  - Creating a build project for gmake 
-  - Compiling 
- 
- 
-===== Getting Orx from source ===== 
- 
-This step is already covered under [[en:​tutorials:​cloning_orx_from_github|cloning orx]]. Please follow those instructions first. 
- 
- 
-===== Getting MinGW-w64 ===== 
- 
-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.  
- 
-<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. 
-  * If you want to install the 64-bit compiler, select the following options: 
- 
-{{ :​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 ===== 
- 
- 
-  - Edit the System Environment Variables ​ 
-  - 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 ===== 
- 
-When first cloning Orx, this project should already be created for you at: ''​C:​\[somewhere]\orx\code\build\windows\gmake''​. 
- 
-If not, run the ''​setup.bat''​ script in the root of the Orx repo folder. 
- 
-If you need to run it, the expected output is: 
-  
- Building configurations... 
- Running action '​gmake'​... 
- Generating windows/​gmake/​Makefile... 
- Generating windows/​gmake/​orx.make... 
- Generating windows/​gmake/​orxLIB.make... 
- Generating windows/​gmake/​Bounce.make... 
- Done. 
-  
- 
-===== Compiling ===== 
- 
-  - cd into the gmake folder 
-  - mingw32-make (to compile the default configuration - debug/​64-bit) 
- 
-Expected output 
- 
-<​code>​ 
-"==== Building orxLIB (debug) ====" 
-Creating ../​../​../​lib/​dynamic 
-Creating obj/​Debug/​orxLIB 
-orxPlugin_EmbeddedList.cpp 
-orxAnim.c 
-orxAnimPointer.c 
-orxAnimSet.c 
-orxModule.c 
-orxType.c 
-orxClock.c 
-orxCommand.c 
-orxConfig.c 
-orxConsole.c 
-orxEvent.c 
-orxLocale.c 
-orxResource.c 
-orxSystem.c 
-orxThread.c 
-orxDebug.c 
-orxFPS.c 
-orxProfiler.c 
-orxDisplay.c 
-orxFont.c 
-orxGraphic.c 
-orxScreenshot.c 
-orxText.c 
-orxTexture.c 
-orxFile.c 
-orxInput.c 
-orxJoystick.c 
-orxKeyboard.c 
-orxMouse.c 
-orxParam.c 
-orxMath.c 
-orxVector.c 
-orxBank.c 
-orxMemory.c 
-orxFrame.c 
-orxFX.c 
-orxFXPointer.c 
-orxObject.c 
-orxSpawner.c 
-orxStructure.c 
-orxTimeLine.c 
-orxBody.c 
-orxPhysics.c 
-orxPlugin.c 
-orxCamera.c 
-orxRender.c 
-orxShader.c 
-orxShaderPointer.c 
-orxViewport.c 
-orxSound.c 
-orxSoundPointer.c 
-orxSoundSystem.c 
-orxHashTable.c 
-orxLinkList.c 
-orxString.c 
-orxTree.c 
-Linking orxLIB 
-Running post-build commands 
-cmd /c copy /Y ..\..\..\lib\dynamic\orx*.dll ..\..\..\bin 
-..\..\..\lib\dynamic\orxd.dll 
-        1 file(s) copied. 
-"==== Building orx (debug) ====" 
-Creating obj/​Debug/​orx 
-orxMain.c 
-Linking orx 
-"==== Building Bounce (debug) ====" 
-Creating ../​../​../​bin/​plugins/​demo 
-Creating obj/​Debug/​Bounce 
-orxBounce.c 
-Linking Bounce 
-</​code>​ 
- 
- 
-===== Your Orx Library ===== 
- 
-If you check in the C:​\[somewhere]\orx\code\lib\dynamic folder, you'll see an liborxd.a and orxd.dll 
- 
- 
-===== Other configurations and 32-bit / 64-bit ===== 
- 
-If you wish to build the other configurations,​ this is the complete list: 
- 
-  * mingw32-make config=debug64 
-  * mingw32-make config=profile64 
-  * mingw32-make config=release64 
-  * mingw32-make config=debug32 
-  * mingw32-make config=profile32 
-  * mingw32-make config=release32 
- 
- 
-===== Troubleshooting ===== 
- 
-Q. You get no errors, but no information either, just output like: 
- 
-<​code>​ 
-"==== Building orxLIB (debug) ====" 
-"==== Building orx (debug) ====" 
-"==== Building Bounce (debug) ====" 
-</​code>​ 
- 
- 
-A. Try compiling again with debug messages again to get all possible information:​ 
- 
-''​mingw32-make -d config=debug64''​ or ''​mingw32-make -d config=debug32''​ 
- 
- 
-Q. If you cannot compile, and you see something in the messages or logs regarding: C:\Program Files (x86)\Git\bin\sh.exe ​ 
- 
-A. This is because you have installed Git Bash and it has added C:\Program Files (x86)\Git\bin to your windows path. Therefore git binaries are available to your windows console and are clashing with mingw. Remove the path from your Environment Variables: 
- 
-''​C:​\Program Files (x86)\Git\bin''​ 
- 
-Reopen your Windows Console and try compiling again. 
- 
-Q. You don't get any specific errors in the debug output. 
- 
-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>​ 
-"==== Building orxLIB (wrong) ====" 
-"==== Building orx (wrong) ====" 
-"==== Building Bounce (wrong) ====" 
-</​code>​ 
- 
-  ​ 
  
en/tutorials/compiling_orx_with_mingw32_gmake.txt ยท Last modified: 2019/07/18 05:33 (10 months ago) (external edit)