Paddle icon indicating copy to clipboard operation
Paddle copied to clipboard

Having installed all third_party (gflags, gtest,...), why still have this problem: "paddle_gtest_main.cc:18:25: fatal error: gtest/gtetst.h: no such file... "

Open liqiangniu opened this issue 8 years ago • 2 comments

Having installed all third_party (gflags, gtest,...), why still have this problem: "paddle_gtest_main.cc:18:25: fatal error: gtest/gtetst.h: no such file... "

liqiangniu avatar Jan 05 '18 08:01 liqiangniu

Occurred during the make command...

liqiangniu avatar Jan 05 '18 08:01 liqiangniu

To compile paddle from source, you can refer to http://www.paddlepaddle.org/docs/develop/documentation/en/getstarted/build_and_install/build_from_source_en.html.

If you do not want to use docker, you can git clone the sources and compile as follows:

cd Paddle
mkdir build
cd build

cmake .. -DWITH_GPU=true -DWITH_AVX=true -DWITH_MKLDNN=true -DWITH_MKLML=true -DWITH_DSO=true -DWITH_TESTING=true -DWITH_SWIG_PY=true  -DCUDNN_ROOT=/someplace/cudnn_v5/cuda -DCMAKE_INSTALL_PREFIX=/someplace

make

make install

will-am avatar Jan 05 '18 12:01 will-am