William Seurer <seu...@linux.vnet.ibm.com> 于2020年5月18日周一 下午10:52写道: > > On 5/18/20 9:35 AM, Hongyi Zhao via Gcc wrote: > > Jonathan Wakely <jwakely....@gmail.com> 于2020年5月18日周一 下午8:49写道: > >> On Mon, 18 May 2020 at 13:34, Hongyi Zhao via Gcc <gcc@gcc.gnu.org> wrote: > >>> Hi, > >>> > >>> I want to compile qt4 on Ubuntu 20.04 which shipped with the following > >>> gcc version: > >>> > >>> $ gcc --version > >>> gcc (Ubuntu 9.3.0-10ubuntu2) 9.3.0 > >>> > >>> But I'm not sure whether this gcc version is suitable for qt4. Any > >>> hints for this problem? > >> Check the Qt4 docs, or just try it and see if it works. > > Tried with qt4.8.7 but failed, see following for more info: > > > > $ ./configure -no-openssl > > $ make -j1 > > [...] > > dialogs/qprintdialog_unix.cpp:281:19: error: ‘class > > Ui::QPrintPropertiesWidget’ has no member named ‘cupsPropertiesPage’ > > 281 | delete widget.cupsPropertiesPage; > > | ^~~~~~~~~~~~~~~~~~ > > > ...etc... > > Is "UI" part of the thing you are trying to build or something it uses > from elsewhere? Those sorts of errors look more like a configuration > problem with #defines than a compiler problem.
The sourcecode is from here: https://download.qt.io/archive/qt/4.8/4.8.7/qt-everywhere-opensource-src-4.8.7.tar.gz I inspect the ` ./configure --help ` and cannot figure out the options corresponding to this problem. > Are there some -D > options you are missing? IMO, -D option is mainly used by cmake, but make is used to comile qt4. > > If you want to try a different version of gcc it is not that hard to > download and build. > -- Hongyi Zhao <hongyi.z...@gmail.com>