From 15eff8b84ab41ebe94910b0edf630f0f184c9582 Mon Sep 17 00:00:00 2001 From: auxeon <54858547+auxeon@users.noreply.github.com> Date: Tue, 3 Mar 2026 02:59:44 -0800 Subject: [PATCH] small fixes, add compilation instructions for MacOS --- contributions/README.md | 11 ++++++++++- olcPixelGameEngine.h | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/contributions/README.md b/contributions/README.md index 244c38cc..01580e50 100644 --- a/contributions/README.md +++ b/contributions/README.md @@ -29,7 +29,16 @@ These source code contributions enhance the functionality of the olcPixelGameEng ## MacOS Support * These will potentially be absorbed into main build * https://github.com/MumflrFumperdink/olcPGEMac - + +* compilation instructions for MacOS + * install libpng using homebrew + ```shell + brew install libpng + ``` + * use the below compilation flags for MacOS + ```shell + clang++ olcExampleProgram.cpp -I/opt/homebrew/opt/libpng/include -L/opt/homebrew/opt/libpng/lib -framework OpenGL -framework GLUT -framework Cocoa -lpthread -lpng -std=c++20 + ``` ## Android & IOS Support * Fiddlier to setup, but pretty cool once going * https://github.com/Johnnyg63/OLCPGEMobileVisualStudio diff --git a/olcPixelGameEngine.h b/olcPixelGameEngine.h index 5e59a87a..83c05c22 100644 --- a/olcPixelGameEngine.h +++ b/olcPixelGameEngine.h @@ -441,6 +441,7 @@ int main() #include #include #include +#include #pragma endregion #define PGE_VER 230