Steps to Install Geany IDE
Geany is a lightweight, high-performance Integrated Development Environment system that supports the most used programming languages, i.e C/C++, Java, Python2.x/3/x, etc. It was developed in such a manner that it has the least dependency on other packages, thus it is quite fast, as compared to code-blocks or devc++. Special care has been taken to make it as independent as possible from a particular desktop environment such as KDE, GNOME. This article lists step-by-step instructions to download and set up Geany IDE for the Windows operating system.
- Geany is distributed under GNU General Public License as published by the Free Software Foundation. This GNU General Public License (GNU GPL or simply GPL) is a series of widely used free software licenses that guarantee end-users the freedom to run, study, share, and modify the software as per their needs. It can easily be downloaded from its official website by clicking here.
- There is also the freedom to install only the setup by clicking on geany-1.37.1_setup.exe, version may be different as per the latest update, but the executable file for the Windows OS looks just like that. Geany, by default, has a few plugins included (Classbuilder, Export, Filebrowser, HTML Characters, Save Actions, and Split Window). To download many more plugins along with the executable, scroll a bit down and download the file from the Geany-plugin release.
- In this article, let’s continue with the executable installer only. After downloading, double-click on the file to open the installation wizard.
- This is the setup wizard that will help to install geany-1.37.1 to the system. Click next to proceed.
- Click on I Agree, to agree to the terms and conditions as per the license.
- Take a look at the components it installs by default. There are some minimal runtime dependencies it installs by default. A good tip is to have a look and click on next, as it is not recommended to play with these components.
- Select any desired location to install geany.
- Select whether it is required o install the start menu shortcut for Geany. If not, then one can mark the box which reads Do not create shortcuts. Click on install to complete the installation process.
- TDM-GCC is a compiler suite for Windows. It’s a unique combination of the latest version of GCC compiler and some patches for it to run smoothly on Windows. It is available in a 32/64-bit binary version, which can be downloaded as per the requirements.
- Let’s download this wonderful, lightweight compiler suite from here. Click on the blue label which looks similar to that-
- Open the executable installer, then afterward click on Create, which will appear like this-
- A dialogue box will appear, prompting some essential downloads.
- Next, it will take forward to select which binary one wants to install. Select the option depending on the architecture.
- Next, if it is required to install it at any other location, other than C drive, you can choose here.
- The next step is to select or deselect the components you want to install along with this compiler.
- It is a command-line tool, so, it must be configured to be used at build/compile time in a visual editor.
- Thankfully, TDM-GCC does it by default. In the components menu that appears just before the installation starts, it can be noticed that Add to PATH was selected by default.
- The installation process is now complete. Move forward to writing your first program on Geany IDE.
Build/Compile on Geany: Below is the code to write a hello world or two number sum program on the IDE:
Hello world! Geany is successfully installed and integrated with its pal TDM-GCC.
Steps to Compile Program:
- Save it with any valid name, with .cpp extension.
- Find a button just in the toolbar area that reads Compile along with Build and Execute.
- Click on Compile, if the code is written correctly, it will produce a message similar to this.
- If there is an error in your code, fix it, and compile it again.
- When the compilation process is complete, click on the Build button. Again, a message will appear similar to this.
- After doing this, click on the Execute button, which will open a terminal/shell with the output written above.