Guide to download Graphviz graph project, written on the DOT description language from the CthulhuOnIce/SS13-Codebases network.
A program may require one or more other programs to run (the "dependencies").
In OS Windows Graphviz app can be installed via:
- Manual install from official website;
- chocolatey (needs to install it first, plus
choco.exe
needs to be in thePATH
environment variable):
CHOCO.EXE install graphviz
In OS Ubuntu Graphviz app can be installed via two simple commands:
$ sudo apt update -y && sudo apt upgrade -y
$ sudo apt-get install graphviz libgraphviz-dev pkg-config -y
Visual Studio Code (VS Code)
- Open this repository root folder as project;
- Press
Ctrl+Shift+B
to build.
- Run (Double-click of LMB)
./scripts/compile.bat
to build (will closes immediately in end).
- Run
./scripts/compile.sh
to build (will closes immediately in end).
- Open bash (cmd.exe) in this project directory;
- Type next commands:
DOT.EXE -Tsvg builds_all.dot > builds_all.svg
DOT.EXE -Tpng builds_all.dot > tree.png
Where keys is:
-T***
- mode (example:-Tsvg
,-Tpng
);tree
before>
symbol - input file name;.***
before>
symbol - input file name extension (example:.dot
);
tree
after>
symbol - output file name;.***
after>
symbol - output file name extension (example:.svg
,.png
) (more).
Graphviz without specify path will output files in current directory.
But you can specify path like in next examle:
DOT.EXE -Tsvg "./src/builds_all.dot" > "./out/builds_all.svg"
DOT.EXE -Tpng "./src/builds_all.dot" > "./out/tree.png"
More information can be founded on the official website.
- Open shell in this project directory;
- Type next commands:
dot -Tsvg builds_all.dot > builds_all.svg
dot -Tpng builds_all.dot > tree.png
Where keys is:
-T***
- mode (example:-Tsvg
,-Tpng
);tree
before>
symbol - input file name;.***
before>
symbol - input file name extension (example:.dot
);
tree
after>
symbol - output file name;.***
after>
symbol - output file name extension (example:.svg
,.png
) (more).
Graphviz without specify path will output files in current directory.
But you can specify path like in next examle:
dot -Tsvg ".\\src\\builds_all.dot" > ".\\out\\builds_all.svg"
dot -Tpng ".\\src\\builds_all.dot" > ".\\out\\tree.png"
More information can be founded on the official website.