This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Building C++ program with QT under cygwin


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]