zoukankan      html  css  js  c++  java
  • 嵌入式Linux应用程序开发环境搭建记录

    2016年2月

    参考资料:

    OK210软件手册(Linux版).pdf

    Ubuntu下Qt4.7.1编译环境配置说明.pdf

    我阅读了以下内容:

    OK210软件手册(Linux版).pdf  

    第七章 OK210平台 Linux编译篇

    附录五:Ubuntu的安装与设置

    Ubuntu下Qt4.7.1编译环境配置说明.pdf 全文

    记录:

    make distclean:清除所有生成的文件

    make clean:清除之前编译的可执行文件及配置文件, 清除上次的make命令所产生的object文件(后缀为“.o”的文件)及可执行文件

    一、OK210软件手册(Linux版).pdf

             附录五:Ubuntu的安装与设置

             F5.5 安装交叉编译器

             步骤4后添加source /etc/profile 来重新加载环境变量

    二、Ubuntu下Qt4.7.1编译环境配置说明.pdf

             1. 编译 tslib

             1.2修改 #sudo apt-get install g++

             1.5 # ./configure命令后每项之间是空格,执行完后gedit ./config.h,搜索rpl_malloc,修改为#undef rpl_malloc

             1.6步编译安装 make 2>&1 | tee make_log,执行完运行结果如下:

    mv -f .deps/ts_harvest.Tpo .deps/ts_harvest.Po

    /bin/bash ../libtool --tag=CC   --mode=link arm-linux-gcc  -DGCC_HASCLASSVISIBILITY -O2 -Wall -W   -o ts_harvest ts_harvest.o fbutils.o testutils.o font_8x8.o font_8x16.o ../src/libts.la -ldl

    libtool: link: arm-linux-gcc -DGCC_HASCLASSVISIBILITY -O2 -Wall -W -o .libs/ts_harvest ts_harvest.o fbutils.o testutils.o font_8x8.o font_8x16.o  ../src/.libs/libts.so -ldl -Wl,-rpath -Wl,/usr/local/arm/tslib/lib

    make[2]: Leaving directory `/root/tslib/tests'

    make[2]: Entering directory `/root/tslib'

    make[2]: Nothing to be done for `all-am'.

    make[2]: Leaving directory `/root/tslib'

    make[1]: Leaving directory `/root/tslib'

             1.7步运行结果:

    libtool: install: /usr/bin/install -c .libs/ts_print /usr/local/arm/tslib/bin/ts_print

    libtool: install: /usr/bin/install -c .libs/ts_print_raw /usr/local/arm/tslib/bin/ts_print_raw

    libtool: install: /usr/bin/install -c .libs/ts_harvest /usr/local/arm/tslib/bin/ts_harvest

    make[2]: Nothing to be done for `install-data-am'.

    make[2]: Leaving directory `/root/tslib/tests'

    make[1]: Leaving directory `/root/tslib/tests'

    make[1]: Entering directory `/root/tslib'

    make[2]: Entering directory `/root/tslib'

    make[2]: Nothing to be done for `install-exec-am'.

    test -z "/usr/local/arm/tslib/lib/pkgconfig" || /bin/mkdir -p "/usr/local/arm/tslib/lib/pkgconfig"

     /usr/bin/install -c -m 644 tslib-0.0.pc '/usr/local/arm/tslib/lib/pkgconfig'

    make[2]: Leaving directory `/root/tslib'

    make[1]: Leaving directory `/root/tslib'

    2.编译 Qt4.7.1

    分步执行build-all中指令

             build-all中命令修改如下:

    echo yes | ./configure -opensource -embedded arm -xplatform qws/linux-arm-g++  -no-webkit -qt-libtiff -qt-libmng  -qt-mouse-tslib -qt-mouse-pc -no-mouse-linuxtp -prefix /opt/qt-4.7.1   -I /usr/local/arm/tslib/include -L /usr/local/arm/tslib/lib

    configure后修改/mkspecs/qws/linux-arm-g++/qmake.conf 文件(添加 lts 参数):

    QMAKE_CC = arm-linux-gcc -lts

    QMAKE_CXX = arm-linux-g++ -lts

    QMAKE_LINK = arm-linux-g++ -lts

    QMAKE_LINK_SHLIB = arm-linux-g++ -lts

    注意:gcc和-lts之间要有空格

    修改后继续执行make 2>&1 | tee ../qte4.7.1Makelog && make install

     

     

  • 相关阅读:
    潘石屹出售上海外滩金融中心股权 4年没新增投资
    【BZOJ4036】【洛谷3175】【HAOI2015】—按位或(FMT+期望dp)
    信托配资清理“逃生通道”隐情
    中国在移动端的营销水平已超国外
    “土豪”们的新人生模型
    苏宁的逆市“O2O进化论”
    信汇中正领导力打造“必读12篇”之路
    你是否真的需要说声“谢谢”?
    新主管如何快速上手
    雷军和黄章又掐架了 不就是“不服跑个分”嘛
  • 原文地址:https://www.cnblogs.com/npucloud/p/5293814.html
Copyright © 2011-2022 走看看