移植qt之交叉编译tslib-1.4
2013-02-26 18:17
507 查看
#export PREFIX=/path_to_your_tslib_1.4_dir
#export CC=/path/to/your/cross-compiler-bin-dir
/*
autogen.sh is an important .sh file,it produce ./configure file according to current env setting
*/
#./autogen.sh
错误现象:./autogen.sh: 9: autoreconf:
not found
解决办法:#sudo apt-get install autoconf
错误现象:Can't exec "automake": 没有该文件或目录 at /usr/bin/autoreconf line 183
解决办法:#sudo apt-get install automake
错误现象:configure.ac:25:
error: possibly
undefined macro:
AC_DISABLE_STATIC
解决办法:#sudo apt-get install libtool
#echo "ac_cv_func_malloc_0_nonnull=yes" >arm-none-linux-gnueabi.cache
/*(it is better to see what parameter that the ./configure program take,use "./configure --help")
*you can add "--enable-debug"([default=no]),and/or "--enable-static"([default=no])
*/
#./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --cache-file=arm-none-linux-gnueabi.cache
#make
错误:undefined reference to rpl_malloc
解决办法(2种):
* configure的时候加上--with-gnu-ld这个参数
* 或者在config.h里加上#undef rpl_malloc
#make install
或者
在当前目录查找了rpl_malloc,发现configure里有#define malloc rpl_malloc一行。分析configure脚本相关的代码,原来是ac_cv_func_malloc_0_nonnull引起的,OK我们不让它检查了,产生一个cache文件arm-linux.cache,欺骗configure:
[root@linux tslib]# echo "ac_cv_func_malloc_0_nonnull=yes" >$ ARCH -linux.cache
[root@linux tslib]# ./configure --prefix=$(ROOTFS_DIR)/usr --host=$ ARCH -linux --cache-file=$ ARCH -linux.cache
配置成功后,重新编译一下,OK!
#export CC=/path/to/your/cross-compiler-bin-dir
/*
autogen.sh is an important .sh file,it produce ./configure file according to current env setting
*/
#./autogen.sh
错误现象:./autogen.sh: 9: autoreconf:
not found
解决办法:#sudo apt-get install autoconf
错误现象:Can't exec "automake": 没有该文件或目录 at /usr/bin/autoreconf line 183
解决办法:#sudo apt-get install automake
错误现象:configure.ac:25:
error: possibly
undefined macro:
AC_DISABLE_STATIC
解决办法:#sudo apt-get install libtool
#echo "ac_cv_func_malloc_0_nonnull=yes" >arm-none-linux-gnueabi.cache
/*(it is better to see what parameter that the ./configure program take,use "./configure --help")
*you can add "--enable-debug"([default=no]),and/or "--enable-static"([default=no])
*/
#./configure --host=arm-none-linux-gnueabi --prefix=$PREFIX --cache-file=arm-none-linux-gnueabi.cache
#make
错误:undefined reference to rpl_malloc
解决办法(2种):
* configure的时候加上--with-gnu-ld这个参数
* 或者在config.h里加上#undef rpl_malloc
#make install
或者
在当前目录查找了rpl_malloc,发现configure里有#define malloc rpl_malloc一行。分析configure脚本相关的代码,原来是ac_cv_func_malloc_0_nonnull引起的,OK我们不让它检查了,产生一个cache文件arm-linux.cache,欺骗configure:
[root@linux tslib]# echo "ac_cv_func_malloc_0_nonnull=yes" >$ ARCH -linux.cache
[root@linux tslib]# ./configure --prefix=$(ROOTFS_DIR)/usr --host=$ ARCH -linux --cache-file=$ ARCH -linux.cache
配置成功后,重新编译一下,OK!
相关文章推荐
- QT5.7+tslib1.4库的交叉编译、移植到开发板ARM9上.......
- QT5.7+tslib1.4库的交叉编译、移植到开发板ARM9上,无法使用触摸屏
- tslib1.4与Qt4.8.6的交叉编译与移植
- [转载]tslib1.4与Qt4.8.6的交叉编译与移植
- qt-embedded-linux-opensource-src-4.8.6 + tslib-1.4 + qwt-6.0.2 编译和移植到mini2440开发板
- 交叉编译tslib1.4过程详述,配合QT4.5.3成功在Mini2440运行成功
- Qt5.3.0的移植安装与测试(交叉编译,用于arm,支持tslib触摸屏)
- 交叉编译tslib1.4过程详述,配合QT4.5.3成功在Mini2440运行成功
- 如何交叉编译 移植 QT
- Qt5.2.1交叉编译,带tslib插件
- Qt4.7.0触摸屏(tslib 1.4)移植到OMAP3530全记录
- [转]交叉编译tslib1.4
- Qt交叉编译与移植
- tslib-1.4交叉编译详细笔记
- QT开发环境的建立以及QTE4.6.3、tslib1.4的移植过程
- qt开发环境的建立与qte4.6.3、tslib1.4的移植
- Qt4.5.1触摸屏(tslib 1.4)+sqlite3 移植全记录
- 汇总(之一):交叉编译工具链arm-none-linux-gnueabi-, Qt交叉编译安装和移植,Qt桌面版编译安装,QTcreator安装和配置
- Qt 4.5.3 +tslib1.4移植
- Qt4.5.1触摸屏(tslib 1.4)+sqlite3 移植全记录