Both sides previous revisionPrevious revisionNext revision | Previous revision |
tutorials:getting_codelite_for_windows [2017/04/08 23:28 (7 years ago)] – emphasis sausage | en:tutorials:orx:windows:getting_codelite_for_windows [2022/06/28 23:18 (22 months ago)] (current) – sausage |
---|
These are: | These are: |
| |
- Codelite 9.2.0 minimum is required | - Codelite 9.0.0 minimum is required |
- You need to use a specific version and type of MinGW. | - You need to use a specific version and type of MinGW. |
| |
While there you can choose to donate to the project. | While there you can choose to donate to the project. |
| |
The version required must be at least 9.2.0. Although versions like the 6.x series will compile Orx projects fine, you will have problems trying to attach a debugger. So get the specific version or higher. | The version required must be at least 9.0.0. Although versions like the 6.x series will compile Orx projects fine, you will have problems trying to attach a debugger. So get the specific version or higher. |
| |
<WRAP center round important 90%> | <WRAP center round important 90%> |
| |
- [[http://mingw.org|MinGW]] - this is the original vanilla project. | - [[http://mingw.org|MinGW]] - this is the original vanilla project. |
- [[http://mingw-w64.org|Mingw-w64]] - this is a seperate project that provides a 64 bit version of MinGW. | - [[https://mingw-w64.org/doku.php/download/mingw-builds|Mingw-w64]] - this is a separate project that provides both 64-bit and 32-bit versions of MinGW. |
- [[http://tdm-gcc.tdragon.net|TDM-GCC]] - this is a variation of the original MinGW project and is traditionally packaged with older Codelite and Code::Blocks IDEs | - [[http://tdm-gcc.tdragon.net|TDM-GCC]] - this is a variation of the original MinGW project and is traditionally packaged with older Codelite and Code::Blocks IDEs |
| |
Since Orx [[https://bitbucket.org/orx/orx/commits/0e32f26ac0336b8b0a1f05583f9547de3ca87026|build commit 0e32f26]], TDM versions of MinGW can no longer be used. Nor are Mingw-w64 versions supported by Orx as yet. | Additionally, when you install newer versions of Codelite, it will ask you to Scan or Install a MinGW. It will install the latest if you choose to. Currently, we recommended to pause at that point and follow the instructions below to ensure you have the right version of MinGW. |
| |
Therefore, the vanilla version of MinGW is the correct one to use from here on. | Orx no longer supports the TDM versions or vanilla versions of MinGW. |
| |
At the time of writing, 5.3.0 is the version to use. But to check on the current version requirements, visit the [[https://bitbucket.org/orx/orx/src/28f21d66546d59938e34a316c0dcca8795ad2338/README.md?at=default&fileviewer=file-view-default|Orx readme here]] (see under the heading: Supported Platforms). | **MinGW-w64 is the correct one to use for Orx.** |
| |
| At the time of writing, 8.1.0 is the version to use. But to check on the current version requirements, visit the [[https://github.com/orx/orx#supported-platforms|Orx supported platforms here]]. |
| |
| |
===== Getting MinGW ===== | ===== Getting MinGW ===== |
| |
Start by downloading the MinGW installer at: https://sourceforge.net/projects/mingw/files/latest/download | Start by downloading the MinGW-w64 installer at: https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/installer/mingw-w64-install.exe/download |
| |
Run the installer and go through the steps. These are outlined on this page: http://orx-project.org/wiki/tutorials/compiling_orx_with_mingw32_gmake | Run the installer and go through the steps. These are outlined on this page: [[en:tutorials:orx:windows:compiling_orx_with_mingw32_gmake|Compiling Orx with MinGW-w64/gmake on Windows]], but only follow the steps titled **Getting MinGW-w64** and **Updating the PATH environment variable**. |
| |
Follow the steps titled **Getting mingw32** and **Updating the PATH environment variable**. | |
| |
| |
===== Telling Codelite about the new Compiler ===== | ===== Telling Codelite about the new Compiler ===== |
| |
- In Codelite, go to Settings / Build Settings. | * In Codelite, go to Settings / Build Settings. |
- Click the orange "Scan for compilers" button. | * Click the "Scan for compilers" button (latest versions of codelite, this is a magnify icon). |
- The MinGW compiler you installed will become listed. | * The MinGW compiler you installed will become listed. |
- Double click it to set as the default compiler. | * If you installed both 32 and 64-bit compilers, it may not detect them both. If not, add it manually with the add button. |
- Ok to close the dialog. | * Once both compilers are added, edit the one called: ''gnu g++''. We are going to make this one switchable between 32 and 64-bit |
- Open your project, or Orx project. You can build your Workspace. You might be prompted to set a compiler for your project, if so, choose your compiler from the dropdown again. | * Change the settings to the following: |
| |
| {{ tutorials:tooling:codelite-compiler-settings.png?nolink |}} |
| |
| * Ok to close the dialog. |
| * Open your project, or Orx library project (for building orx itself). You can build your Workspace. You might be prompted to set a compiler for your project, if so, choose your compiler as ''gnu g++'' from the dropdown again. |
| |
| Now you can compile any of the 32-bit or 64-bit build configurations and Codelite will know which version of the MinGW compiler to use. |
| |
You're all good to go. | You're all good to go. |
| |