Switch branches/tags
Find file
Fetching contributors…
Cannot retrieve contributors at this time
103 lines (73 sloc) 2.33 KB

JNGL - Just a Neat Game Library Build Status Build status pipeline status

Easy to use game library for C++ and Python


On a Debian-based distribution:

sudo apt-get install libgl1-mesa-dev libfreetype6-dev libfontconfig1-dev libxxf86vm-dev \
libjpeg-dev libpng12-dev libvorbis-dev libopenal-dev scons libglew-dev libboost-dev g++ \
libwebp-dev git libsdl2-dev

On Fedora:

sudo dnf install fontconfig-devel freetype-devel libvorbis-devel glew-devel libjpeg-turbo-devel \
libwebp-devel boost-python3-devel python3-devel scons SDL2-devel openal-soft-devel

Then build using SCons.

Arch Linux

pacman -S --needed meson gcc sdl2 pkg-config fontconfig glew libwebp openal libvorbis boost
mkdir build
cd build
meson ..


Using MSYS2 / MinGW-w64

Set up MSYS2 and install the following in a mingw64 shell:

pacman -S scons mingw-w64-x86_64-gcc mingw-w64-x86_64-boost mingw-w64-x86_64-openal \
mingw-w64-x86_64-freetype mingw-w64-x86_64-libvorbis mingw-w64-x86_64-libwebp \
mingw-w64-x86_64-dlfcn mingw-w64-x86_64-glew mingw-w64-x86_64-python3

Then build using SCons.

Using Visual C++ 2015

Open visualcpp/JNGL.sln and press Ctrl + F5 to build JNGL and run the example application.


Use Homebrew to install the build dependencies:

brew install sdl2 freetype libvorbis glew jpeg webp scons pkg-config boost

Then build using SCons.

Build using SCons

Build JNGL in debug mode:

scons debug=1

Build python bindings:

scons python=1

Create a Windows installer:

scons installer=1
scons installer=1 python=1

Install JNGL to "/usr/local":

./ /usr/local

Clean up:

scons installer=1 python=1 -c

A list of all variables:

scons -h


Install the Android SDK and NDK. Add the NDK's folder to your PATH and run


inside the android/jngl folder.