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

Branch:windows, build_win.cmd failed with error:“caffe/include_symbols.hpp”: No such file or directory #6215

Open
yplypl opened this issue Feb 6, 2018 · 8 comments
Labels

Comments

@yplypl
Copy link

yplypl commented Feb 6, 2018

Operating system:Win7 x64
Compiler: VS2015
CUDA version (if applicable):8.0
Python:2.7.14
CMake:3.10.2
ninjia:1.8.2

both cpu_only on or off failed with this same error.
"C:\Program Files (x86)\MICROS~3.0\VC\bin\amd64\cl.exe" /nologo /TP -DBOOST_ALL_NO_LIB -DCAFFE_VERSION=1.0.0 -DCMAKE_WINDOWS_BUILD -DCPU_ONLY -DGLOG_NO_ABBREVIATED_SEVERITIES -DGOOGLE_GLOG_DLL_DECL=__declspec(dllimport) -DGOOGLE_GLOG_DLL_DECL_FOR_UNITTESTS=__declspec(dllimport) -DH5_BUILT_AS_DYNAMIC_LIB=1 -DUSE_LEVELDB -DUSE_LMDB -DUSE_OPENCV -Iinclude -I. -IC:\Users\Administrator.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include\boost-1_61 -IC:\Users\Administrator.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include -IC:\Users\Administrator.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include\opencv -I..\include -IC:\Users\Administrator.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\Include /DWIN32 /D_WINDOWS /W3 /GR /EHsc /FS /MD /O2 /Ob2 /DNDEBUG /FS /showIncludes /Fotools\CMakeFiles\compute_image_mean.dir\compute_image_mean.cpp.obj /Fdtools\CMakeFiles\compute_image_mean.dir\ /FS -c ..\tools\compute_image_mean.cpp
C:\Users\Administrator.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include\google/protobuf/message_lite.h(247): warning C4267: “return”: 从“size_t”转换到“int”,可能丢失数据
.\caffe/export.hpp(7): fatal error C1083: 无法打开包括文件: “caffe/include_symbols.hpp”: No such file or directory

build.log
CMakeCache.txt

@Noiredd Noiredd added the windows label Feb 6, 2018
@adizhol
Copy link

adizhol commented Feb 10, 2018

Same issue

Operating system:Win10 x64
Compiler: VS2015
CUDA version (if applicable):8.0
Python:3.5.4
CMake:3.10.2
ninjia: none

@yudf2010
Copy link

Same issue

OS: Win10 x64
Compiler: Visual Studio 2013
CUDA version: None (CPU Only build)
Python: 2.7.14 (Anaconda)
Cmake: 3.9.6
Ninja: 1.8.2

@Jh-Fan
Copy link

Jh-Fan commented Jul 26, 2018

If you can read Chinese, maybe the blog here can help you. "https://blog.csdn.net/havefun00/article/details/81217286"

@zchrissirhcz
Copy link

It seems we should use powershell instead of cmd.exe?

@russoen
Copy link

russoen commented Sep 12, 2018

This helped me:
https://groups.google.com/forum/#!topic/caffe-users/kWuf4L0dwmM

@y0umu
Copy link

y0umu commented Apr 17, 2019

If you can read Chinese, maybe the blog here can help you. "https://blog.csdn.net/havefun00/article/details/81217286"

I can read Chinese and this is going to be built without ninja, which is ridiculously slow.

@vagi8
Copy link

vagi8 commented Oct 14, 2019

was anyone able to solve this issue ?? In desperate need of caffe.
Thanks in advance.

@vagi8
Copy link

vagi8 commented Oct 16, 2019

Intro

I came up with a small work around. At least it finished without any errors

Problem

This include_symbols.hpp is being accessed in the file export.hpp in the DIR ./caffe/build/caffe
As there is no file in the project it is failing.
Apparently building using VS 2012 includes this file.

My Solution

but my work around is that i have created an empty include_symbols.hpp file in the same DIR
MIRACLE !!

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

9 participants