diff --git a/docs/user_guides/source_compile.md b/docs/user_guides/source_compile.md index 127d295eed4ba05433b0fe7ff237644c1a9a3151..00c7329d84316fc6feb603a84e44b67ff67e1959 100644 --- a/docs/user_guides/source_compile.md +++ b/docs/user_guides/source_compile.md @@ -156,7 +156,7 @@ wget -c https://mms-res.cdn.bcebos.com/cmake-3.10.3-Linux-x86_64.tar.gz && \ ###### 编译环境要求 -- gcc、g++、git、make、wget、python、patchelf +- gcc、g++、git、make、wget、python、pip、python-dev、patchelf - cmake(建议使用3.10或以上版本) ###### 具体步骤 @@ -167,7 +167,7 @@ wget -c https://mms-res.cdn.bcebos.com/cmake-3.10.3-Linux-x86_64.tar.gz && \ # 1. Install basic software apt update apt-get install -y --no-install-recomends \ - gcc g++ make wget python unzip + gcc g++ make wget python unzip patchelf python-dev # 2. install cmake 3.10 or above wget https://www.cmake.org/files/v3.10/cmake-3.10.3.tar.gz diff --git a/lite/utils/cv/paddle_image_preprocess.cc b/lite/utils/cv/paddle_image_preprocess.cc index 725a5399b3922243ec40e28958f54009bf5f1e9c..3ec82c0d16e013a864491380d4980ad736e2b31a 100644 --- a/lite/utils/cv/paddle_image_preprocess.cc +++ b/lite/utils/cv/paddle_image_preprocess.cc @@ -14,6 +14,7 @@ #include "lite/utils/cv/paddle_image_preprocess.h" #include +#include #include #include #include "lite/utils/cv/image2tensor.h"