Skip to content

Commit

Permalink
[master] macOS cpp example
Browse files Browse the repository at this point in the history
  • Loading branch information
vacancy committed Jul 20, 2021
1 parent 161dcb5 commit 4a102d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion examples/cpp_example_run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ set -x
CFLAGS="-std=c++14 -O2 $(pkg-config --cflags opencv)"
LDFLAGS="$(pkg-config --libs opencv)"
g++ $CFLAGS cpp_example.cpp -I../csrc/ -L../ -lpatchmatch $LDFLAGS -o cpp_example.exe
LD_LIBRARY_PATH=../:$LD_LIBRARY_PATH time ./cpp_example.exe

export DYLD_LIBRARY_PATH=../:$DYLD_LIBRARY_PATH # For macOS
export LD_LIBRARY_PATH=../:$LD_LIBRARY_PATH # For Linux
time ./cpp_example.exe

0 comments on commit 4a102d5

Please sign in to comment.