Skip to content

develop branch, WITH_TESTING=False, 由于依赖问题,编译出错。 #1031

@backyes

Description

@backyes
baidudeMacBook-Pro:build baidu$ make
[  2%] Built target gen_proto_cpp
[  3%] Generating ../../paddle/python/paddle/proto/TrainerConfig_pb2.py
[  3%] Generating ../../paddle/python/paddle/proto/ParameterService_pb2.py
[  4%] Generating ../../paddle/python/paddle/proto/ParameterConfig_pb2.py
[  4%] Generating ../../paddle/python/paddle/proto/ModelConfig_pb2.py
[  5%] Generating ../../paddle/python/paddle/proto/DataFormat_pb2.py
[  5%] Generating ../../paddle/python/paddle/proto/DataConfig_pb2.py
[  5%] Built target gen_proto_py
[ 10%] Built target paddle_proto
[ 13%] Built target paddle_cuda
[ 13%] Built target paddle_function
[ 14%] Building CXX object paddle/function/CMakeFiles/paddle_test_main.dir/TestMain.cpp.o
/Users/baidu/work/Paddle/paddle/function/TestMain.cpp:15:10: fatal error: 'gtest/gtest.h' file not found
#include <gtest/gtest.h>
         ^
1 error generated.
make[2]: *** [paddle/function/CMakeFiles/paddle_test_main.dir/TestMain.cpp.o] Error 1
make[1]: *** [paddle/function/CMakeFiles/paddle_test_main.dir/all] Error 2
make: *** [all] Error 2
baidudeMacBook-Pro:build baidu$

git show 5fddd99 引入bug, 建议此patch 考虑下WITH_TESTING。默认不使能test的编译场景还挺多。

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions