移植qt之交叉编译tslib-1.4
来源:互联网 发布:mac怎么用u盘装双系统 编辑:程序博客网 时间:2024/04/28 18:49
#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
#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!
- 移植qt之交叉编译tslib-1.4
- Qt移植之tslib
- 交叉编译tslib-1.4
- tslib-1.4交叉编译
- tslib 1.4 交叉编译
- tslib-1.4交叉编译
- tslib-1.4交叉编译笔记
- tslib-1.4移植 qt-4.8.5移植
- Qt交叉编译与移植
- Qt交叉编译与移植
- 如何交叉编译 移植 QT
- Qt交叉编译与移植
- QT交叉编译与移植
- QtCreator安装 配置qtcreator交叉编译 tslib的移植
- [转载]tslib-1.4交叉编译详细笔记
- Ubuntu下交叉编译tslib-1.4记录
- tslib-1.4交叉编译详细笔记
- Ubuntu下交叉编译tslib-1.4记录
- 四年Java 一个java软件工程师的年终总结
- hdu_1.3.8_Crixalis's Equipment
- Hibernate关联关系配置(一对多、一对一和多对多)
- 正则表达式的用途语法与优先级(/应为\)
- hdu 3488
- 移植qt之交叉编译tslib-1.4
- Unity3D的Android移动之路之辅助工具及设备姿态
- 关于SetTexture()调用引起显存泄露的问题
- android:screenOrientation的说明
- iOS文档、视频等文件导入教程
- 11个Visual Studio调试小技巧
- gdb调试死锁线程
- javascript 和 css 常见不兼容的处理
- 编译ios版openssl(2013/01/28)