Skip to content
/ cgrf Public

A very simple C graph visualization program

Notifications You must be signed in to change notification settings

CODESOLE/cgrf

Repository files navigation

CGRF

build-windows build-linux build-macos

A very simple c graph visualization.

Usage

Usage: cgrf [OPTION...] [FILE...]
A simple graph visualization program

--version           print version
--help              print help
--file=<filename>   specify file to visualize

Build on Windows

  • Install MSYS2 (Leave installation directory to C:\msys64)
  • Open MSYS2 MSYS shell from start menu (NOT MSYS2 MINGW or others)
  • Change directory to the root of this folder and then run ./install_deps_for_windowsmsys2_and_arch_linux.sh from MSYS2 MSYS shell ( it will install necessary dependencies)
  • Then close MSYS2 MSYS shell and open MSYS2 MINGW64 shell, change directory to the root of this folder, run ./build.sh this will create a build 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)

Build on Linux

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)

Build on MacOS

  • 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.

About

A very simple C graph visualization program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published