Press <enter> to keep the current choice[*], or type selection number: 2 update-alternatives: using /usr/bin/gcc-4.8 to provide /usr/bin/gcc (gcc) in manual mode
gcc --version gcc (Ubuntu 4.8.5-4ubuntu2) 4.8.5 Copyright (C) 2015 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
编译安装Qt4.8.7
解压并配置
1 2 3
tar xf qt-everywhere-opensource-src-4.8.7.tar.gz cd qt-everywhere-opensource-src-4.8.7/ ./configure -opensource -no-openssl -no-sql-mysql
注意:可以使用 make confclean 命令把以前的配置信息清除掉,然后再重新配置。
configure过程中报错:
1 2 3
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.7/mkspecs/linux-g++.
Qt is now configured for building. Just run 'gmake'. Once everything is built, you must run 'gmake install'. Qt will be installed into /usr/local/Trolltech/Qt-4.8.7
To reconfigure, run 'gmake confclean' and 'configure'.