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.  Are there some -D options you are missing?
If you want to try a different version of gcc it is not that hard to 
download and build.


Reply via email to