首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >BB配方中的CMake

BB配方中的CMake
EN

Stack Overflow用户
提问于 2018-03-03 20:53:56
回答 1查看 884关注 0票数 1

我正在为cpsumon开发一个OpenEmbedded层,这是一个用C编写的工具,用于监控Corsair AXi电源单元(电源单元)。

我的图层的代码可以在https://github.com/bernardoaraujor/meta-cpsumon上找到

我使用Make和CMake的经验非常有限,我很难理解以下错误:

代码语言:javascript
复制
[bernardo@localhost build-genericx86-64]$ bitbake cpsumon
WARNING: Host distribution "fedora-27" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
Loading cache: 100% |###############################################################################################################################################################################| Time: 0:00:00
Loaded 1312 entries from dependency cache.
NOTE: Resolving any missing task queue dependencies
Build Configuration:
BB_VERSION           = "1.36.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "x86_64-poky-linux"
MACHINE              = "genericx86-64"
DISTRO               = "poky"
DISTRO_VERSION       = "2.4.2"
TUNE_FEATURES        = "m64 core2"
TARGET_FPU           = ""
meta-intel           = "rocko:49187e370e7d5370c7adc5a6f1b721b950667113"
meta                 
meta-poky            
meta-yocto-bsp       = "rocko:50189fdf620bc9ca42065998ce8c5a796ad8c331"
meta-mobiles         = "master:147a75c68e60392e3194c17371b447d1183fd8b7"
meta-cpsumon         = "master:281afc3077384716dd3954af4c43dfa76609bb81"
Initialising tasks: 100% |##########################################################################################################################################################################| Time: 0:00:00
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: cpsumon-git-r0 do_install: Function failed: do_install (log file is located at /home/bernardo/dev/yocto/poky/build-genericx86-64/tmp/work/core2-64-poky-linux/cpsumon/git-r0/temp/log.do_install.3666)
ERROR: Logfile of failure stored in: /home/bernardo/dev/yocto/poky/build-genericx86-64/tmp/work/core2-64-poky-linux/cpsumon/git-r0/temp/log.do_install.3666
Log data follows:
| DEBUG: Executing python function extend_recipe_sysroot
| NOTE: Direct dependencies are ['virtual:native:/home/bernardo/dev/yocto/poky/meta/recipes-devtools/pkgconfig/pkgconfig_git.bb:do_populate_sysroot', '/home/bernardo/dev/yocto/poky/meta/recipes-devtools/quilt/quilt-native_0.65.bb:do_populate_sysroot', 'virtual:native:/home/bernardo/dev/yocto/poky/meta/recipes-devtools/pseudo/pseudo_1.8.2.bb:do_populate_sysroot', '/home/bernardo/dev/yocto/poky/meta/recipes-devtools/cmake/cmake-native_3.8.2.bb:do_populate_sysroot', '/home/bernardo/dev/yocto/poky/meta/recipes-core/glibc/glibc_2.26.bb:do_populate_sysroot', '/home/bernardo/dev/yocto/poky/meta/recipes-devtools/gcc/gcc-cross_7.3.bb:do_populate_sysroot', '/home/bernardo/dev/yocto/poky/meta/recipes-devtools/gcc/gcc-runtime_7.3.bb:do_populate_sysroot']
| NOTE: Installed into sysroot: ['pseudo-native']
| NOTE: Skipping as already exists in sysroot: ['pkgconfig-native', 'quilt-native', 'cmake-native', 'glibc', 'gcc-cross-x86_64', 'gcc-runtime', 'automake-native', 'autoconf-native', 'gnu-config-native', 'libtool-native', 'expat-native', 'curl-native', 'bzip2-native', 'zlib-native', 'xz-native', 'texinfo-dummy-native', 'libmpc-native', 'mpfr-native', 'linux-libc-headers', 'gmp-native', 'binutils-cross-x86_64', 'libgcc', 'm4-native', 'pigz-native', 'openssl-native', 'gettext-minimal-native', 'flex-native', 'bison-native', 'cryptodev-linux-native', 'makedepend-native', 'xproto-native', 'util-macros-native']
| DEBUG: Python function extend_recipe_sysroot finished
| DEBUG: Executing shell function do_install
| NOTE: DESTDIR=/home/bernardo/dev/yocto/poky/build-genericx86-64/tmp/work/core2-64-poky-linux/cpsumon/git-r0/image cmake --build /home/bernardo/dev/yocto/poky/build-genericx86-64/tmp/work/core2-64-poky-linux/cpsumon/git-r0/build --target install -- -j 2
| make: *** No rule to make target 'install'.  Stop.
| WARNING: /home/bernardo/dev/yocto/poky/build-genericx86-64/tmp/work/core2-64-poky-linux/cpsumon/git-r0/temp/run.do_install.3666:1 exit 2 from 'DESTDIR='/home/bernardo/dev/yocto/poky/build-genericx86-64/tmp/work/core2-64-poky-linux/cpsumon/git-r0/image' cmake --build '/home/bernardo/dev/yocto/poky/build-genericx86-64/tmp/work/core2-64-poky-linux/cpsumon/git-r0/build' --target install -- -j 2'
| ERROR: Function failed: do_install (log file is located at /home/bernardo/dev/yocto/poky/build-genericx86-64/tmp/work/core2-64-poky-linux/cpsumon/git-r0/temp/log.do_install.3666)
ERROR: Task (/home/bernardo/dev/yocto/meta-cpsumon/recipes-core/cpsumon/cpsumon_git.bb:do_install) failed with exit code '1'
Second Keyboard Interrupt, stopping...

Summary: 1 task failed:
  /home/bernardo/dev/yocto/meta-cpsumon/recipes-core/cpsumon/cpsumon_git.bb:do_install
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
[bernardo@localhost build-genericx86-64]$ 

据我所知,| make: *** No rule to make target 'install'. Stop.意味着BitBake正在尝试使用--target install执行cmall,而由于某种原因,make不能执行install任务。对吗?

我不明白这个问题是必须在CMakeLists.txt还是cpsumon_git.bb中解决。任何帮助都是非常感谢的!

EN

回答 1

Stack Overflow用户

发布于 2018-03-14 05:57:59

cpsumon的CMake脚本实际上并不在任何地方安装库,因此生成的makefile不包含install目标。

因此,当do_install任务执行make install时,您会收到来自make的错误消息

make: *** No rule to make target 'install'.

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/49084325

复制
相关文章

相似问题

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