X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <95455e980802210322g3e4dd1adycb2b498b6283054d@mail.gmail.com>
Date: Thu, 21 Feb 2008 22:22:19 +1100
From: hce <webmail.hce@gmail.com>
To: cygwin@cygwin.com
Subject: Re: Building C++ program with QT under cygwin
In-Reply-To: <47BD549D.3030304@pacific.net.sg>
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
References: <95455e980802201631t62ff6b6pd8074e93d40fa7a7@mail.gmail.com> 	 <47BCCC17.2090304@pacific.net.sg> 	 <95455e980802201733u19f0b02at14ac05dda3ff0256@mail.gmail.com> 	 <47BCDAC7.6080101@cygwin.com> 	 <95455e980802201824r66d12064pcc812e3a81206e4d@mail.gmail.com> 	 <47BCF106.3080204@cygwin.com> 	 <95455e980802202016r212f1847vf3b5fe8251d57523@mail.gmail.com> 	 <47BD0EF4.5CE7D62B@dessent.net> 	 <95455e980802202220h7e7256f7p2f7e948978b27a0c@mail.gmail.com> 	 <47BD549D.3030304@pacific.net.sg>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

On 2/21/08, Erich Dollansky <oceanare@pacific.net.sg> wrote:
> Hi,
>
>
>  hce wrote:
>  > On Thu, Feb 21, 2008 at 4:41 PM, Brian Dessent <brian@dessent.net> 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:

src-4.3.3/src/corelib/global/qglobal.cpp
/home/Tools/Qt/Linux/qt-x11-opensource-src-4.3.3/src/corelib/global/qglobal.cpp:1676:24:
qt_windows.h: No such file or directory
/home/Tools/Qt/Linux/qt-x11-opensource-src-4.3.3/src/corelib/global/qglobal.cpp:1678:
error: expected init-declarator before "winVersion"
/home/Tools/Qt/Linux/qt-x11-opensource-src-4.3.3/src/corelib/global/qglobal.cpp:1678:
error: expected `,' or `;' before "winVersion"
/home/Tools/Qt/Linux/qt-x11-opensource-src-4.3.3/src/corelib/global/qglobal.cpp:1774:
error: expected init-declarator before "QSysInfo"
/home/Tools/Qt/Linux/qt-x11-opensource-src-4.3.3/src/corelib/global/qglobal.cpp:1774:
error: expected `,' or `;' before "QSysInfo"
make: *** [qglobal.o] Error 1
~/project/yudehu/Tool$

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

Thank you.

Kind Regards,

Jim

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

