Building C++ program with QT under cygwin

Thu Feb 21 14:19:00 GMT 2008

On 2/21/08, Erich Dollansky <> wrote:
> Hi,
>  hce wrote:
>  > On Thu, Feb 21, 2008 at 4:41 PM, Brian Dessent <> wrote:
>  >> hce wrote:
>  >>
>  >>  > I actually tried QT 4.3 linux packaget, but could not build it could
>  >>  > not find cygwin-g++ in makespec directory. The QT seems only support
>  >>  > minGW on Windows.
>  >>
>  >>  Note that a QT you build for Cygwin will be an X11 app, so you'll need
>  >>  to have an X11 server running in order to use it.  It won't have a
>  >>  Windows GUI like the MinGW flavor.
>  >
>  > I've tried to build the QT linux package, it could not find X11 event.
>  > I think I have installed X11, but I did not running X11 server. It is
>  > too much to using X11 server on window. Can the QT window package be
>  > compiled under Cygwin alternatively?
> you can install X under cygwin together with a small window manager.
>  You must also install the X sources - or at least the headers - if you
>  want to compile any X applications.

Yes, I did install X11 on Cynwin and resolved that issue. But I got
another following error:

qt_windows.h: No such file or directory
error: expected init-declarator before "winVersion"
error: expected `,' or `;' before "winVersion"
error: expected init-declarator before "QSysInfo"
error: expected `,' or `;' before "QSysInfo"
make: *** [qglobal.o] Error 1

I compiled a QT linux X11 package, not sure why it still requires a

Thank you.

Kind Regards,


Unsubscribe info:
Problem reports:

More information about the Cygwin mailing list