基于TI官方的SDK8.0 ,安装网上教程,把GPU编译到内核里了,直接测试GPU,跑官方的例子,是可以的。
/opt/gfxsdkdemos/ogles2/
./OGLES2ChameleonMan
是没有问题的,编译的是QT5.5 配置好了GPU路径,也没报错,编译好后,库放到文件系统下 /OPT下
加入qt_env.sh 脚本
export QTDIR=/opt/qt5.5_lib
export QT_QPA_FONTDIR=$QTDIR/lib/fonts
export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins/platforms
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QT_QPA_DEFAULT_PLATFORM=eglgs
export QT_QPA_EGLFS_WIDTH=800
export QT_QPA_EGLFS_HEIGHT=480
export QT_QPA_EGLFS_FB=/dev/fb0
脚本放在/etc/profile.d 下
修改 etc/powervr.ini
WindowSystem=libpvrQWSWSEGL.so
DisableHWTQTextureUpload=1
运行程序:
root@am335x-evm:/usr/qt# ./7Sonar
QML debugging is enabled. Only use this in a safe environment.
This application failed to start because it could not find or load the Qt platform plugin "xcb"
in "/opt/qt5.5_lib/plugins/platforms".
Available platform plugins are: directfbegl (from /opt/qt5.5_lib/plugins/platforms), directfb (from /opt/qt5.5_lib/plugins/platforms), eglfs (from /opt/qt5.5_lib/plugins/platforms), linuxfb (from /opt/qt5.5_lib/plugins/platforms), minimal (from /opt/qt5.5_lib/plugins/platforms), minimalegl (from /opt/qt5.5_lib/plugins/platforms), offscreen (from /opt/qt5.5_lib/plugins/platforms), eglfs, linuxfb, minimal, minimalegl, offscreen.
加入 -platform eglfs 选项
root@am335x-evm:/usr/qt# ./7Sonar -platform eglfs
QML debugging is enabled. Only use this in a safe environment.
This application failed to start because it could not find or load the Qt platform plugin "eglfs"
in "/opt/qt5.5_lib/plugins/platforms".
Available platform plugins are: directfbegl (from /opt/qt5.5_lib/plugins/platforms), directfb (from /opt/qt5.5_lib/plugins/platforms), eglfs (from /opt/qt5.5_lib/plugins/platforms), linuxfb (from /opt/qt5.5_lib/plugins/platforms), minimal (from /opt/qt5.5_lib/plugins/platforms), minimalegl (from /opt/qt5.5_lib/plugins/platforms), offscreen (from /opt/qt5.5_lib/plugins/platforms), eglfs, linuxfb, minimal, minimalegl, offscreen.
Reinstalling the application may fix this problem.
Aborted
还是错误!!求指点下,,头大了 ?哪里的问题,QT库,还是系统的问题。

