build.sh 442 B

1234567891011121314151617181920
  1. OPENCV_DIR=your_opencv_dir
  2. LIB_DIR=your_paddle_inference_dir
  3. CUDA_LIB_DIR=your_cuda_lib_dir
  4. CUDNN_LIB_DIR=your_cudnn_lib_dir
  5. BUILD_DIR=build
  6. rm -rf ${BUILD_DIR}
  7. mkdir ${BUILD_DIR}
  8. cd ${BUILD_DIR}
  9. cmake .. \
  10. -DPADDLE_LIB=${LIB_DIR} \
  11. -DWITH_MKL=ON \
  12. -DWITH_GPU=OFF \
  13. -DWITH_STATIC_LIB=OFF \
  14. -DUSE_TENSORRT=OFF \
  15. -DOPENCV_DIR=${OPENCV_DIR} \
  16. -DCUDNN_LIB=${CUDNN_LIB_DIR} \
  17. -DCUDA_LIB=${CUDA_LIB_DIR} \
  18. make -j