zcu102出现运行可执行程序时出现的错误

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接: https://blog.csdn.net/qq_40547016/article/details/102756269

zcu102运行可执行程序出现如下错误:
error:unable to open xlnx;

主要原因是petalinux生成硬件平台时的配置问题
解决方式:
(1)对petalinux-config -c kernel 步骤中出现的图形配置界面进行设置

Device Drivers -> Staging drivers
<*> Xilinx APF Accelerator driver ===> XILINX_APF=y

Device Drivers -> Staging drivers -> Xilinx APF Accelerator driver
[*] Xilinx APF DMA engines support ===> XILINX_DMA_APF=y

(2)gedit /project-spec/meta-user/recipes-bsp/device-tree/files/system-user.dtsi 将设备树的内容替换为

/ {
    xlnk {
        compatible = "xlnx,xlnk-1.0";
    };
};

(3)petalinux-build

参考网址:
(https://forums.xilinx.com/t5/Embedded-Linux/Error-unable-to-open-xlnk-in-Ubuntu-16-04/td-p/918520)

zcu102运行可执行程序出现如下错误:
./hello_world:error while loading shared libraries:libstdc++.so.6:cannot open shared object file: No such file or directory

主要原因是petalinux生成硬件平台时没有添加相关组建
解决方法:
对petalinux-config -c rootfs步骤中出现的图形配置界面进行设置
(1)选择进入Petalinux Package Groups---->packagegroup-petalinux-qt---->ctrl Y
(2)packagegroup-petalinux-qt-extended---->ctrl Y
(3)packagegroup-petalinux-x11---->ctrl Y
(4)还有一个xlnx。

参考网址:
(https://blog.csdn.net/botao_li/article/details/86712517)

猜你喜欢

转载自blog.csdn.net/qq_40547016/article/details/102756269