首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >构建Anjay教程代码

构建Anjay教程代码
EN

Stack Overflow用户
提问于 2020-04-04 22:52:12
回答 1查看 112关注 0票数 2

我在构建Anjay https://github.com/AVSystem/Anjay的教程代码方面遇到了一些困难。医生不是很有帮助。

我试了一个简单的:

代码语言:javascript
复制
cd examples/tutorial/custom-object
cmake . && make

但我得到了这样的信息:

代码语言:javascript
复制
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.

如有任何建议,我将不胜感激。谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-09 14:26:32

我也在做同样的事。错误是因为您没有在本地系统上安装anjay库,或者提供了一种CMake查找它的方法。我通过编译文档中提到的步骤安装了它

在Anjay目录的根目录中执行以下命令:

代码语言:javascript
复制
cmake . && make && sudo make install
票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61035805

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档