嗨,我正在尝试通过在其自己的github页面上以下步骤来安装caffe框架。当我执行"脚本 build_win.cmd"时。我有一些错误:
.. libraries bin caffehdf5_d.dll:致命错误lnk1107:无效或损坏的文件:无法在0x330读取[C: Projects2 caf fe build tools ustgrade_solver_proto_text.vcxproj]
当我看cmakeerror.log时:
确定include file pthread.h是否存在失败 以下输出:更改DIR: C:/Project2/caffe/build/cmakefiles/cmaketmp
运行构建命令:" c:/program文件 (x86)/msbuild/12.0/bin/msbuild.exe" cmtc_5c4c5.vcxproj" "/p:configuration = debug"/p:visualstudioversion = 112.0" Microsoft(r) 构建引擎版本12.0.31101.0
[Microsoft .NET框架,版本4.0.30319.42000]
版权所有(C)Microsoft Corporation。保留所有权利。
构建开始26.12.2016 14:34:11。
项目 " c: projects2 caffe build cmakefiles cmaketmp cmtc_5c4c5.vcxproj" on on 节点1(默认目标)。
Preparforbuild:
创建目录" cmtc_5c4c5.dir debug "。
创建目录 " c: project2 caffe build cmakefiles cmaketmp debug "。
创建目录" cmtc_5c4c5.dir debug cmtc_5c4c5.tlog "。
initializebuildstatus:
创建" cmtc_5c4c5.dir debug cmtc_5c4c5.tlog unsuccessfulbuild" 因为指定了"始终创造"。
clcompile:
c: program文件(x86) Microsoft Visual Studio 12.0 vc bin x86_amd64 cl.exe/c/zi/w3/wx-/od/ob0/d" win32"/d" _windows"/d _debug/d _debug/d" cmake_intdir = "_mbcs/gm-/rtc1 /mdd/gs/fp:精确/zc:wchar_t/zc:forscope /fo" cmtc_5c4c5.dir debug "/fd"cmtc_5c4c5.dir debug vc120.pdb"/gd /TC/错误报告:队列 " c: projects2 caffe build cmakefiles cmaketmp checkincludefile.c"
Microsoft(R)C/C 优化编译器版本18.00.31101 x64
版权所有(C)Microsoft Corporation。保留所有权利。
cl/c/zi/w3/wx-/od/ob0/d" win32"/d" _windows"/d _debug/d " cmake_intdir = " debug "/d _mbcs/gm-/rtc1/mdd/gs/fp:精确 /ZC:WCHAR_T/ZC:forscope/fo" cmtc_5c4c5.dir debug " /fd"cmtc_5c4c5.dir debug vc120.pdb"/gd/tc/errorport:queue " c: projects2 caffe build cmakefiles cmaketmp checkincludefile.c"
checkincludefile.c
c: projects2 caffe build cmakefiles cmaketmp checkincludefile.c(1): 致命错误C1083:无法打开包括文件:'pthread.h':没有这样的文件 或目录 [c: projects2 caffe build cmakefiles cmaketmp cmtc_5c4c5.vcxproj]
完成的建筑项目 " c: projects2 caffe build cmakefiles cmaketmp cmtc_5c4c5.vcxproj" (默认目标) - 失败。
构建失败。
" c: projects2 caffe build cmakefiles cmaketmp cmtc_5c4c5.vcxproj" (默认目标)(1) ->
(clCompile目标) ->
c: projects2 caffe build cmakefiles cmaketmp checkincludefile.c(1): 致命错误C1083:无法打开包括文件:'pthread.h':没有这样的文件 或目录 [c: projects2 caffe build cmakefiles cmaketmp cmtc_5c4c5.vcxproj]
0 Warning(s) 1 Error(s)
时间过去的时间00:00:00.34
我通过将文件夹权限更改为完整访问来解决此错误。原因是没有读写许可。link1