Tensorflow Lite: 构建可安装包失败

kiayqfof  于 24天前  发布在  其他
关注(0)|答案(7)|浏览(26)

系统信息

  • 操作系统平台和发行版(例如,Linux Ubuntu 16.04): Linux Ubuntu 23.10
  • GCC/编译器版本(如果从源代码编译): 13.2.0
  • CUDA/cuDNN版本: 11.8
  • 已安装的依赖项:
cmake/mantic,now 3.27.4-1 amd64  [installiert]
cuda-11-8/unbekannt,now 11.8.0-1 amd64  [installiert]
g++/mantic,now 4:13.2.0-1ubuntu1 amd64  [Installiert,automatisch]
gcc/mantic,now 4:13.2.0-1ubuntu1 amd64  [Installiert,automatisch]
libabsl-dev/mantic,now 20220623.1-3 amd64  [installiert]
libcpuinfo-dev/mantic,now 0.0~git20220819.8ec7bd9-3 amd64  [installiert]
libeigen3-dev/mantic,now 3.4.0-4 all  [installiert]
libfarmhash-dev/mantic,now 0~git20190513.0d859a8-2 amd64  [installiert]
libflatbuffers-dev/mantic,now 2.0.8+dfsg1-6 amd64  [installiert]
libgemmlowp-dev/mantic,now 0.0~git20211220.e844ffd-1 amd64  [installiert]
libneon-2-sse-dev/mantic,now 0.0.0~git20220912.a15b489-2 all  [installiert]
libpthreadpool-dev/mantic,now 0.0~git20210507.1787867-1 amd64  [installiert]
libruy-dev/mantic,now 0.0.0~git20230215.21a85fe-1 amd64  [installiert]
libxnnpack-dev/mantic,now 0.0~git20221221.51a9875-1build1 amd64  [installiert]
  • 重现问题的确切命令:
$ cmake ../tensorflow/tensorflow/lite -DTFLITE_ENABLE_INSTALL=ON \
      -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON \
      -DSYSTEM_FARMHASH=ON \
      -DSYSTEM_PTHREADPOOL=ON \
      -Dabsl_DIR=/usr/lib/x86_64-linux-gnu/cmake/absl \
      -DEigen3_DIR=/usr/share/eigen3/cmake \
      -DFlatBuffers_DIR=/usr/lib/x86_64-linux-gnu/cmake/flatbuffers \
      -Dgemmlowp_DIR=/usr/lib/x86_64-linux-gnu/cmake/gemmlowp \
      -DNEON_2_SSE_DIR=/usr/lib/cmake/NEON_2_SSE \
      -Dcpuinfo_DIR=/usr/lib/x86_64-linux-gnu/cmake/cpuinfo \
      -Druy_DIR=/usr/lib/x86_64-linux-gnu/cmake/ruy

描述问题

按照文档中的说明使用cmake构建tensorflow lite的可安装包失败。

源代码/日志

-- Setting build type to Release, for debug builds use'-DCMAKE_BUILD_TYPE=Debug'.
-- The C compiler identification is GNU 13.2.0
-- The CXX compiler identification is GNU 13.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE  
-- Found farmhash: /usr/lib/x86_64-linux-gnu/libfarmhash.so  
CMake Warning (dev) at /usr/share/cmake-3.27/Modules/FetchContent.cmake:1316 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
download, the timestamps of extracted files should preferably be that of
the time of extraction, otherwise code that depends on the extracted
contents might not be rebuilt if the URL changes.  The OLD behavior
preserves the timestamps from the archive instead, but this is usually not
what you want.  Update your project to the NEW behavior or specify the
DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
robustness issue.
Call Stack (most recent call first):
tools/cmake/modules/OverridableFetchContent.cmake:398 (FetchContent_Declare)
tools/cmake/modules/fft2d.cmake:22 (OverridableFetchContent_Declare)
tools/cmake/modules/Findfft2d.cmake:18 (include)
CMakeLists.txt:150 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

