(基于 TI8168) LINUX下QT环境配置,能用GDB+GDBSERVER进行调试

来源:互联网 发布:mysql数据库去重复 编辑:程序博客网 时间:2024/06/03 22:50

安装qt4.6.4(或者更高版本)+qtcreator 2.4.1(需要能够调试DVRGUI程序)

http://qt-project.org/downloads上面下载Qtlibraries 4.8.4 for Linux/X11 (225 MB)

qtcreator 2.4.1http://173.192.139.10/forum.phpmod=viewthread&tid=314&extra=page%3D1上下载

解压qt-everywhere-opensource-src-4.8.4.tar.gz

复制linux-TIarmv7-g++$(ROOT_DIR)/qt-everywhere-opensource-src-4.6.2/mkspecs/qws/

cp -r<DVR_RDK_INSTALL_DIR>/dvr_rdk/dvrapp/dvrgui/linux-TIarmv7-g++$(ROOT_DIR)/ qt-everywhere-opensource-src-4.6.2/mkspecs/qws/

设置环境变量

exportPATH=/usr/local/usr/local/CodeSourcery/Sourcery_G++_Lite/bin/:$PATH

运行./configure

./configure-embedded arm -platform /qws/linux-x86-g++ -xplatform/qws/linux-TIarmv7-g++ -depths 16,24,32 -little-endian -no-mmx

-no-3dnow-no-sse -no-sse2 -no-glib -no-cups -no-largefile -no-accessibility-no-openssl -no-gtkstyle -qt-freetype -qt-mouse-pc -qt-mouse-linuxtp

-qt-mouse-linuxinput-plugin-mouse-linuxtp -plugin-mouse-pc -fast -qt-gfx-transformed-opensource

运行make

运行makeinstall

时间较长

Addpath of QT for on the shell profile (like .bash_profile) as follows

运行gedit .bash_profile添加

exportQTDIR=/usr/local/qt-everywhere-opensource-src-4.6.4

exportQTLIB=/usr/local/qt-everywhere-opensource-src-4.6.4/lib

exportQTINC=/usr/local/qt-everywhere-opensource-src-4.6.4/include

参照usr/local/DVRRDK_03.00.00.00/dvr_rdk/docs/AppNotes/DM81xx_DVR_RDK_Qt_Instsallation_Guidelines.pdf(DVRRDK安装目录下)编译QT

安装qtcreator:

root@b04-desktop:/home/software#./qt-creator-linux-x86-opensource-2.4.1.bin


原创粉丝点击