tayloraswift / swift-png

decode, inspect, edit, and encode png images in pure swift

Home Page:https://swiftinit.org/docs/swift-png

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

utils/benchmark cannot compile baseline

valeriyvan opened this issue · comments

utils/benchmark    
clang -Wall -Wpedantic -lpng benchmarks/decompression/baseline/main.c -o benchmarks/decompression/baseline/main
benchmarks/decompression/baseline/main.c:6:10: fatal error: 'png.h' file not found
#include <png.h>
         ^~~~~~~
1 error generated.

this is expected, the benchmark compares against libpng, so you must have libpng installed to run the benchmark

I have libpng installed (via brew install libpng) but this problem persists. It appears it's not looking for the library in the right place (/opt/homebrew, the standard installation location).