Project CS 3377
Getting Set Up With CLion (C++ IDE) NOTE: Do this in MacOS/Ubuntu Many of the functions we’re using will not work in Windows, so please follow these instructions in MacOS or your Linux VM (and, as you’ll see elsewhere, MacOS users will probably need to use Ubuntu as there are one or two #include differences between the two).
Getting a License If you’ve used IntelliJ before, CLion should feel familiar. CLion, unlike IntelliJ, does not have a free “community” edition…but for educational use you can get CLion for free. Here’s how:
1. Go to https://www.jetbrains.com/shop/eform/students. 2. Fill in the application using your UTD email account, accept the terms, and click apply. 3. You should get an email with further instructions. Follow them to prove you do want the
license. 4. Another email should arrive shortly (mine came in maybe a minute) with an approval
and a link that lets you either link this license to an account or create a new one. 5. Once your account is set up/linked, you’ll get to the download page
(https://account.jetbrains.com/licenses/assets). From there you can download CLion (and other programs if you so desire).
Install CMake, compilers, and CLion (This is for Ubuntu. The same issue doesn’t seem to exist on macOS.)
1. In the Terminal: a. sudo apt-get install cmake b. sudo apt-get install gcc c. sudo apt-get install g++ d. sudo apt-get install git
2. Install CLion from the Ubuntu Software app.
Additional Setup 1. (MacOS only, if anywhere) When CLion runs for the first time, you’ll have your choice of
plugins. The only ones you’ll need are Git and GitHub (both under “Version Control”). You can disable the rest if you’d like.
2. Once you’re done with plugins, enter your JetBrains credentials to give you a 1-year license
3. At this point Mac users should be fully set up, though you should specify the compiler to use. (Your projects will be compiled for grading with g++, an open-source compiler, and using g++ as you code will make for smoother grading.)
a. You should already have g++ installed, at /usr/bin/g++. You can verify this by running Terminal and typing “which g++”.
i. If you don’t have g++ installed, the easiest way to get it is to install Xcode.
ii. Go to CLion’s preferences, select “Build, Execution, and Deployment”, then “Toolchains.”
iii. Type in the path (/usr/bin/g++) into the C++ compiler line.