Skip to content

For anyone using windows Clion not familiar C++ get stuck on the first step.. #11

@eterlan

Description

@eterlan

Windows build instructions using CLion
(tested on CLion 2018.3)
Open CLion, then do File -> Import Project..
In the popped out window, find and select the project folder ...\DrawSVG, click OK, click Open Existing Project, then select New Window
Make sure the drop down menu on top right has drawsvg selected (it should say drawsvg | Debug). Then open the drop down menu again and go to Edit Configurations..
Fill in Program arguments, say, ./svg/basic, then click Apply and close the popup
Now you should be able to click on the green run button on top right to run the project.

  1. Acutally the program arguments should by ../svg/basic, because in the view of drawSVG.exe, the root is parent folder.
  2. Mingw doesn't work because cmake wouldn't include FreeType as subdirectory for some reason ( compatibility maybe? IDK). So choose visual studio as toolchain in the Cmake setting.
  3. Have fun!

version:
Clion 2021.2
VS2022 preview

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions