与this问题类似且与that问题相关,我想在Windows上从源代码构建Tensorflow以启用deactivated by design to support as many machines as possible的CPU优化。从建议Bazel is not supported on Windows的官方文档中,我得出结论,CMake构建是可行的方法。
我找到了CMake指令here,我假设通过检查Tag v1.1.0,我可以构建它。但按照说明操作后,我收到以下错误消息:
Build FAILED.
"C:\Users\Alex\Repositories\tensorflow\tensorflow\contrib\cmake\build\tf_python_build_pip_package.vcxproj" (default target) (1) ->
"C:\Users\Alex\Repositories\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow_internal.vcxproj" (default target) (3) ->
"C:\Users\Alex\Repositories\tensorflow\tensorflow\contrib\cmake\build\pywrap_tensorflow_internal_static.vcxproj" (default target) (4) ->
"C:\Users\Alex\Repositories\tensorflow\tensorflow\contrib\cmake\build\tf_core_cpu.vcxproj" (default target) (5) ->
"C:\Users\Alex\Repositories\tensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj" (default target) (6) ->
(ClCompile target) ->
c1xx : fatal error C1083: Cannot open source file: 'C:\Users\Alex\Repositories\tensorflow\tensorflow\core\util\version_info.cc': No such file or directory [C:\Users\Alex\Repositories\tensorflow\tensorflow\contrib\cmake\build\tf_core_framework.vcxproj]
0 Warning(s)
1 Error(s)
声称无法找到version_info.cc。那个文件是什么,它是如何生成的以及它为什么会丢失?有没有办法,如何创建它来完成我的构建,或者我错过了文档中没有提到的一些配置?