Skip to content

findns94/YaGE

 
 

Repository files navigation

YaGE (Yet Another Graphics Engine)

中文

Intro

YaGE is a cross-platform graphics library based on Cairo / GTK+.

Status

Windows static library: Build status

Linux static library: Build Status

License

LGPL v3

Build

Microsoft Windows

Build with Microsoft Visual Studio

Because C++ 11 is used in the project, make sure that you have installed install Visual Studio 2012 or later.

Install CMake (Win32 Installer) and GTK+ 3 (All-in-one bundles), add the bin directory of CMake and GTK+ 3 into PATH environment variable.

After installation, launch VS201? x86 Native Tools Command Prompt, switch to the root directory of YaGE, then run following command:

X:\> cd YaGE
X:\YaGE> md build
X:\YaGE> cd build
X:\YaGE\build> cmake ..

The command above will generate Visual Studio Solution inside build folder.

Finally, open YaGE.sln solution in build folder to build the library.

Library will be built in build\lib directory called yage.lib, copy it to VC\lib directory in VS installation folder to use it. After that, copy everything in include directory to include directory in VS installation folder to use headers.

Build with MinGW / MSYS

Similarly, install CMake and GTK+ 3 and add them into PATH.

Open MSYS Shell, switch to the project root directory, execute the following command:

/ $ cd YaGE
/YaGE $ mkdir build
/YaGE $ cd build
/YaGE/build $ cmake .. -G "MSYS Makefiles"
/YaGE/build $ make

Library will be built in build/lib directory called libyage.a, copy it to lib directory in MinGW installation folder to use it. After that, copy everything in include directory to include directory in MinGW installation folder to use headers.

Build with Cygwin

Open Cygwin installer and install following packages:

git make gcc-g++ cmake libgtk3-devel pkg-config libgstreamer0.10-devel

Then follow UNIX build instructions

UNIX and UNIX-like Systems

Install Dependencies

Debian / Ubuntu and derivatives

sudo apt-get install -y build-essential git libgtk-3-dev cmake pkg-config libgstreamer-plugins-base0.10-dev

RHEL / CentOS 7 and derivatives, Fedora 21 and earlier

sudo yum -y install git cmake pkgconfig gcc-c++ gtk3-devel gstreamer-devel

Fedora 22

sudo dnf -y install git cmake pkgconfig gcc-c++ gtk3-devel gstreamer-devel

Arch Linux

sudo pacman -S base-devel git gtk3 cmake pkg-config gstreamer0.10

FreeBSD 10

sudo pkg install git cmake pkgconf gtk3 gstreamer

Mac OS X via Homebrew

brew install git cmake gtk+3 cairo pkg-config

Mac OS X via MacPorts

sudo port install git cmake gtk3 cairo pkgconfig

Build

$ git clone https://github.com/yet-another-graphics-engine/YaGE.git
$ cd YaGE
$ mkdir build
$ cd build
$ cmake ..
$ make

Install

$ sudo make install

About

Yet another Graphics Engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 88.6%
  • CSS 5.0%
  • CMake 3.8%
  • C 1.9%
  • Other 0.7%