lnyan's picture
Update files
09c675d
#! /bin/bash
#
# cpp_example_run.sh
# Copyright (C) 2020 Jiayuan Mao <maojiayuan@gmail.com>
#
# Distributed under terms of the MIT license.
#
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
export DYLD_LIBRARY_PATH=../:$DYLD_LIBRARY_PATH # For macOS
export LD_LIBRARY_PATH=../:$LD_LIBRARY_PATH # For Linux
time ./cpp_example.exe