TI中文支持网
TI专业的中文技术问题搜集分享网站

am335x的Qt问题,求教

问题一:

重新编译Qt5.6.1后移植到am335x板子后,跑一个空的Qt界面程序CPU占有率到达96%以上,导致很卡,求教这是什么问题导致,是不是我配置的问题?具体配置如下:

qmake.conf:

#
# qmake configuration for building with arm-linux-gnueabi-g++
#

MAKEFILE_GENERATOR      = UNIX
CONFIG                 += incremental
QMAKE_INCREMENTAL_STYLE = sublib

include(../common/linux.conf)
include(../common/gcc-base-unix.conf)
include(../common/g++-unix.conf)

QT_QPA_DEFAULT_PLATFORM = linuxfb                                              QMAKE_CFLAGS_RELEASE   += -O2 -march=armv7-a                                   QMAKE_CXXFLAGS_RELEASE += -O2 -march=armv7-a                                                                                                                   QMAKE_INCDIR += /home/pc335/tslib1.4/include                                               QMAKE_LIBDIR += /home/pc335/tslib1.4/lib

# modifications to g++.conf
QMAKE_CC                =arm-linux-gnueabihf-gccQMAKE_CXX               = arm-linux-gnueabihf-g++
QMAKE_LINK              = arm-linux-gnueabihf-g++QMAKE_LINK_SHLIB        =arm-linux-gnueabihf-g++

# modifications to linux.conf
QMAKE_AR                =arm-linux-gnueabihf-ar cqs
QMAKE_OBJCOPY           = arm-linux-gnueabihf-objcopy
QMAKE_NM                = arm-linux-gnueabihf-nm -P
QMAKE_STRIP             =arm-linux-gnueabihf-strip
load(qt_config)

 

configure配置:

./configure -prefix /home/am335x/hustQt5.6.1 -opensource -confirm-license -release -shared -xplatform linux-arm-hust -optimized-qmake -pch -qt-sql-sqlite -qt-libjpeg -qt-zlib -qt-libpng -qt-freetype -tslib -no-opengl -no-sse2 -no-openssl -no-nis -no-cups -no-glib -no-dbus -no-xcb -no-eglfs -no-xcursor -no-xfixes -no-xrandr -no-xrender -no-separate-debug-info -no-iconv -make libs -make examples -make tools -nomake tests -skip qt3d -skip qtcanvas3d -skip qtdoc -skip qtwayland -I/home/am335x/tslib1.4/include -L/home/am335x/tslib1.4/lib

问题二:

ti-processor-sdk-linux-rt-am335x-evm-02或者ti-processor-sdk-linux-rt-am335x-evm-03在am3352上使用linuxFb跑Qt5程序,触摸屏怎么校正? weston启动不了,不能用weston-calibrator校正,求教如何解决这个问题

LL shutor:

cpu占用率:

VIRT RES SHR S %CPU %MEM TIME+ COMMAND 60028 16660 11988 R 93.9 3.3 0:45.57 testQt

Qt程序:

#include "mainwindow.h"#include "ui_mainwindow.h"#include <QDebug>

MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent), ui(new Ui::MainWindow){ ui->setupUi(this);}

MainWindow::~MainWindow(){ delete ui;}

Jian Zhou:

回复 LL shutor:

首先确认下你的AM335x的板子,主频跑到多少,DDR的容量和运行速率是多少?

SDK里的Linux的启动脚本应该带有触摸屏校准的可执行程序。

Ace an:

回复 LL shutor:

请问cpu使用率高的问题解决了吗?我这里QT5.4.1 运行pinchzoom   CPU 使用率100%

LL shutor:

回复 Ace an:

运行QT5程序 CPU 使用率100%,你注意下你的Qt环境变量,export配置的地方

赞(0)
未经允许不得转载:TI中文支持网 » am335x的Qt问题,求教
分享到: 更多 (0)