Spaces:
Runtime error
Runtime error
| # | |
| # cpp_example_run.sh | |
| # Copyright (C) 2020 Jiayuan Mao <[email protected]> | |
| # | |
| # 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 | |