-- The ASM compiler identification is GNU
-- Found assembler: /usr/bin/cc
-- Downloading cpuinfo to /home/me/Documents/GitHub/tflite_build/cpuinfo-source (define CPUINFO_SOURCE_DIR to avoid it)
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/cpuinfo-download
[ 11%] Creating directories for 'cpuinfo'
[ 22%] Performing download step (download, verify and extract) for 'cpuinfo'
-- Downloading...
dst='/home/me/Documents/GitHub/tflite_build/cpuinfo-download/cpuinfo-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/pytorch/cpuinfo/archive/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
-- [download 0% complete]
-- [download 1% complete]
-- [download 2% complete]
-- [download 3% complete]
-- [download 4% complete]
-- [download 5% complete]
-- [download 6% complete]
-- [download 7% complete]
-- [download 8% complete]
-- [download 9% complete]
-- [download 10% complete]
-- [download 11% complete]
-- [download 12% complete]
-- [download 13% complete]
-- [download 14% complete]
-- [download 15% complete]
-- [download 16% complete]
-- [download 17% complete]
-- [download 18% complete]
-- [download 19% complete]
-- [download 20% complete]
-- [download 21% complete]
-- [download 22% complete]
-- [download 23% complete]
-- [download 24% complete]
-- [download 25% complete]
-- [download 26% complete]
-- [download 27% complete]
-- [download 28% complete]
-- [download 29% complete]
-- [download 30% complete]
-- [download 31% complete]
-- [download 32% complete]
-- [download 33% complete]
-- [download 34% complete]
-- [download 35% complete]
-- [download 36% complete]
-- [download 37% complete]
-- [download 38% complete]
-- [download 39% complete]
-- [download 40% complete]
-- [download 41% complete]
-- [download 42% complete]
-- [download 43% complete]
-- [download 44% complete]
-- [download 45% complete]
-- [download 46% complete]
-- [download 47% complete]
-- [download 48% complete]
-- [download 49% complete]
-- [download 50% complete]
-- [download 51% complete]
-- [download 52% complete]
-- [download 53% complete]
-- [download 54% complete]
-- [download 55% complete]
-- [download 56% complete]
-- [download 57% complete]
-- [download 58% complete]
-- [download 59% complete]
-- [download 60% complete]
-- [download 61% complete]
-- [download 62% complete]
-- [download 63% complete]
-- [download 64% complete]
-- [download 65% complete]
-- [download 66% complete]
-- [download 67% complete]
-- [download 68% complete]
-- [download 69% complete]
-- [download 70% complete]
-- [download 71% complete]
-- [download 72% complete]
-- [download 73% complete]
-- [download 74% complete]
-- [download 75% complete]
-- [download 76% complete]
-- [download 77% complete]
-- [download 78% complete]
-- [download 79% complete]
-- [download 80% complete]
-- [download 81% complete]
-- [download 82% complete]
-- [download 83% complete]
-- [download 84% complete]
-- [download 85% complete]
-- [download 86% complete]
-- [download 87% complete]
-- [download 88% complete]
-- [download 89% complete]
-- [download 90% complete]
-- [download 91% complete]
-- [download 92% complete]
-- [download 93% complete]
-- [download 94% complete]
-- [download 95% complete]
-- [download 96% complete]
-- [download 97% complete]
-- [download 98% complete]
-- [download 99% complete]
-- [download 100% complete]
-- verifying file...
file='/home/me/Documents/GitHub/tflite_build/cpuinfo-download/cpuinfo-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
-- Downloading... done
-- extracting...
src='/home/me/Documents/GitHub/tflite_build/cpuinfo-download/cpuinfo-prefix/src/959002f82d7962a473d8bf301845f2af720e0aa4.zip'
dst='/home/me/Documents/GitHub/tflite_build/cpuinfo-source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'cpuinfo'
[ 44%] No patch step for 'cpuinfo'
[ 55%] No configure step for 'cpuinfo'
[ 66%] No build step for 'cpuinfo'
[ 77%] No install step for 'cpuinfo'
[ 88%] No test step for 'cpuinfo'
[100%] Completed 'cpuinfo'
[100%] Built target cpuinfo
-- Downloading FP16 to /home/me/Documents/GitHub/tflite_build/FP16-source (define FP16_SOURCE_DIR to avoid it)
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/FP16-download
[ 11%] Creating directories for 'fp16'
[ 22%] Performing download step (download, verify and extract) for 'fp16'
-- Downloading...
dst='/home/me/Documents/GitHub/tflite_build/FP16-download/fp16-prefix/src/0a92994d729ff76a58f692d3028ca1b64b145d91.zip'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/Maratyszcza/FP16/archive/0a92994d729ff76a58f692d3028ca1b64b145d91.zip'
-- [download 14% complete]
-- [download 45% complete]
-- [download 88% complete]
-- [download 99% complete]
-- [download 100% complete]
-- verifying file...
file='/home/me/Documents/GitHub/tflite_build/FP16-download/fp16-prefix/src/0a92994d729ff76a58f692d3028ca1b64b145d91.zip'
-- Downloading... done
-- extracting...
src='/home/me/Documents/GitHub/tflite_build/FP16-download/fp16-prefix/src/0a92994d729ff76a58f692d3028ca1b64b145d91.zip'
dst='/home/me/Documents/GitHub/tflite_build/FP16-source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'fp16'
[ 44%] No patch step for 'fp16'
[ 55%] No configure step for 'fp16'
[ 66%] No build step for 'fp16'
[ 77%] No install step for 'fp16'
[ 88%] No test step for 'fp16'
[100%] Completed 'fp16'
[100%] Built target fp16
-- Downloading FXdiv to /home/me/Documents/GitHub/tflite_build/FXdiv-source (define FXDIV_SOURCE_DIR to avoid it)
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/FXdiv-download
[ 11%] Creating directories for 'fxdiv'
[ 22%] Performing download step (download, verify and extract) for 'fxdiv'
-- Downloading...
dst='/home/me/Documents/GitHub/tflite_build/FXdiv-download/fxdiv-prefix/src/b408327ac2a15ec3e43352421954f5b1967701d1.zip'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/Maratyszcza/FXdiv/archive/b408327ac2a15ec3e43352421954f5b1967701d1.zip'
-- [download 65% complete]
-- [download 100% complete]
-- verifying file...
file='/home/me/Documents/GitHub/tflite_build/FXdiv-download/fxdiv-prefix/src/b408327ac2a15ec3e43352421954f5b1967701d1.zip'
-- Downloading... done
-- extracting...
src='/home/me/Documents/GitHub/tflite_build/FXdiv-download/fxdiv-prefix/src/b408327ac2a15ec3e43352421954f5b1967701d1.zip'
dst='/home/me/Documents/GitHub/tflite_build/FXdiv-source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'fxdiv'
[ 44%] No patch step for 'fxdiv'
[ 55%] No configure step for 'fxdiv'
[ 66%] No build step for 'fxdiv'
[ 77%] No install step for 'fxdiv'
[ 88%] No test step for 'fxdiv'
[100%] Completed 'fxdiv'
[100%] Built target fxdiv
-- Downloading pthreadpool to /home/me/Documents/GitHub/tflite_build/pthreadpool-source (define PTHREADPOOL_SOURCE_DIR to avoid it)
-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/pthreadpool-download
[ 11%] Creating directories for 'pthreadpool'
[ 22%] Performing download step (download, verify and extract) for 'pthreadpool'
-- Downloading...
dst='/home/me/Documents/GitHub/tflite_build/pthreadpool-download/pthreadpool-prefix/src/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip'
timeout='none'
inactivity timeout='none'
-- Using src='https://github.com/Maratyszcza/pthreadpool/archive/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip'
-- [download 18% complete]
-- [download 37% complete]
-- [download 56% complete]
-- [download 87% complete]
-- [download 95% complete]
-- [download 100% complete]
-- verifying file...
file='/home/me/Documents/GitHub/tflite_build/pthreadpool-download/pthreadpool-prefix/src/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip'
-- Downloading... done
-- extracting...
src='/home/me/Documents/GitHub/tflite_build/pthreadpool-download/pthreadpool-prefix/src/4fe0e1e183925bf8cfa6aae24237e724a96479b8.zip'
dst='/home/me/Documents/GitHub/tflite_build/pthreadpool-source'
-- extracting... [tar xfz]
-- extracting... [analysis]
-- extracting... [rename]
-- extracting... [clean up]
-- extracting... done
[ 33%] No update step for 'pthreadpool'
[ 44%] No patch step for 'pthreadpool'
[ 55%] No configure step for 'pthreadpool'
[ 66%] No build step for 'pthreadpool'
[ 77%] No install step for 'pthreadpool'
[ 88%] No test step for 'pthreadpool'
[100%] Completed 'pthreadpool'
[100%] Built target pthreadpool
CMake Deprecation Warning at /home/me/Documents/GitHub/tflite_build/FP16-source/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

