tslib 编译移植步骤
2017-11-07 10:35
375 查看
下载的问题不再记录。移植版本为1.4.
编译步骤
# ./autogen.sh
# ./configure --host=arm-linux-gnueabihf --prefix=/qt/tslib-1.4/install --cache-file=arm-none-linux-gnueabi.cache --enable-inputapi=no ac_cv_func_malloc_0_nonnull=yes# make -j4# make install
只要环境没问题,基本直接过。如果出错,参考下面解决,解决不了的可以百度。
http://blog.csdn.net/lwbeyond/article/details/7694749
1.执行./autogen.sh
提示错误:
./autogen.sh: 4: autoreconf: not found
解决方法:
sudo apt-get install autoconf automake libtool
2.执行./configure --host=arm-linux --prefix=/usr/local/tslib
提示错误:
ts_test.o(.text+0x218): In function `main':
: undefined reference to `rpl_malloc'
fbutils.o(.text+0x234): In function `open_framebuffer':
: undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_test] Error 1
make[2]: Leaving directory `/home/gfpeak/Desktop/tslib/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gfpeak/Desktop/tslib'
make: *** [all] Error 2
解决方法:
在编译的时候 ./configure 后面的参数没有设置对,正确设置如下:
./configure --prefix=/usr/local/tslib/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes
3. 执行 make 出错
error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
解决方法:
修改cal_fd
= open ("/etc/pointercal", O_CREAT | O_RDWR ,0)(据说是交叉编译器版本问题)
4. 编译 QT 时报错找不到 tslib 库
交叉编译器是 arm-none-linux-gnu-eabi 4.2.0
The tslib functionality test failed!(已指定了I和L参数), 进入tslib/bin下 file 发现编译生成的是x86版本,遂将 --host
改为arm-none-linux-gnueabi,生成了arm版本(此时configure不再报错)
5. 在开发板上运行校正程序时出现 No raw modules loaded
解决方法
把 tslib/etc 目录下的 ts.conf 的 "#module_raw input"的注释符号"#"去掉。但记住不要在前面留有空格 ,否则还会出现错误。
编译步骤
# ./autogen.sh
# ./configure --host=arm-linux-gnueabihf --prefix=/qt/tslib-1.4/install --cache-file=arm-none-linux-gnueabi.cache --enable-inputapi=no ac_cv_func_malloc_0_nonnull=yes# make -j4# make install
只要环境没问题,基本直接过。如果出错,参考下面解决,解决不了的可以百度。
http://blog.csdn.net/lwbeyond/article/details/7694749
1.执行./autogen.sh
提示错误:
./autogen.sh: 4: autoreconf: not found
解决方法:
sudo apt-get install autoconf automake libtool
2.执行./configure --host=arm-linux --prefix=/usr/local/tslib
提示错误:
ts_test.o(.text+0x218): In function `main':
: undefined reference to `rpl_malloc'
fbutils.o(.text+0x234): In function `open_framebuffer':
: undefined reference to `rpl_malloc'
collect2: ld returned 1 exit status
make[2]: *** [ts_test] Error 1
make[2]: Leaving directory `/home/gfpeak/Desktop/tslib/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gfpeak/Desktop/tslib'
make: *** [all] Error 2
解决方法:
在编译的时候 ./configure 后面的参数没有设置对,正确设置如下:
./configure --prefix=/usr/local/tslib/ --host=arm-linux ac_cv_func_malloc_0_nonnull=yes
3. 执行 make 出错
error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT in second argument needs 3 arguments
解决方法:
修改cal_fd
= open ("/etc/pointercal", O_CREAT | O_RDWR ,0)(据说是交叉编译器版本问题)
4. 编译 QT 时报错找不到 tslib 库
交叉编译器是 arm-none-linux-gnu-eabi 4.2.0
The tslib functionality test failed!(已指定了I和L参数), 进入tslib/bin下 file 发现编译生成的是x86版本,遂将 --host
改为arm-none-linux-gnueabi,生成了arm版本(此时configure不再报错)
5. 在开发板上运行校正程序时出现 No raw modules loaded
解决方法
把 tslib/etc 目录下的 ts.conf 的 "#module_raw input"的注释符号"#"去掉。但记住不要在前面留有空格 ,否则还会出现错误。
相关文章推荐
- QT5.7+tslib1.4库的交叉编译、移植到开发板ARM9上,无法使用触摸屏
- QT5.7+tslib1.4库的交叉编译、移植到开发板ARM9上.......
- 基于s3c2410的tslib1.4的编译与移植~
- tslib1.4与Qt4.8.6的交叉编译与移植
- qt在linux与ok6410上的安装移植(2)——tslib和开发板上qt的编译
- 移植qt之交叉编译tslib-1.4
- 移植tslib编译问题
- QtCreator安装 配置qtcreator交叉编译 tslib的移植
- 基于S3C2440的Linux-3.6.6移植——tslib编译与安装
- Linux中madplay 音乐播放器移植步骤(在redhat中编译)
- Ubuntu10.04下S3C6410的tslib和qte4.4.0编译和移植
- Linux中madplay 音乐播放器移植步骤(在ubuntu中编译)
- Android系统移植与调试之------->Amlogic方案编译步骤
- 移植tslib1.4 编译问题
- [转载]tslib1.4与Qt4.8.6的交叉编译与移植
- [置顶] Android系统移植与调试之------->Amlogic方案编译步骤
- qt-5.6.0 移植之tslib 配置及编译
- qt-embedded-linux-opensource-src-4.8.6 + tslib-1.4 + qwt-6.0.2 编译和移植到mini2440开发板
- 移植u-boot-2011.03到S3C2440(utu2440)方法与步骤###1. 配置和初步编译