Get Started

What do I need to start with CLion?

In general to develop in C/C++ with CLion you need:

Downloading and Installing CMake

Downloading and installing CMake is pretty simple, just go to the website, download and install by following the recommended guide there or the on Desktop Wizard.

> cmake
Usage

  cmake [options] <path-to-source>
  cmake [options] <path-to-existing-build>

Specify a source directory to (re-)generate a build system for it in the
current working directory.  Specify an existing build directory to
re-generate its build system.

Run 'cmake --help' for more information.

Downloading and Getting Cygwin

Cygwin is a large collection of GNU and Open Source tools which provide functionality similar to a Linux distribution on Windows

  1. Download file setup-x86_64.exe from the website https://cygwin.com/install.html

  2. Install setup-x86_64.exe file

This is the root directory where Cygwin will be located, usually the recommended C:\ works

Choose where to install LOCAL DOWNLOAD PACKAGES: This is not the same as root directory, but rather where packages (ie. extra C libraries and tools) you download using Cygwin will be located

Follow the recommended instructions until you get to packages screen:

Once you get to the packages screen, this is where you customize what libraries or tools you will install. From here on I followed the above guide but here’s the gist:

From this window, choose the Cygwin applications to install. For our purposes, you will select certain GNU C/C++ packages.

Click the + sign next to the Devel category to expand it.

You will see a long list of possible packages that can be downloaded. Scroll the list to see more packages.

Pick each of the following packages by clicking its corresponding “Skip” marker.

Download and install CLion

Download file CLion-2017.2.exe from website https://www.jetbrains.com/clion/download/#section=windows

Config environment File > Settings... > Build, Execution, Deployment

Run your first C++ program with CLion