-- Downloading PSimd to /home/me/Documents/GitHub/tflite_build/psimd-source (define PSIMD_SOURCE_DIR to avoid it)
CMake Deprecation Warning at CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done (0.0s)
-- Generating done (0.0s)
-- Build files have been written to: /home/me/Documents/GitHub/tflite_build/psimd-download
[ 11%] Creating directories for 'psimd'
[ 22%] Performing download step (git clone) for 'psimd'
Klone nach 'psimd-source' …
Ihr Branch ist auf demselben Stand wie 'origin/master'.
Bereits auf 'master'
[ 33%] Performing update step for 'psimd'
[ 44%] No patch step for 'psimd'
[ 55%] No configure step for 'psimd'
[ 66%] No build step for 'psimd'
[ 77%] No install step for 'psimd'
[ 88%] No test step for 'psimd'
[100%] Completed 'psimd'
[100%] Built target psimd
CMake Deprecation Warning at /home/me/Documents/GitHub/tflite_build/psimd-source/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done (35.6s)
CMake Error in tools/cmake/modules/ml_dtypes/CMakeLists.txt:
Target "ml_dtypes" INTERFACE_INCLUDE_DIRECTORIES property contains path:

"/home/me/Documents/GitHub/tflite_build/ml_dtypes"

which is prefixed in the build directory.

CMake Error in tools/cmake/modules/ml_dtypes/CMakeLists.txt:
Target "ml_dtypes" INTERFACE_INCLUDE_DIRECTORIES property contains path:

"/home/me/Documents/GitHub/tflite_build/ml_dtypes/ml_dtypes"

which is prefixed in the build directory.

CMake Error: install(EXPORT "tensorflow-liteTargets" ...) includes target "tensorflow-lite" which requires target "pthreadpool" that is not in any export set.
CMake Error: install(EXPORT "tensorflow-liteTargets" ...) includes target "tensorflow-lite" which requires target "XNNPACK" that is not in any export set.
-- Generating done (0.4s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
cig3rfwq

cig3rfwq1#

我能够在 TF 2.14 和 nightly 中复现这个问题。

@pkgoogle 你能调查一下吗?
谢谢。

z18hc3ub

z18hc3ub2#

我能够在夜间进行复制:

# install prereqs
sudo apt-install cmake libabsl-dev libeigen3-dev flatbuffers-compiler libflatbuffers-dev libgemmlowp-dev libneon-2-sse-dev libcpuinfo-dev libruy-dev libfarmhash-dev libpthreadpool-dev
git clone https://github.com/tensorflow/tensorflow.git tensorflow_src
cd tensorflow_src
git switch nightly
git pull
cd ..
mkdir tflite_build
cd tflite_build
cmake ../tensorflow_src/tensorflow/lite -DTFLITE_ENABLE_INSTALL=ON \
  -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON \
  -DSYSTEM_FARMHASH=ON \
  -DSYSTEM_PTHREADPOOL=ON \
  -Dabsl_DIR=/usr/lib/x86_64-linux-gnu/cmake/absl \
  -DEigen3_DIR=/usr/share/eigen3/cmake \
  -DFlatBuffers_DIR=/usr/lib/x86_64-linux-gnu/cmake/flatbuffers \
  -Dgemmlowp_DIR=/usr/lib/x86_64-linux-gnu/cmake/gemmlowp \
  -DNEON_2_SSE_DIR=/usr/lib/cmake/NEON_2_SSE \
  -Dcpuinfo_DIR=/usr/lib/x86_64-linux-gnu/cmake/cpuinfo \
  -Druy_DIR=/usr/lib/x86_64-linux-gnu/cmake/ruy
...
-- Configuring done (1.4s)
CMake Error in tools/cmake/modules/ml_dtypes/CMakeLists.txt:
  Target "ml_dtypes" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/usr/local/google/home/xxxxxx/tflite_build/ml_dtypes"

  which is prefixed in the build directory.

CMake Error in tools/cmake/modules/ml_dtypes/CMakeLists.txt:
  Target "ml_dtypes" INTERFACE_INCLUDE_DIRECTORIES property contains path:

    "/usr/local/google/home/xxxxxx/tflite_build/ml_dtypes/ml_dtypes"

  which is prefixed in the build directory.

CMake Error: install(EXPORT "tensorflow-liteTargets" ...) includes target "tensorflow-lite" which requires target "pthreadpool" that is not in any export set.
CMake Error: install(EXPORT "tensorflow-liteTargets" ...) includes target "tensorflow-lite" which requires target "XNNPACK" that is not in any export set.
-- Generating done (0.7s)
CMake Generate step failed.  Build files cannot be regenerated correctly.

@terryheo,你能看一下吗?谢谢。

iqjalb3h

iqjalb3h3#

关于这个问题有什么新消息吗?

fxnxkyjh

fxnxkyjh4#

错误信息中的路径应该是什么呢?
/usr/local/google/home/xxxxxx/tflite_build/ml_dtypes/ml_dtypes
它在我的机器上不存在,我可能会误解这里的内容,但它似乎是硬编码的,假设我的主目录位于 /usr/local/google/home/USERNAME ,而构建目录 tflite_build 位于其根目录。这两种情况都不是。

yhqotfr8

yhqotfr85#

你好,@jagiella,
我遇到了相同的问题。我做了以下更改来解决它。
在 /home/xxx/dev/tensorflow/tensorflow/lite/tools/cmake/modules/ml_dtypes/CMakeLists.txt 文件中:
[tensorflow v2.15.0]
我将:

target_include_directories(ml_dtypes INTERFACE
  "${ML_DTYPES_SOURCE_DIR}"
  "${ML_DTYPES_SOURCE_DIR}/ml_dtypes")

替换为

target_include_directories(ml_dtypes INTERFACE
  "$<BUILD_INTERFACE:${ML_DTYPES_SOURCE_DIR}>" "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
  "$<BUILD_INTERFACE:${ML_DTYPES_SOURCE_DIR}/ml_dtypes>" "$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/ml_dtypes>")

请注意,这将把 ml_dtypes 包含直接放入您的 /usr/local/include 文件夹。我不知道这是否是预期的使用方法。但无论如何,这对我有效。
sources:
https://stackoverflow.com/questions/25676277/cmake-target-include-directories-prints-an-error-when-i-try-to-add-the-source
https://cmake.org/cmake/help/latest/command/target_include_directories.html
https://cmake.org/cmake/help/latest/manual/cmake-generator-expressions.7.html#export-and-install-expressions

jdgnovmf

jdgnovmf6#

这解决了问题的第一部分👍
但是pthreadpool和XNNPACK错误仍然存在:

$ cmake ../tensorflow_src/tensorflow/lite -DTFLITE_ENABLE_INSTALL=ON       -DCMAKE_FIND_PACKAGE_PREFER_CONFIG=ON       -DSYSTEM_FARMHASH=ON       -DSYSTEM_PTHREADPOOL=ON       -Dabsl_DIR=/usr/lib/x86_64-linux-gnu/cmake/absl       -DEigen3_DIR=/usr/share/eigen3/cmake       -DFlatBuffers_DIR=/usr/lib/x86_64-linux-gnu/cmake/flatbuffers       -Dgemmlowp_DIR=/usr/lib/x86_64-linux-gnu/cmake/gemmlowp       -DNEON_2_SSE_DIR=/usr/lib/cmake/NEON_2_SSE       -Dcpuinfo_DIR=/usr/lib/x86_64-linux-gnu/cmake/cpuinfo       -Druy_DIR=/usr/lib/x86_64-linux-gnu/cmake/ruy
-- Setting build type to Release, for debug builds use'-DCMAKE_BUILD_TYPE=Debug'.
CMake Warning (dev) at /usr/share/cmake-3.28/Modules/FetchContent.cmake:1331 (message):
  The DOWNLOAD_EXTRACT_TIMESTAMP option was not given and policy CMP0135 is
  not set.  The policy's OLD behavior will be used.  When using a URL
download, the timestamps of extracted files should preferably be that of
the time of extraction, otherwise code that depends on the extracted
contents might not be rebuilt if the URL changes.  The OLD behavior
preserves the timestamps from the archive instead, but this is usually not
what you want.  Update your project to the NEW behavior or specify the
DOWNLOAD_EXTRACT_TIMESTAMP option with a value of true to avoid this
robustness issue.
Call Stack (most recent call first):
tools/cmake/modules/OverridableFetchContent.cmake:398 (FetchContent_Declare)
tools/cmake/modules/fft2d.cmake:22 (OverridableFetchContent_Declare)
tools/cmake/modules/Findfft2d.cmake:18 (include)
CMakeLists.txt:152 (find_package)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Deprecation Warning at /home/me/Documents/GitHub/tflite_build/FP16-source/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

CMake Deprecation Warning at /home/me/Documents/GitHub/tflite_build/psimd-source/CMakeLists.txt:1 (CMAKE_MINIMUM_REQUIRED):
Compatibility with CMake < 3.5 will be removed from a future version of
CMake.

Update the VERSION argument <min> value or use a ...<max> suffix to tell
CMake that the project does not need compatibility with older versions.

-- Configuring done (0.8s)
CMake Error: install(EXPORT "tensorflow-liteTargets" ...) includes target "tensorflow-lite" which requires target "pthreadpool" that is not in any export set.
CMake Error: install(EXPORT "tensorflow-liteTargets" ...) includes target "tensorflow-lite" which requires target "XNNPACK" that is not in any export set.
-- Generating done (0.4s)
CMake Generate step failed.  Build files cannot be regenerated correctly.
xytpbqjk

xytpbqjk7#

你是否尝试过在配置步骤中仍然存在错误的情况下构建它?

从我的理解来看,构建系统(CMake)会在Tensorflow未安装的情况下,将缺失的依赖项一起安装。

仅供参考,我为我的项目记录了Tensorflow Lite的安装过程:
$x_{1e0f1}x$

相关问题