之前用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
请问大家怎么解决呢?
离线
自己顶一下,希望得到大家的帮助
离线
代码呢?是不是申请太多内存了?
我跑了一个最简单的qt侧是程序,就只有两个按钮,没有做任何的功能
离线