Skip to content

Commit 4a102d5

Browse files
committed
[master] macOS cpp example
1 parent 161dcb5 commit 4a102d5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

examples/cpp_example_run.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,8 @@ set -x
1111
CFLAGS="-std=c++14 -O2 $(pkg-config --cflags opencv)"
1212
LDFLAGS="$(pkg-config --libs opencv)"
1313
g++ $CFLAGS cpp_example.cpp -I../csrc/ -L../ -lpatchmatch $LDFLAGS -o cpp_example.exe
14-
LD_LIBRARY_PATH=../:$LD_LIBRARY_PATH time ./cpp_example.exe
14+
15+
export DYLD_LIBRARY_PATH=../:$DYLD_LIBRARY_PATH # For macOS
16+
export LD_LIBRARY_PATH=../:$LD_LIBRARY_PATH # For Linux
17+
time ./cpp_example.exe
1518

0 commit comments

Comments
 (0)