Skip to content

Build script for macOS #14

Description

@TidbitSoftware

I have successfully compiled on macOS (Intel-based machine) and am posting here the build script I used, including documentation on external packages installed via Homebrew. Hope it saves someone else some time!

#!/bin/bash

# Installed dependencies with,
#
#	brew install opencv sdl2 sdl2_image sdl12-compat
#
# Usage:
#
#	cd Poppy
#	src/poppy img1.png img2.png imgN.png
#
# NOTE: Uncomment PREFIX line and set to desired install location, and 
# uncomment `make install` line to install. Default install location is 
# <POPPY_SRC>/src/src.
#
# Sources:
# - https://github.com/kallaballa/Poppy
#

#PREFIX="<INSTALL_PATH>/install" # Set to location where external package should be installed

# Download source
git clone https://github.com/kallaballa/Poppy.git

# Move source into 'src' directory
mv Poppy src
rm -rf Poppy

# Patch Makefile
sed -i'' -e 's|SDL_image|SDL2_image|' src/Makefile

# Compile and install
cd src
make -j 4
#make install

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions