运行QT报错: error while loading shared libraries: libatomic.so. 1
-
D1-h 86panel 运行QT时报错
root@TinaLinux:/workspace/riscv-qt/examples/gui/analogclock# ./analogclock ./analogclock: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
ldd 查看依赖库是这样的
root@TinaLinux:/workspace/riscv-qt/examples/gui/analogclock# ldd ./analogclock linux-vdso.so.1 (0x0000003fe554c000) libQt5Gui.so.5 => /workspace/riscv-qt/lib/libQt5Gui.so.5 (0x0000003fe50f8000) libQt5Core.so.5 => /workspace/riscv-qt/lib/libQt5Core.so.5 (0x0000003fe4b36000) libpthread.so.0 => /lib64xthead/lp64d/libpthread.so.0 (0x0000003fe4b1c000) libatomic.so.1 => not found libstdc++.so.6 => /lib64xthead/lp64d/libstdc++.so.6 (0x0000003fe49a4000) libm.so.6 => /lib64xthead/lp64d/libm.so.6 (0x0000003fe4920000) libgcc_s.so.1 => /lib64xthead/lp64d/libgcc_s.so.1 (0x0000003fe490b000) libc.so.6 => /lib64xthead/lp64d/libc.so.6 (0x0000003fe47ff000) libatomic.so.1 => not found libatomic.so.1 => not found libdl.so.2 => /lib64xthead/lp64d/libdl.so.2 (0x0000003fe47fb000) /lib/ld-linux-riscv64xthead-lp64d.so.1 (0x0000003fe554e000) root@TinaLinux:/workspace/riscv-qt/examples/gui/analogclock#
我看是没有”libatomic.so.1“这个文件我就在Ubuntu里面find这个文件搬了一个tina目录里面的这个文件,还是不行
root@TinaLinux:/# find -name "libatomic.so.1" ./overlay/upper/workspace/riscv-qt/lib/libatomic.so.1 ./workspace/riscv-qt/lib/libatomic.so.1
环境配置文件是这样的:
Copyright © 2023 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号