九鼎创展论坛

标题: linux-QT::fakeroot: preload library `libfakeroot.so' not found, aborting. [打印本页]

作者: niuyi    时间: 2016-10-28 17:14
标题: linux-QT::fakeroot: preload library `libfakeroot.so' not found, aborting.

编译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?


如何解决这个问题?
作者: hhy    时间: 2016-11-1 09:35
输入make menuconfig进行配置,进入Target options菜单,将Enable VFP extension support选上,Target ABI选择EABIhf 。

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

保存退出重新编译。

作者: armeasy    时间: 2016-11-30 13:33
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目录,重新编译即可.




欢迎光临 九鼎创展论坛 (http://bbs.9tripod.com/) Powered by Discuz! X3.2