Jetson TX1 Qt操作码无效

时间:2017-07-28 19:28:43

标签: c++ qt arm qml nvidia

我在NVIDIA的Jetson TX1主板上编译了(make -j4)并安装了(sudo make install)Qt 5.9.1,配置命令为

./configure 
 -opensource 
 -confirm-license 
 -release
 -linuxfb
 -no-tslib
 -no-sql-sqlite
 -qt-libpng
 -qt-libjpeg
 -qt-freetype
 -qt-xkbcommon-x11
 -skip multimedia
 -skip wayland
 -skip winextras
 -skip webchannel
 -skip webengine
 -skip websockets
 -skip webkit
 -skip webview
 -skip webkit-examples
 -nomake examples
 -nomake tests
 -nomake tools
 -prefix /usr
 -opengl es2

一切都编好了,我的QtQuick项目编译得很好 当我执行程序时,麻烦就开始了 在发布模式下,程序将运行半分钟,然后在没有任何消息的情况下崩溃。在调试模式下,程序在启动时崩溃。我使用Callgrind来查明崩溃原因并得到以下消息: enter image description here

由于我已经使用提供的gcc / g ++编译器编译了Qt,所以我不知道为什么在库中可以找到无效的操作码。
知道问题可能是什么?

2 个答案:

答案 0 :(得分:0)

使用Qt(OS:Ubuntu 16.04,x64)时,我在Jetson TX2上遇到了一些麻烦。我用过这个教程: Install Jetson

它对我有用,所以也许你可以用上面提到的依赖来尝试它。

答案 1 :(得分:0)

所以我认为在经过繁琐的调试后我得到了问题的根源。 显然,在aarch64系统上使用QML中的QCharts并不能真正起作用,至少它会导致崩溃。当从我的QML文件中删除所有QCharts时,程序开始工作,虽然我现在有内存泄漏,可能源自QML Image类(即使禁用了缓存),所以我想用我的替换它自己的renderalgorithm。

相关问题