-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
run build_win.cmd build failed, could not find "pthread.h" on windows branch #5840
Comments
I have the same error. .caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include\boost-1_61\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data |
Not sure why CMake is looking for pthread.h. Can you post (upload a txt file) the complete output of the following command:
|
It seems that CMake 3.9.1 is causing that sort of issues with the Ninja generator on CI builds. Best workaround might be to use the VS generator or downgrade CMake to 3.9.0 or 3.8.x. |
I tried building with CMake 3.8.2 instead of 3.9.1 The build wasn't stopped by an error in the command prompt, but the Is CMakeError.log only generated when the build fails? Both builds have generated the dlls I need, but I'm not sure if the 3.8.2 build is succeeding or just failing silently. |
In my 3.8.2 build folder, running |
I have the same error ,did you figure it out or have other methods to install caffe in windows |
For me the successful path was to add
to the top of CMakeLists.txt, then to run |
i give it up... |
I solved it. Do copy include_symbols.hpp file to caffe/include/caffe/ ,then you will solved it。 |
I have met this problem,too. Finally,I find the one project named Last, I want to remember you that you should build the ALL_BUILD Target |
@xmagicer Dear friend, I have also met this problem. I have rebuilt the project "caffe.bin_install_prerequisties", but there is still no "include_symbols.hpp" in my directory(caffe-build-dir/caffe). There is only "export.hpp" in my directory. Do you had any other operations? |
Thanks to @willyd ! |
I solved it in my case, I'd git-cloned at as you see, that folder name |
This helped me: |
yeah, just use vs2015, rather not Ninja |
hi, |
Please use the caffe-users list for usage, installation, or modeling questions, or other requests for help.
Do not post such requests to Issues. Doing so interferes with the development of Caffe.
Please read the guidelines for contributing before submitting this issue.
Issue summary
Determining if the include file pthread.h exists failed with the following output:
Change Dir: E:/caffe-windows/build/CMakeFiles/CMakeTmp
Run Build Command:"E:/Anaconda2/Library/bin/ninja.exe" "cmTC_41e79"
[1/2] Building C object CMakeFiles\cmTC_41e79.dir\CheckIncludeFile.c.obj
FAILED: CMakeFiles/cmTC_41e79.dir/CheckIncludeFile.c.obj
C:\PROGRA
2\MICROS1.0\VC\bin\amd64\cl.exe /nologo /DWIN32 /D_WINDOWS /W3 /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_41e79.dir\CheckIncludeFile.c.obj /FdCMakeFiles\cmTC_41e79.dir\ /FS -c CheckIncludeFile.cCheckIncludeFile.c(1): fatal error C1083: Cannot open include file: 'pthread.h': No such file or directory
ninja: build stopped: subcommand failed.
Steps to reproduce
If you are having difficulty building Caffe or training a model, please ask the caffe-users mailing list. If you are reporting a build error that seems to be due to a bug in Caffe, please attach your build configuration (either Makefile.config or CMakeCache.txt) and the output of the make (or cmake) command.
[168/218] Building CXX object python\CMakeFiles\pycaffe.dir\caffe_caffe.cpp.obj
FAILED: python/CMakeFiles/pycaffe.dir/caffe/_caffe.cpp.obj
C:\PROGRA
2\MICROS1.0\VC\bin\amd64\cl.exe /nologo /TP -DBOOST_ALL_NO_LIB -DCAFFE_VERSION=1.0.0 -DCMAKE_WINDOWS_BUILD -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_CUDNN -DUSE_LEVELDB -DUSE_LMDB -DUSE_OPENCV -Dpycaffe_EXPORTS -Iinclude -I. -IE:\Anaconda2\include -IE:\Anaconda2\lib\site-packages\numpy\core\include -IC:\Users\seeta-xpc.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include\boost-1_61 -IC:\Users\seeta-xpc.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include -I"C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v8.0\include" -IC:\Users\seeta-xpc.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include\opencv -I..\include -IC:\Users\seeta-xpc.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\Include /DWIN32 /D_WINDOWS /W3 /GR /EHsc /FS /MD /O2 /Ob2 /DNDEBUG /FS /showIncludes /Fopython\CMakeFiles\pycaffe.dir\caffe_caffe.cpp.obj /Fdpython\CMakeFiles\pycaffe.dir\ /FS -c ..\python\caffe_caffe.cppC:\Users\seeta-xpc.caffe\dependencies\libraries_v140_x64_py27_1.1.0\libraries\include\boost-1_61\boost/python/detail/caller.hpp(55): warning C4244: 'return': conversion from 'Py_ssize_t' to 'unsigned int', possible loss of data
.\caffe/export.hpp(7): fatal error C1083: Cannot open include file: 'caffe/include_symbols.hpp': No such file or directory
ninja: build stopped: subcommand failed.
ERROR: Build failed
Your system configuration
Operating system: Windows10
Compiler: Ninja Cmake VS2015
CUDA version (if applicable): 8.0
CUDNN version (if applicable): 5.1
BLAS: script get
Python or MATLAB version (for pycaffe and matcaffe respectively): Anaconda2.7-x64 matlab2016b
The text was updated successfully, but these errors were encountered: