Skip to content

Installing development environment (IDE)

Nekrodamus edited this page Aug 11, 2023 · 19 revisions

Writing plugins with plugin-sdk implies the use of Microsoft Visual Studio or Code::Blocks. A detailed list of supported development environments can be found below.

IDE Creating a new project Multi-target project Compiler
Visual Studio 2022 Project Wizard Yes msbuild
Visual Studio 2019 Project Wizard Yes msbuild
Visual Studio 2017 Project Wizard Yes msbuild
Visual Studio 2015 Project Wizard Yes msbuild
Code::Blocks Project Wizard Yes mingw-w64

Visual Studio

When installing Visual Studio, make sure that you have selected these components:

  • Common tools for VC++
  • Windows SDK

In case if you want to develop plugins with Windows XP support, you also need these components:

  • Windows XP Support for C++

! The names of these components may differ slightly in different versions of Visual Studio.

Visual Studio 2022

Visual Studio 2022 is distributed in three main versions - Community, Professional and Enterprise.

You can download Visual Studio 2022 at the page https://www.visualstudio.com/downloads/

The Community version is available for free, Professional and Enterprise versions are available for trial period.

In the installer window, select the "Develop classic applications in C++" component, and on the right, in the "Summary" section, select these components:

Img1

For more detailed settings, go to the "Individual components" tab. Here you can enable the Git and GitHub extensions for Visual Studio.

Img2

In the "Language Packages" tab, select the languages ​​you want.

Img3

When you start Visual Studio for the first time, you need to select a color theme, as well as the parameters of the development environment ("Visual C++").

Code::Blocks

Download the latest Code::Blocks version at the official Code::Blocks website (Download the regular version there, usually called as codeblocks-***-setup.exe, where *** is a Code::Blocks version).

Once you launched Code::Blocks installer, click Next on Welcome screen, and accept License Agreement. Select Full installation type on Choose components screen:

Img4

Then, select destination folder and click Install. Run Code::Blocks after installation. Skip Compilers auto-detection window if it was shown.

Now, you need to install mingw-w64 tools. For details, see Installing mingw-64.

After mingw-w64 is installed, open Code::Blocks and go to Settings > Compiler... and open Toolchain executables tab.

Select Compiler's installation directory (a directory where mingw-w64 was installed) and then setup all other parameters as shown on a screen below:

Img5

Save your changes by pressing OK button.

Paths restriction

Try to avoid paths with space characters in Code::Blocks. This applies to project folder path, along with paths to plugin-sdk folder, paths to CLEO SDK and DirectX SDK folders and paths to GTA folders.

See also

Set up plugin-sdk