全志A33搭建 QT 4.7.4和qt creator 开发环境

环境

PC : ubuntu 16.04 64it

ARM : A33-Vstar 开发板


使用8.0寸RGB 800*600液晶屏 LCD 无触摸参数如下
[lcd0_para]
lcd_used            = 1

lcd_driver_name     = "default_lcd"
lcd_if              = 0
lcd_x               = 800
lcd_y               = 600
lcd_width           =
lcd_height          =
lcd_dclk_freq       = 40
lcd_pwm_used        = 1
lcd_pwm_ch          = 0
lcd_pwm_freq        = 50000
lcd_pwm_pol         = 1
lcd_hbp             = 46
lcd_ht              = 1056
lcd_hspw            = 1
lcd_vbp             = 23
lcd_vt              = 635
lcd_vspw            = 1
lcd_lvds_if         = 0
lcd_lvds_colordepth = 0
lcd_lvds_mode       = 0
lcd_frm             = 1
lcd_io_phase        = 0x0100
lcd_gamma_en        = 0
lcd_bright_curve_en = 0
lcd_cmap_en         = 0

deu_mode            = 0
lcdgamma4iep        = 22
smart_color        = 90
[ps:烧写是自行编译的固件,出去tslib屏幕校准 ]
开发部自带的源码 qt4.7.4的库已经编译成功,现在需要是PC Linux上的环境搭建

1.使用qt-creator文件为 qt-creator-opensource-linux-x86_64-4.0.3.run

    sudo chmod 777 qt-creator-opensource-linux-x86_64-4.0.3.run 修改权限,然后运行。一步步的安装就可

2.ubuntu下解压arm-2009q3.tar.gz2和qt-4.7.4-rervision_20161108.tar.bz2和tslib.tar.bz2【这个tslib必须有】

sun@sun:~/a33$ 
sun@sun:~/a33$ tar xf arm-2009q3.tar.gz 
sun@sun:~/a33$ cd arm-2009q3/
sun@sun:~/a33/arm-2009q3$ ls
*.*  arm-none-linux-gnueabi  bin  lib  libexec  share
sun@sun:~/a33/arm-2009q3$ cd bin/
sun@sun:~/a33/arm-2009q3/bin$ 
sun@sun:~/a33/arm-2009q3/bin$ 
sun@sun:~/a33/arm-2009q3/bin$ pwd
pwd   pwdx  
sun@sun:~/a33/arm-2009q3/bin$ pwd
/home/sun/a33/arm-2009q3/bin
sun@sun:~/a33/arm-2009q3/bin$ sudo vi /etc/environment 
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/sun/a33/arm-2009q3/bin/:/home/sun/nanopineo2/gcc-linaro-6.3.1-2017.02-x86_64_aarch64-linux-gnu/bin/:/home/sun/im6q/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/:/home/sun/nanopineo/4.9.3/bin:/home/sun/raspberry/tools-master/arm-bcm2708/arm-linux-gnueabihf/bin:/opt/Trolltech_a33/lib:/opt/Trolltech_a33/include"
【环境变量加入/home/sun/a33/arm-2009q3/bin】 然后测试
sudo: unable to resolve host sun
[sudo] password for sun: 
sun@sun:~/a33/arm-2009q3/bin$ arm-none-linux-gnueabi-gcc -v
Using built-in specs.
COLLECT_GCC=arm-none-linux-gnueabi-gcc
COLLECT_LTO_WRAPPER=/opt/FriendlyARM/toolschain/4.5.1/libexec/gcc/arm-none-linux-gnueabi/4.5.1/lto-wrapper
Target: arm-none-linux-gnueabi
Configured with: /work/toolchain/build/src/gcc-4.5.1/configure --build=i686-build_pc-linux-gnu --host=i686-build_pc-linux-gnu --target=arm-none-linux-gnueabi --prefix=/opt/FriendlyARM/toolschain/4.5.1 --with-sysroot=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root --enable-languages=c,c++ --disable-multilib --with-cpu=arm1176jzf-s --with-tune=arm1176jzf-s --with-fpu=vfp --with-float=softfp --with-pkgversion=ctng-1.8.1-FA --with-bugurl=http://www.arm9.net/ --disable-sjlj-exceptions --enable-__cxa_atexit --disable-libmudflap --with-host-libstdcxx='-static-libgcc -Wl,-Bstatic,-lstdc++,-Bdynamic -lm' --with-gmp=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-mpfr=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-ppl=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-cloog=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-mpc=/work/toolchain/build/arm-none-linux-gnueabi/build/static --with-libelf=/work/toolchain/build/arm-none-linux-gnueabi/build/static --enable-threads=posix --with-local-prefix=/opt/FriendlyARM/toolschain/4.5.1/arm-none-linux-gnueabi/sys-root --disable-nls --enable-symvers=gnu --enable-c99 --enable-long-long
Thread model: posix
gcc version 4.5.1 (ctng-1.8.1-FA) 
sun@sun:~/a33/arm-2009q3/bin$ 
 出现error while loading shared libraries: libQtGui.so.4: cannot open shared object file: No such file or directory
export LD_LIBRARY_PATH='/opt/Trolltech/lib'

ubuntu x64下qt


cd ./x64/qt-everywhere-opensource-src-4.7.4
./configure -prefix /opt/Trolltech_x64
make -j4 
sudo make install
[检查是否是上面,的文件路径]
 

a33 下的qt 编译程序需要的 Qmake 和lib

cd ./a33/qt-everywhere-opensource-src-4.7.4
 

vim vim autoconfig.sh 

#!/bin/sh./configure \-verbose \-prefix /home/sun/a33/qt4.7.4 \-opensource \-confirm-license \-release -shared \-embedded arm \-xplatform qws/linux-arm-gnueabi-g++ \-depths 16,18,24,32 -no-qvfb -no-svg \#-depths all \-fast \-optimized-qmake \-qt-libjpeg \-qt-zlib \-qt-libpng \-qt-freetype \-qt-mouse-linuxinput \-little-endian -host-little-endian \-webkit \-declarative \-no-qt3support \-no-mmx -no-sse -no-sse2 \-no-3dnow \-no-openssl \-no-qvfb \-no-phonon \-no-nis \-no-cups \-no-xcursor -no-xfixes -no-xrandr -no-xrender \-no-separate-debug-info \-no-pch \-nomake examples -nomake tools -nomake docs \-qt-mouse-tslib -I/opt/tslib/include -L/opt/tslib/lib -D QT_NO_QWS_CURSOR \-D QT_QWS_CLIENTBLIT \

make -j4

sudo make install

[注意install路径不要覆盖,标红的tslib路径也要自己修改]

然后就是qt creator 的配置自行百度






  • 1
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 3
    评论
评论 3
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值