您尚未登录。

楼主 # 2024-05-07 21:27:00

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

T113添加上电自动运行 失败,但是启动后单独去直接可执行文件又可以

我在这个目录/target/allwinner/t113-bingpi_m2/busybox-init-base-files/etc/init.d/rc.modules 的脚本中添加了自启动执行程序会启动失败 报错如下 ,但是 系统启动  我单独进这个目录执行程序 又可以执行成功  这是哪里有问题吗啊

Error loading shared library libQt5Widgets.so.5: No such file or directory (needed by /ysc/Printf_Machine)
Error loading shared library libQt5Gui.so.5: No such file or directory (needed by /ysc/Printf_Machine)
Error loading shared library libQt5Core.so.5: No such file or directory (needed by /ysc/Printf_Machine)
Trying to connect to SWUpdate...
Error relocating /ysc/Printf_Machine: _ZNK7QWidget6metricEN12QPaintDevice17PaintDeviceMetricE: symbol not found
Error relocating /ysc/Printf_Machine: _ZN7QWidget10leaveEventEP6QEvent: symbol not found
Error relocating /ysc/Printf_Machine: _ZN15QAbstractButton7setTextERK7QString: symbol not found
Error relocating /ysc/Printf_Machine: _ZN7QWidget13keyPressEventEP9QKeyEvent: symbol not found
Error relocating /ysc/Printf_Machine: _ZN7QWidget11tabletEventEP12QTabletEvent: symbol not found
Error relocating /ysc/Printf_Machine: _ZThn8_NK7QWidget7devTypeEv: symbol not found
Error relocating /ysc/Prin[    5.921800] FAT-fs (mmcblk0p1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
tf_Machine: _ZN7QWidget10closeEventEP11QCloseEvent: symbol not found
Error relocating /ysc/Printf_Machine: _ZThn8_NK7QWidget6me[    5.926053] file system registered
tricEN12QPaintDevice17PaintDeviceMetricE: symbol not found
Error relocating /ysc/Printf_Machine: _ZN7QObject10timerEventEP11QTimerEvent: symbol not found
Error relocating /ysc/Printf_Machine: _ZThn8_NK7QWidget11paintEngineEv: symbol not found
Error relo[    5.962073] configfs-gadget 4100000.udc-controller: failed to start g1: -19
cating /ysc/Printf_Machine: _ZN7QObject16disconnectNotifyERK11QMetaMethod: symbol not found
Error relocating /ysc/Printf_Machine: _ZThn8_NK7QWidget11initPainterEP8QPainter: symbol not found
Error relocating /ysc/Printf_Machine: _ZNK7QObject10objectNameEv: symbol not found
Error relocating /ysc/Printf_Machine: _ZN7QObject10childEventEP11QChildEvent: symbol not found
Error relocating /ysc/Printf_Machine: _ZN7QWidget14setWindowTitleERK7QString: symbol not found
Error relocating /ysc/Printf_Machine: _ZN7QWidget13focusOutEventEP11QFocusEvent: symbol not found
Error relocating /ysc/Printf_Machine: _ZNK7QWidget17hasHeightForWidthEv: symbol not found
Error relocating /ysc/Printf_Machine: _ZN11QPushButtonC1EP7QWidget: symbol not found
Error relocating /ysc/Printf_Machine: _ZN7QWidget14dragLeaveEventEP15QDragLeaveEvent: symbol not found
Error relocating /ysc/Printf_Machine: _ZN11QMainWindowC2EP7QWidget6QFlagsIN2Qt10WindowTypeEE: symbol not found
Error relocating /ysc/Printf_Machine: _ZN7QWidget18focusNextPrevChildEb: symbol not found
Error relocating /ysc/Printf_Machine: _ZN6QLabel7setTextERK7QString: symbol not found

离线

楼主 #1 2024-05-07 21:43:54

无情一刀
会员
注册时间: 2018-09-04
已发帖子: 716
积分: 698

Re: T113添加上电自动运行 失败,但是启动后单独去直接可执行文件又可以

从目前来看加载qt程序  可能是qt的库还没有全部加载进来 ,

离线

#2 2024-05-08 09:33:17

regbbs
会员
注册时间: 2020-04-06
已发帖子: 82
积分: 69.5

Re: T113添加上电自动运行 失败,但是启动后单独去直接可执行文件又可以

环境变量还没有设置,
Error loading shared library libQt5Widgets.so.5: No such file or directory
是没找到动态库。

离线

#3 2024-05-08 09:46:11

yuanxinfei
会员
注册时间: 2020-05-16
已发帖子: 9
积分: 9

Re: T113添加上电自动运行 失败,但是启动后单独去直接可执行文件又可以

运行前,export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/你的库路径

离线

页脚

工信部备案:粤ICP备20025096号 Powered by FluxBB

感谢为中文互联网持续输出优质内容的各位老铁们。 QQ: 516333132, 微信(wechat): whycan_cn (哇酷网/挖坑网/填坑网) service@whycan.cn