我在构建Anjay https://github.com/AVSystem/Anjay的教程代码方面遇到了一些困难。医生不是很有帮助。
我试了一个简单的:
cd examples/tutorial/custom-object
cmake . && make但我得到了这样的信息:
By not providing "Findanjay.cmake" in CMAKE_MODULE_PATH this project has
asked CMake to find a package configuration file provided by "anjay", but
CMake did not find one.
Could not find a package configuration file provided by "anjay" with any of
the following names:
anjayConfig.cmake
anjay-config.cmake
Add the installation prefix of "anjay" to CMAKE_PREFIX_PATH or set
"anjay_DIR" to a directory containing one of the above files. If "anjay"
provides a separate development package or SDK, be sure it has been
installed.
CMake Warning (dev) in CMakeLists.txt:
No cmake_minimum_required command is present. A line of code such as
cmake_minimum_required(VERSION 3.10)
should be added at the top of the file. The version specified may be lower
if you wish to support older CMake versions for this project. For more
information run "cmake --help-policy CMP0000".
This warning is for project developers. Use -Wno-dev to suppress it.如有任何建议,我将不胜感激。谢谢。
发布于 2020-04-09 14:26:32
我也在做同样的事。错误是因为您没有在本地系统上安装anjay库,或者提供了一种CMake查找它的方法。我通过编译文档中提到的步骤安装了它
在Anjay目录的根目录中执行以下命令:
cmake . && make && sudo make installhttps://stackoverflow.com/questions/61035805
复制相似问题