九鼎创展论坛中文版English
登录 | 立即注册 设为首页收藏本站 切换到宽版
查看: 6767|回复: 2
打印 上一主题 下一主题

linux-QT::fakeroot: preload library `libfakeroot.so' not found, aborting.

[复制链接]
跳转到指定楼层
楼主
发表于 2016-10-28 17:14:03 | 只看该作者 |只看大图 回帖奖励 |倒序浏览 |阅读模式

编译buildroot时:
在linux-QT的buildroot源码目录下:


buildroot$ make
。。。。。。。。。
printf '        /bin/busybox                     f 4755 0  0 - - - - -\n         /usr/libexec/dbus-daemon-launch-helper f 4755 0 0 - - - - -\n /dev/console c 622 0 0 5 1 - - -\n' >> /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/build/_device_table.txt
echo "/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/usr/bin/makedevs -d /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/build/_device_table.txt /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/target" >> /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/build/_fakeroot.fs
echo "        PATH="/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/bin:/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/sbin:/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/usr/bin:/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" mke2img -d /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/target -G 4 -R 1 -B 0 -I 0 -o /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/images/rootfs.ext2" >> /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/build/_fakeroot.fs
chmod a+x /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/build/_fakeroot.fs
PATH="/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/bin:/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/sbin:/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/usr/bin:/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/host/usr/bin/fakeroot -- /home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/build/_fakeroot.fs
fakeroot: preload library `libfakeroot.so' not found, aborting.
make[1]: *** [/home/niuyi/rk3288_src/qt/system.img/buildroot-2016.02/output/images/rootfs.ext2] Error 1
make: *** [_all] Error 2

buildroot$sudo apt-get install libfakeroot
Reading package lists... Done
Building dependency tree      
Reading state information... Done
libfakeroot is already the newest version

已经是最新版本,怎么还是not found?


如何解决这个问题?
回复

使用道具 举报

沙发
发表于 2016-11-1 09:35:28 | 只看该作者
输入make menuconfig进行配置,进入Target options菜单,将Enable VFP extension support选上,Target ABI选择EABIhf 。

返回上一级,进入Toolchain菜单,将Enable MMU support选上,进入Toolchain选择Linaro ARM 2015.11。

保存退出重新编译。
回复 支持 反对

使用道具 举报

板凳
发表于 2016-11-30 13:33:17 | 只看该作者
buildroot/package/fackroot.mk:

################################################################################
#
# fakeroot
#
################################################################################

FAKEROOT_VERSION = 1.20.2
FAKEROOT_SOURCE = fakeroot_$(FAKEROOT_VERSION).orig.tar.bz2
FAKEROOT_SITE = http://snapshot.debian.org/archi ... ool/main/f/fakeroot
# Force capabilities detection off
# For now these are process capabilities (faked) rather than file
# so they're of no real use
HOST_FAKEROOT_CONF_ENV = \
        ac_cv_header_sys_capability_h=no \
        ac_cv_func_capset=no

FAKEROOT_LICENSE = GPLv3+
FAKEROOT_LICENSE_FILES = COPYING

HOST_FAKEROOT_AUTORECONF=YES

define HOST_FAKEROOT_POST_PATCH_FIXUP
        mkdir $(HOST_FAKEROOT_DIR)/build-aux
endef

HOST_FAKEROOT_POST_PATCH_HOOKS += HOST_FAKEROOT_POST_PATCH_FIXUP

$(eval $(host-autotools-package))

修改后删掉output目录,重新编译即可.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|小黑屋|深圳市九鼎创展科技官方论坛 ( 粤ICP备11028681号-2  

GMT+8, 2024-11-25 16:30 , Processed in 0.041658 second(s), 19 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表