fatal error C1083: Cannot open include file: 'caffe/include_symbols.hpp': No such file or directory

2,029 views
Skip to first unread message

Julius Jacobsen

unread,
Aug 30, 2017, 11:29:25 AM8/30/17
to Caffe Users
When I try to build Caffe, the build fails after this line. The CMakeError log says

"Determining if the include file pthread.h exists failed with the following output:
Change Dir: C:/Projects/caffe/scripts/build/CMakeFiles/CMakeTmp

Run Build Command:"C:/misc/ninja-win/ninja.exe" "cmTC_7f94b"
[1/2] Building C object CMakeFiles\cmTC_7f94b.dir\CheckIncludeFile.c.obj

FAILED: CMakeFiles/cmTC_7f94b.dir/CheckIncludeFile.c.obj


C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\cl.exe  /nologo   /DWIN32 /D_WINDOWS /W3  /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_7f94b.dir\CheckIncludeFile.c.obj /FdCMakeFiles\cmTC_7f94b.dir\ /FS -c CheckIncludeFile.c

CheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory

ninja: build stopped: subcommand failed."

I don't know if this is normal or not, but the console also displays a large number of warnings of the sort
"warning C4244: '=': conversion from 'int' to 'float', possible loss of data"
or
"warning C4661: 'void caffe::TileLayer<double>::Backward_gpu(const std::vector<caffe::Blob<Dtype> *,std::allocator<_Ty>> &,const std::vector<bool,std::allocator<bool>> &,const std::vector<_Ty,std::allocator<_Ty>> &)': no suitable definition provided for explicit template instantiation request"
and at the very beginning after I type "build_win.cmd" there are two lines that go
"the system cannot find the drive specified" before it starts building.

Again, I don't know if this is unusual but I wanted to mention it in case it's important.

Guillaume Dumont

unread,
Aug 31, 2017, 8:59:29 AM8/31/17
to Caffe Users
Try with the Visual Studio generator:

set WITH_NINJA=0
build_win.cmd

Le Xuan Tuan Anh

unread,
Jan 26, 2018, 1:53:20 AM1/26/18
to Caffe Users
Hi @Julius Jacobsen 
I have a same problem. Did you fix it ?
Thanks
Reply all
Reply to author
Forward
0 new messages