kahou

导航

ubuntu1604使用之旅——Qt交叉编译移植

1、手头已有Qt-Embedded-5.7.0.tar.gz

2、解压

3、sudo cp Qt-Embedded-5.7.0 -r  /usr/local/

4、sudo vim ~/.bashrc

文末加入:

export QTDIR=/usr/local/Qt-Embedded-5.7.0
export PATH=$QTDIR/bin:$PATH
export QT_QPA_PLATFORM_PLUGIN_PATH=$QTDIR/plugins
export QT_QPA_PLATFORM_PATH=$QTDIR/plugins
export QT_QPA_PLATFORM=linuxfb
export QT_QPA_FONTDIR=/usr/share/fonts
export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
export QT_QPA_EVDEV_TOUCHSCREEN_PARAMETERS=/dev/input/event0
export QMLSCENE_DEVICE=softwarecontext
export QML2_IMPORT_PATH=$QTDIR/qml

5、环境变量修改生效

source ~/.bashrc

posted on 2018-03-23 10:27  kahou  阅读(287)  评论(0编辑  收藏  举报