Skip to content

Compiling on Linux

Moros Smith edited this page Jul 20, 2020 · 6 revisions

Installation

Ubuntu 20.04 and distros based on Ubuntu 20.04

Update and install the compiler, related build tools, and libraries required to build PixelGameEngine applications.

sudo apt update

sudo apt install build-essential libglu1-mesa-dev libpng-dev

Arch Linux

Update and install the compiler, related build tools, and libraries required to build PixelGameEngine applications.

sudo pacman -Sy

sudo pacman -S gcc glibc libpng mesa

More Linux distros

Placeholder for more instructions for more Linux distros

Building

g++ -o olcExampleProgram olcExampleProgram.cpp -lX11 -lGL -lpthread -lpng -lstdc++fs -std=c++17

Run the example program

./olcExampleProgram

FAQ

Your frequently asked questions might appear here, one day!

Clone this wiki locally