A very simple c graph visualization.
Usage: cgrf [OPTION...] [FILE...]
A simple graph visualization program
--version print version
--help print help
--file=<filename> specify file to visualize
- Install MSYS2 (Leave installation directory to
C:\msys64
) - Open
MSYS2 MSYS
shell from start menu (NOTMSYS2 MINGW or others
) - Change directory to the root of this folder and then run
./install_deps_for_windowsmsys2_and_arch_linux.sh
fromMSYS2 MSYS
shell ( it will install necessary dependencies) - Then close
MSYS2 MSYS
shell and openMSYS2 MINGW64
shell, change directory to the root of this folder, run./build.sh
this will create abuild
directory and write build files and compiled binary there (You can run./build.sh r
to compile with release mode otherwise it will compile default to debug mode)
For Archlinux and its derivatives (which uses pacman package manager) you can run ./install_deps_for_windowsmsys2_and_arch_linux.sh
(if needed run with sudo), then run ./build.sh
(You can run ./build.sh r
to compile with release mode otherwise it will compile default to debug mode)
For other linux distributions you can install dependencies according to your package manager:
- GCC
- GNU Make
- Premake
- SDL2
Then just run ./build.sh
from root directory (No need for ./install_deps_for_windowsmsys2_and_arch_linux.sh
other than arch linux like distributions)
- Install Homebrew
- Open terminal change directory to the root of this folder and then run
brew install gcc make sdl2 premake
- Finally, run
./build.sh
shell script to build the project. Binary build will be written in build directory.