半年后又重新编译Qt的开发环境,还是不太顺利,所以这次写个总结
关于编译X11版本的环境,没有参数需要配置
(1)./configure
出现"make: g++:命令未找到"错误,解决办法:apt-get install g++
再次运行./configure,出现"Basic XLib functionality test failed!
You might need to modify the include and library search paths by editing
QMAKE_INCDIR_X11 and QMAKE_LIBDIR_X11 in /opt/环境搭建/qt-everywhere-opensource-src-4.8.0/mkspecs/linux-g++."错误
解决办法:apt-get install libX11-dev libXext-dev libXtst-dev
(2)make(3)make install
重点是arm版本的环境的搭建
首先需要安装tslib
方法如下
(1) ./autogen.sh 产生configure文件
(2) ./configure --prefix=/usr/local/qt4-arm/tslib-1.4 --host=arm-linux ac_cv_func_malloc_0_nonnull=yes 产生makefile 文件
(3) make 产生一个 install-sh
(4) make install
./autogen.sh: 4: autoreconf: not found