Skip to content

Commit 40ee898

Browse files
committed
osx build
1 parent 6f2a602 commit 40ee898

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ setup-halide:
1919
ifeq ($(shell uname),Linux)
2020
sudo apt install libpng-dev libjpeg-dev clang g++ binutils
2121
else
22-
brew install halide
22+
brew install libpng
23+
brew install jpeg
24+
brew install pkg-config
2325
endif
2426

2527
.PHONY: setup-halide-runtime_linux

cli/genrun/genrun.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ func generate(runtimePath, blurryPath, target string) (string, error) {
5757
"-I" + runtimePath + "/share/Halide/tools",
5858
"-L" + runtimePath + "/lib",
5959
libpngFlags,
60+
"-L/usr/local/opt/jpeg/lib",
61+
"-I/usr/local/opt/jpeg/include",
6062
"-ljpeg",
6163
"-lHalide",
6264
"-lpthread",

0 commit comments

Comments
 (0)