Easy to use game library for C++ and Python
C C++ Makefile Objective-C++ Python Objective-C
Permalink
Failed to load latest commit information.
android
examples
include
installer
lib
python
src
visualcpp
xcode
.atom-build.json
.cproject
.gitignore
.gitmodules
.travis.yml
Arial.ttf
LICENSE.txt
README.md
SConstruct
Tupfile
install.sh
jngl.pc.in
jngl.png
jngl.sublime-project
jngl.webp
test.ogg

README.md

JNGL - Just a Neat Game Library Build Status Build status

Easy to use game library for C++ and Python

Linux

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.

Windows

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.

Mac

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":

./install.sh /usr/local

Clean up:

scons installer=1 python=1 -c

A list of all variables:

scons -h

Android

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

ndk-build

inside the android/jngl folder.