Could not open egl display-1
挂载文件系统到板子的/tmp目录,把虚拟机上面的qt环境里面的库文件拷贝到文件系统的/tmp目录,保持链接属性
ifconfig eth0 200.200.4.234
mount -o nolock 200.200.4.233:/my-imx6/05_rootfs/rootfs/myzr-rootfs/3.14.52/rootfs-qt5 /tmp
cp -rf -d /opt/fsl-imx-fb/3.14.52-1.1.0/sysroots/cortexa9hf-vfp-neon-poky-linux-gnueabi/usr/lib/* /my-imx6/05_rootfs/rootfs/myzr-rootfs/3.14.52/rootfs-qt5/tmp
然后再把文件系统的/tmp目录拷贝到板子的/usr/lib目录下
Could not open egl display-1没有全部截取所有文件,但是看到库文件有泛红的地方
而直接查看qt环境的库目录,则没有这些泛红的地方
Could not open egl display-1以libanl.so为例
Could not open egl display-1它是一个软链接,指向的是…/…/lib/liban1.so.1
而这个动态库文件按照上述操作步骤,则根本没有拷贝到文件系统,更不会在后面的步骤被拷贝到板子的/usr/lib目录下面了

那怎么办呢,试一下下面这种方式
cd /opt/fsl-imx-fb/3.14.52-1.1.0/sysroots
cp -rf cortexa9hf-vfp-neon-poky-linux-gnueabi/ /my-imx6/05_rootfs/rootfs/myzr-rootfs/3.14.52/rootfs-qt5/
cd /my-imx6/05_rootfs/rootfs/myzr-rootfs/3.14.52/rootfs-qt5/
chmod -R 777 cortexa9hf-vfp-neon-poky-linux-gnueabi/
这样这些库便到了板子的/tmp目录下面了
用-L命令还是不行

相关文章: