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

     

     

  • 相关阅读:
    BAT 批处理 for循环 迟环境变量 [MD]
    adb 环境配置 常用命令 [MD]
    XML 解析 DOM SAX PULL 序列化 总结 [MD]
    instanceof 和 isInstance 强转 类型 class [MD]
    Charles 简介 总结 HTTP 抓包 代理 [MD]
    Permission 运行时权限 总结 翻译 [MD]
    反编译 AndroidKiller 逆向 字节码 实践案例 [MD]
    Gradle 翻译 Analyzer APK文件分析 [MD]
    Java 中 boolean 类型占用多少个字节 [MD]
    Shell 命令行工具 Cmder Babun Zsh [MD]
  • 原文地址:https://www.cnblogs.com/npucloud/p/5293814.html
Copyright © 2011-2022 走看看