Setting Up Nimble | Qt Creator Manual

- Qt Creator Manual
- Setting Up Nimble
- Qt Creator Manual 4.13.3

Setting Up a Generic Project ◦ Setting Up Meson

# Setting Up Nimble

Nimble is a package manager for the Nim programming language. It is delivered with Nim and uses the Nim compiler to generate executables that are supported on Windows, Linux, and macOS.

To use Qt Creator for Nim development, you need to enable the experimental Nim plugin. Select Help > About Plugins > Other Languages > Nim. Then select Restart Now to restart Qt Creator and load the plugin.

In addition, you have to download and install Nim and set up a Nim kit in Qt Creator.

You can use wizards to create Nim and Nimble projects.

## Setting Up the Development Environment

To configure Qt Creator to build Nim executables:

1. Select Tools > Options > Kits Compilers > Add > Nim to specify the path to the the Nim compiler.
2. Select Apply to add the compiler.
3. Select Kits > Add to add a kit for building applications with Nimble:

   1. In the Name field, specify a name for the kit.
   2. In the Compiler group, Nim field, select the Nim compiler you added above.
   3. Select Apply to add the kit.

## Creating Nimble Applications

To use a wizard to create boilerplate files for a Nim package that is managed with Nimble:

1. Select File > New File or Project > Projects > Non-Qt Project > Nimble Application.
2. Specify the name and location of the application.
3. Select Next.
4. Specify information about your application package.

5. Select Next to create the project.

Setting Up a Generic Project ◦ Setting Up Meson