您尚未登录。

楼主 # 2021-06-25 17:33:48

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

V3S运行Qt程序报错terminate called after throwing an instance of 'std::bad_al

之前用buildroot-2017.08.1编译的根文件系统没有问题
用最新的buildroot-2021.05-rc1编译出来运行Qt程序之后报如下的错误
# ./aaa
terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted
# ./aaa -platform linuxfb
terminate called after throwing an instance of 'std::bad_alloc'
  what(): 

Qt的配置如下

export QT_ROOT=/usr/lib/qt
export TSLIB_ROOT=/usr/lib/ts
export TSLIB_CONSOLEDEVICE=none
export TSLIB_FBDEVICE=/dev/fb0
export TSLIB_TSDEVICE=/dev/input/event1
export TSLIB_CONFFILE=/etc/ts.conf
export TSLIB_CALIBFILE=/etc/pointercal
export QT_QPA_GENERIC_PLUGINS=tslib:/dev/input/event1
export QT_QPA_PLATFORM_PLUGIN_PATH=$QT_ROOT/plugins
export QT_QPA_PLATFORM=linuxfb:tty=/dev/fb0
export QT_PLUGIN_PATH=$QT_ROOT/plugins
export LD_LIBRARY_PATH=$QT_ROOT/lib:$QT_ROOT/plugins/platforms
export QT_QPA_FB_TSLIB=1

请问大家怎么解决呢?

离线

楼主 #1 2021-06-28 08:20:28

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: V3S运行Qt程序报错terminate called after throwing an instance of 'std::bad_al

自己顶一下,希望得到大家的帮助

离线

楼主 #3 2021-06-28 11:07:48

zhang235hai
会员
注册时间: 2020-04-06
已发帖子: 212
积分: 165

Re: V3S运行Qt程序报错terminate called after throwing an instance of 'std::bad_al

哇酷小二 说:

代码呢?是不是申请太多内存了?


我跑了一个最简单的qt侧是程序,就只有两个按钮,没有做任何的功能

离线

页脚

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

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