Using CLion on Windows
Last updated: 2022-02-20
- Download MSYS2 from https://www.msys2.org/ and follow the installation instructions there.
- Execute the following command in a MSYS2 Shell to install git:
pacman -S git
- Add
C:\msys64\usr\bin\
to your windowsPATH
environment variable. - Download and install CLion if not already done.
- Clone the repository by
git clone --recurse-submodules -j8 https://github.com/bb1950328/BrickSim.git
- Clone the repository by
- Run
setup_workspace.sh
- Open CLion and open the directory where you cloned BrickSim into
- If you haven't configured any toolchains yet, a popup named "Open Project Wizard" will open. Click on the blue text "MinGW".
- Enter a path in the "Environment" field. Usually, this is
C:\msys64\mingw64
. You can leave the rest like it is and press "Next". - On the next screen, you have to change the "Build directory" to
cmake-build/debug64
. If you want, you can also add a "Release" configuration: - After that, you can click "Finish". You may have to set the Git executable path in the settings. On my system, it was
C:\msys64\usr\bin\git.exe
. - You should now be able to run BrickSim by clicking the green play symbol.