step 1: 交叉编译qt5.6源码,得到Qt5库以及编译工具qmake
step 2: qmake Qt5.6 上的qml 例子
step 3: 将Qt5库以及例子应用程序移植到8168板子上
如:./chapter3-bindings
报错:
Could not open egl display
Aborted
evn:
export QTDIR=/usr/local/qt5 export QT_QPA_FONTDIR=$QTDIR/lib/fonts export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH export PATH=$QTDIR/bin:$PATH export PKG_CONFIG_PATH=$QTDIR/lib/pkgconfig/$PKG_CONFIG_PATH export DISPLAY=:0.0
Ternence_Hsu:
你试试把 显示缓冲区,配置到 framebuffer 上面;
export QWS_DISPLAY="LinuxFb:/dev/fb1"
export QWS_SIZE="1920×1080"配置到对应的fb
bi wang1:
回复 Ternence_Hsu:
qml应用程序必须使用eglfs插件,使用linuxfb时会报:
Failed to create OpenGL context for format QSurfaceFormat…..
这样的错误…