• QT开发之移植qt5.6.2到S5PV210


    1、移植前的准备工作

     (1)确认已经烧录uboot,并设置环境变量bootcmd和bootargs从tftp、nfs启动;

     (2)zImage事先编译好的,文件夹形式的rootfs准备好,成功启动内核进入命令行;

     (3)ts驱动源码确认添加、设备文件确认OK(dev/input/event2)(cat dev/input/event2  点击触摸屏有乱码打印出来);

    2、tslib移植和测试

     (1)源码下载

     (2)解压    tar -xvf tslib-1.4.tar.gz

     (3)配置

     cd tslib
     ./autogen.sh
     echo "ac_cv_func_malloc_0_nonnull=yes">arm-linux.cache 
     mkdir /opt/tslib
     ./configure --prefix=/opt/tslib --host=arm-linux --cache-file=arm-linux.cache

     (4)编译与安装

      make&&make install

     (5)部署环境到开发板

      a、动态库文件so  :
      b、配置文件

      c、bin文件

    (6)设置开发板环境变量
      打开环境变量文件/etc/profile,添加如下内容:

      export TSLIB_TSDEVICE=/dev/input/event2
      export TSLIB_CALIBFILE=/etc/pointercal
      export TSLIB_CONFFILE=/etc/ts.conf
      export TSLIB_PLUGINDIR=/lib/ts
      export TSLIB_CONSOLEDEVICE=none
      export TSLIB_FBDEVICE=/dev/fb0
      export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/tslib1.4/lib
      export TS_INFO_FILE=/sys/class/input/input2/uevent

      补充:

          错误1:No raw modules loaded.
          ts_config: No such file or directory
       解决:在etc/ts.conf中打开module raw input这行的注释就行了。

    3、QT5.6.2配置和交叉编译

  • 相关阅读:
    241. Different Ways to Add Parentheses
    332. Reconstruct Itinerary
    [LeetCode] 19. Remove Nth Node From End of List Java
    [LeetCode] 16. 3Sum Closest Java
    [LeetCode] 15. 3Sum Java
    [LeetCode] 11. Container With Most Water Java
    [LeetCode] 4. Median of Two Sorted Arrays
    [LeetCode] 3.Longest Substring Without Repeating Characters
    [LeetCode] 50. Pow(x, n) Java
    [LeetCode] 45. Jump Game II Java
  • 原文地址:https://www.cnblogs.com/gzqblogs/p/10099692.html
Copyright © 2020-2023  润新知