TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi
TensorFlow-Lite-Object-Detection-on-Android-and-Raspberry-Pi copied to clipboard
Download TensorFlow source and configure build
tensorflow 1.15
vs2017
BAZEL 0.26.1
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package Hello, when I went to this step, the following situation occurred: INFO: Analyzed target //tensorflow/tools/pip_package:build_pip_package (370 packages loaded, 21581 targets configured). INFO: Found 1 target... INFO: Deleting stale sandbox base C:/users/97457/bazel_97457/up4opgnn/sandbox ERROR: C:/users/97457/bazel_97457/up4opgnn/external/com_google_absl/absl/strings/BUILD.bazel:31:1: C++ compilation of rule '@com_google_absl//absl/strings:strings' failed (Exit 2): cl.exe failed: error executing command cd C:/users/97457/bazel_97457/up4opgnn/execroot/org_tensorflow SET INCLUDE=C:\Program Files (x86)\Windows Kits\NETFXSDK\4.6.1\include\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\winrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.14393.0\cppwinrt SET PATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.1 Tools\x64;C:\Program Files (x86)\Windows Kits\10\bin\10.0.14393.0\x64;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools;;C:\Windows\system32 SET PWD=/proc/self/cwd SET PYTHON_BIN_PATH=C:/Users/97457/Anaconda3/envs/tensorflow-build/python.exe SET PYTHON_LIB_PATH=C:/Users/97457/Anaconda3/envs/tensorflow-build/lib/site-packages SET RUNFILES_MANIFEST_ONLY=1 SET TEMP=C:\Users\97457\AppData\Local\Temp SET TF2_BEHAVIOR=0 SET TF_CONFIGURE_IOS=0 SET TMP=C:\Users\97457\AppData\Local\Temp C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.16.27023/bin/HostX64/x64/cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0601 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /bigobj /Zm500 /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /Iexternal/com_google_absl /Ibazel-out/x64_windows-py2-opt/bin/external/com_google_absl /D__CLANG_SUPPORT_DYN_ANNOTATION /showIncludes /MD /O2 /Oy- /DNDEBUG /wd4117 -D__DATE_="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" /Gy /Gw -w -w -DWIN32_LEAN_AND_MEAN -DNOGDI /arch:AVX /W3 /DNOMINMAX /DWIN32_LEAN_AND_MEAN /D_CRT_SECURE_NO_WARNINGS /D_SCL_SECURE_NO_WARNINGS /D_ENABLE_EXTENDED_ALIGNED_STORAGE /wd4005 /wd4068 /wd4180 /wd4244 /wd4267 /wd4503 /wd4800 /Fobazel-out/x64_windows-py2-opt/bin/external/com_google_absl/absl/strings/_objs/strings/charconv_parse.obj /c external/com_google_absl/absl/strings/internal/charconv_parse.cc Execution platform: @bazel_tools//platforms:host_platform cl: 命令行 warning D9025 :正在重写“/w”(用“/W3”) 注意: 包含文件: external/com_google_absl\absl/strings/internal/charconv_parse.h external/com_google_absl\absl/strings/internal/charconv_parse.h(18): fatal error C1083: 无法打开包括文件: “cstdint”: No such file or directory Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 35.765s, Critical Path: 0.47s INFO: 0 processes. FAILED: Build did NOT complete successfully
What should I do?
Having the same issue here.
ERROR: C:/users/lenovo/_bazel_lenovo/j7bi4x5j/external/highwayhash/BUILD.bazel:8:1: C++ compilation of rule '@highwayhash//:sip_hash' failed (Exit 2): cl.exe failed: error executing command cd C:/users/lenovo/_bazel_lenovo/j7bi4x5j/execroot/org_tensorflow SET INCLUDE=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\ATLMFC\INCLUDE;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\ucrt;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\shared;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\um;C:\Program Files (x86)\Windows Kits\10\include\10.0.16299.0\winrt; SET PATH=C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\BIN\amd64;C:\Windows\Microsoft.NET\Framework64\v4.0.30319;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE;C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\Tools;C:\Program Files (x86)\Windows Kits\10\bin\x64;C:\Program Files (x86)\Windows Kits\10\bin\x86;;C:\Windows\system32 SET PWD=/proc/self/cwd SET PYTHON_BIN_PATH=C:/Users/LENOVO/anaconda3/envs/tensorflow-build/python.exe SET PYTHON_LIB_PATH=C:/Users/LENOVO/anaconda3/envs/tensorflow-build/lib/site-packages SET TEMP=C:\Users\LENOVO\AppData\Local\Temp SET TF_DOWNLOAD_CLANG=0 SET TF_NEED_CUDA=0 SET TF_NEED_OPENCL_SYCL=0 SET TF_NEED_ROCM=0 SET TMP=C:\Users\LENOVO\AppData\Local\Temp C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/amd64/cl.exe /nologo /DCOMPILER_MSVC /DNOMINMAX /D_WIN32_WINNT=0x0601 /D_CRT_SECURE_NO_DEPRECATE /D_CRT_SECURE_NO_WARNINGS /bigobj /Zm500 /EHsc /wd4351 /wd4291 /wd4250 /wd4996 /Iexternal/highwayhash /Ibazel-out/x64_windows-opt/genfiles/external/highwayhash /Ibazel-out/x64_windows-opt/bin/external/highwayhash /showIncludes /MD /O2 /Oy- /DNDEBUG /wd4117 -D__DATE__="redacted" -D__TIMESTAMP__="redacted" -D__TIME__="redacted" /Gy /Gw -w /arch:AVX /Fobazel-out/x64_windows-opt/bin/external/highwayhash/_objs/sip_hash/sip_hash.obj /c external/highwayhash/highwayhash/sip_hash.cc Execution platform: @bazel_tools//platforms:host_platform C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\INCLUDE\crtdefs.h(10): fatal error C1083: Cannot open include file: 'corecrt.h': No such file or directory Target //tensorflow/tools/pip_package:build_pip_package failed to build INFO: Elapsed time: 323.151s, Critical Path: 1.01s INFO: 0 processes. FAILED: Build did NOT complete successfully