Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
backyes opened this issue Dec 28, 2016 · 0 comments
Closed
Assignees
Labels

Comments

@backyes
Copy link
Contributor

backyes commented Dec 28, 2016

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的编译场景还挺多。

@backyes backyes added the Bug label Dec 28, 2016
@backyes backyes changed the title 主干代码WITH_TESTING=False, 由于依赖问题,编译出错。 develop branch, WITH_TESTING=False, 由于依赖问题,编译出错。 Dec 28, 2016
zhhsplendid pushed a commit to zhhsplendid/Paddle that referenced this issue Sep 25, 2019
wangxicoding pushed a commit to wangxicoding/Paddle that referenced this issue Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants