在 open-embedded 中构建 grpc 时,我在查找 c-ares 依赖项时遇到问题。在配置期间查找依赖项 c-ares 时,日志中的错误在日志中显示为 -
--
Found ZLIB: ....../poky/build/tmp-glibc/sysroots/arm7/usr/lib/libz.so (found version "1.2.8")
CMake Error at ....../poky/build/tmp-glibc/sysroots/arm7/usr/lib/cmake/c-ares/c-ares-targets.cmake:70 (message):
The imported target "c-ares::cares" references the file
"/usr/lib/libcares.so.2.2.0"
but this file does not exist. Possible reasons include:
* The file was deleted, renamed, or moved to another location.
* An install or uninstall procedure did not complete successfully.
* The installation package was faulty and contained
"/home/...../poky/build/tmp-glibc/sysroots/arm7/usr/lib/cmake/c-ares/c-ares-targets.cmake"
but not all the files it references.
--
问题似乎是 cmake 如何为 c-ares 配置导入前缀,在文件中配置如下 - poky/build/tmp-glibc/sysroots/arm7/usr/lib/cmake/c-ares/c-ares-目标.cmake。我相信它应该是进入目标暂存目录的路径
设置(_IMPORT_PREFIX“/usr”)
有人可以帮我确定这里的问题吗?为了获得正确的 _IMPORT_PREFIX 需要在 c-ares 配方中配置什么?任何帮助深表感谢。谢谢