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.  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.

The README file of the qt4.8.7 source code told the following info:

-----------------------------------
INSTALLING Qt

If you have a source package (a .tar.gz, or .zip file), follow the
instructions in the INSTALL file.

On Windows and Mac OS X, if you want to install the precompiled binary
packages, simply launch the package and follow the instructions in the
installation wizard.

For Mac OS X Carbon, the binary package requires Mac OS X 10.4 (Tiger) or
later and GCC 4.0.1 to develop applications. Its applications will run
on Mac OS X 10.4 and above.

For Mac OS X Cocoa, the binary package requires Mac OS X 10.5 (Leopard) or
later and GCC 4.0.1 to develop applications.  Its applications will run
on Mac OS X 10.5 and above.
--------------------------------------------

As you can see, it only told  the case for installing on Win / Mac OS,
and not the case for Linux.

Regards


>


-- 
Hongyi Zhao <hongyi.z...@gmail.com>

Reply via email to