交叉编译libfreefare-pcsc错误

时间:2018-03-05 09:24:55

标签: cross-compiling yocto

我正在尝试交叉编译libfreefare-pcsc for arm。 我使用yocto项目来做到这一点,我有一个配方。但是,配置脚本没有完成。它失败,错误“无法找到libnfc” 如何在配置中定义libnfc的路径?

这是日志:

`DEBUG: Executing python function sysroot_cleansstate
DEBUG: Python function sysroot_cleansstate finished
DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
DEBUG: Executing shell function autotools_preconfigure
DEBUG: Shell function autotools_preconfigure finished
DEBUG: Executing python function autotools_copy_aclocals
DEBUG: SITE files ['endian-little', 'bit-32', 'arm-common', 'arm-32', 'common-linux', 'common-glibc', 'arm-linux', 'arm-linux-gnueabi', 'common']
DEBUG: Python function autotools_copy_aclocals finished
DEBUG: Executing shell function do_configure
-- The C compiler identification is GNU 5.2.0
-- Check for working C compiler: /home/data3/src/git/Jethro_MobiTill/poky/MobiTill/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
-- Check for working C compiler: /home/data3/src/git/Jethro_MobiTill/poky/MobiTill/tmp/sysroots/x86_64-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
libnfc install dir: /libnfc
libnfc include dir found:  /home/data3/src/git/Jethro_MobiTill/poky/MobiTill/tmp/sysroots/cubieboard2/usr/include
libnfc library found:  LIBNFC_LIBRARIES-NOTFOUND
CMake Error at /home/data3/src/git/Jethro_MobiTill/poky/MobiTill/tmp/sysroots/x86_64-linux/usr/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:148 (message):
  Could NOT find LIBNFC (missing: LIBNFC_LIBRARIES)
Call Stack (most recent call first):
  /home/data3/src/git/Jethro_MobiTill/poky/MobiTill/tmp/sysroots/x86_64-linux/usr/share/cmake-3.3/Modules/FindPackageHandleStandardArgs.cmake:388 (_FPHSA_FAILURE_MESSAGE)
  cmake/modules/FindLIBNFC.cmake:17 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  CMakeLists.txt:9 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/data3/src/git/Jethro_MobiTill/poky/MobiTill/tmp/work/cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi/libfreefare-pcsc/1.0-r0/libfreefare-pcsc-1.0/CMakeFiles/CMakeOutput.log".
WARNING: exit code 1 from a shell command.
ERROR: Function failed: do_configure (log file is located at /home/data3/src/git/Jethro_MobiTill/poky/MobiTill/tmp/work/cortexa7hf-vfp-vfpv4-neon-poky-linux-gnueabi/libfreefare-pcsc/1.0-r0/temp/log.do_configure.17650)`

0 个答案:

没有答案