Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 6

Qt-interest Archive, June 2007
[cygwin] problems compiling qt4


Message 1 in thread

Hello list,

I've tried to compile recent QT open source on cygwin running on winXP and
didnt succeed;

I used

qt-x11-opensource-src-4.3.0 from trolltech's site at first - there is
qt_windows.h header file missing in global src folder - so afterwards also
qt-all-opensource-src-4.3.0

but ./configure fails with:

/cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-
all-opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1665: error:
expected init-declarator before "winVersion"
/cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-
all-opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1665: error:
expected `,' or `;' before "winVersion"
/cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-
all-opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1761: error:
expected init-declarator before "QSysInfo"
/cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-
all-opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1761: error:
expected `,' or `;' before "QSysInfo"
make: *** [qglobal.o] Error 1


this seem to me like i'm using wrong version of some tools, but I have
latest cygwin development packages with g++ v 3.4.4, which should be
supported according to trolltech's requirements mentioned on their page.

Can anybody please help me with some advice/pointer ?
Alse please correct me if I'm directing this to wrong mailing list

thanks a lot

mc

Message 2 in thread

As far as i know Qt doesn't support cygwin. Use cmd with mingw instead.

On Jun 27, 2007, at 1:59 PM, F X wrote:

> Hello list,
>
> I've tried to compile recent QT open source on cygwin running on  
> winXP and didnt succeed;
>
> I used
>
> qt-x11-opensource-src-4.3.0 from trolltech's site at first - there  
> is qt_windows.h header file missing in global src folder - so  
> afterwards also
> qt-all-opensource-src-4.3.0
>
> but ./configure fails with:
>
> /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-all- 
> opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1665: error:  
> expected init-declarator before "winVersion"
> /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0 /qt-all- 
> opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1665: error:  
> expected `,' or `;' before "winVersion"
> /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-all- 
> opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1761: error:  
> expected init-declarator before "QSysInfo"
> /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-all- 
> opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1761: error:  
> expected `,' or `;' before "QSysInfo"
> make: *** [qglobal.o] Error 1
>
>
> this seem to me like i'm using wrong version of some tools, but I  
> have latest cygwin development packages with g++ v 3.4.4, which  
> should be supported according to trolltech's requirements mentioned  
> on their page.
>
> Can anybody please help me with some advice/pointer ?
> Alse please correct me if I'm directing this to wrong mailing list
>
> thanks a lot
>
> mc

--
 [ signature omitted ] 

Message 3 in thread

Hi,
well I just wonder because this seem to me like compilation error; the
critical code is in #ifdef section for CYGWIN, WIN32, so it seem to me it is
just untested properly.
The thing is that I do not want to use their windows port because I need to
compile a QT application on cygwin.

mc


 On 6/27/07, Kamil Klimek <naresh@xxxxxxx> wrote:
>
> As far as i know Qt doesn't support cygwin. Use cmd with mingw instead.
>
> On Jun 27, 2007, at 1:59 PM, F X wrote:
>
> > Hello list,
> >
> > I've tried to compile recent QT open source on cygwin running on
> > winXP and didnt succeed;
> >
> > I used
> >
> > qt-x11-opensource-src-4.3.0 from trolltech's site at first - there
> > is qt_windows.h header file missing in global src folder - so
> > afterwards also
> > qt-all-opensource-src-4.3.0
> >
> > but ./configure fails with:
> >
> > /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0 /qt-all-
> > opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1665: error:
> > expected init-declarator before "winVersion"
> > /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0 /qt-all-
> > opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1665: error:
> > expected `,' or `;' before "winVersion"
> > /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-all-
> > opensource-src-4.3.0 /src/corelib/global/qglobal.cpp:1761: error:
> > expected init-declarator before "QSysInfo"
> > /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-all-
> > opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1761: error:
> > expected `,' or `;' before "QSysInfo"
> > make: *** [qglobal.o] Error 1
> >
> >
> > this seem to me like i'm using wrong version of some tools, but I
> > have latest cygwin development packages with g++ v 3.4.4, which
> > should be supported according to trolltech's requirements mentioned
> > on their page.
> >
> > Can anybody please help me with some advice/pointer ?
> > Alse please correct me if I'm directing this to wrong mailing list
> >
> > thanks a lot
> >
> > mc
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

Message 4 in thread

Then compile Qt without cygwin, and use it only when u need to  
compile your second app. And i just wonder which app needs cygwin to  
be compiled on windows?

On Jun 27, 2007, at 2:22 PM, F X wrote:

>
> Hi,
> well I just wonder because this seem to me like compilation error;  
> the critical code is in #ifdef section for CYGWIN, WIN32, so it  
> seem to me it is just untested properly.
> The thing is that I do not want to use their windows port because I  
> need to compile a QT application on cygwin.
>
> mc
>
>
> On 6/27/07, Kamil Klimek <naresh@xxxxxxx> wrote:
> As far as i know Qt doesn't support cygwin. Use cmd with mingw  
> instead.
>
> On Jun 27, 2007, at 1:59 PM, F X wrote:
>
> > Hello list,
> >
> > I've tried to compile recent QT open source on cygwin running on
> > winXP and didnt succeed;
> >
> > I used
> >
> > qt-x11-opensource-src-4.3.0 from trolltech's site at first - there
> > is qt_windows.h header file missing in global src folder - so
> > afterwards also
> > qt-all-opensource-src-4.3.0
> >
> > but ./configure fails with:
> >
> > /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0 /qt-all-
> > opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1665: error:
> > expected init-declarator before "winVersion"
> > /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0 /qt-all-
> > opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1665: error:
> > expected `,' or `;' before "winVersion"
> > /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-all-
> > opensource-src-4.3.0 /src/corelib/global/qglobal.cpp:1761: error:
> > expected init-declarator before "QSysInfo"
> > /cygdrive/d/install/qt/qt-all-opensource-src-4.3.0/qt-all-
> > opensource-src-4.3.0/src/corelib/global/qglobal.cpp:1761: error:
> > expected `,' or `;' before "QSysInfo"
> > make: *** [qglobal.o] Error 1
> >
> >
> > this seem to me like i'm using wrong version of some tools, but I
> > have latest cygwin development packages with g++ v 3.4.4, which
> > should be supported according to trolltech's requirements mentioned
> > on their page.
> >
> > Can anybody please help me with some advice/pointer ?
> > Alse please correct me if I'm directing this to wrong mailing list
> >
> > thanks a lot
> >
> > mc
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
> with "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>


Message 5 in thread

On 27.06.07 14:22:16, F X wrote:
> well I just wonder because this seem to me like compilation error; the
> critical code is in #ifdef section for CYGWIN, WIN32, so it seem to me it is
> just untested properly.
> The thing is that I do not want to use their windows port because I need to
> compile a QT application on cygwin.

Uhm, a Qt application certainly doesn't need cygwin, unless its

a) not meant to work under windows
b) a qt3 application which won't work with Qt4 anyway

Andreas

-- 
 [ signature omitted ] 

Message 6 in thread

Hi guys,
ok, so this is exactly what I intend to do:
I have an native linux application (it is lmms.sourceforge.net; but it does
not matter) which utilizes qt4 toolkit.
So in order to make it run on w$ndows I thought the best way would be to try
crosscompile it on cygwin (since it is not written to be compilable
somewhere else as on linux and they dont have the intention to).
As mentioned this app needs qt4 toolkit, which is not present in recent
cygwin (there is only qt3)
While configuring qt4 under cygwin I came to forementioned error.
What would you recommend to be the best approach now ?
Is it possilbe to use qt4 toolkit's native windows port from cygwin (linux,
in fact) and run it this way ? If so, how ? I dont seem to see any other
approach now..

Thanks a lot


mc


On 6/27/07, Andreas Pakulat <apaku@xxxxxx> wrote:
>
> On 27.06.07 14:22:16, F X wrote:
> > well I just wonder because this seem to me like compilation error; the
> > critical code is in #ifdef section for CYGWIN, WIN32, so it seem to me
> it is
> > just untested properly.
> > The thing is that I do not want to use their windows port because I need
> to
> > compile a QT application on cygwin.
>
> Uhm, a Qt application certainly doesn't need cygwin, unless its
>
> a) not meant to work under windows
> b) a qt3 application which won't work with Qt4 anyway
>
> Andreas
>
> --
> You have had a long-term stimulation relative to business.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

Message 7 in thread

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
In my previous job, we built Qt3 under cygwin, so it theoretically is
possible with Qt4, BUT, we were using the Intel compiler.&nbsp; We cross
compiled it under cygwin for Intel64 (Opteron equivelent) and for
Itanium.&nbsp; <br>
<br>
We used cygwin for similar reasons.&nbsp; The build environment for the
entire application was makefile/Linux/unix having been developed on
that platform.&nbsp; We needed to port to windows and it would be way too
much work to rewrite the entire build environment to suite Windows.&nbsp;
Cygwin worked nicely.<br>
<br>
F X wrote:
<blockquote
 cite="mid:10892e7f0706270610n4b82bdew3792b9da8ad73b4f@xxxxxxxxxxxxxx";
 type="cite">
  <div><br>
Hi guys,</div>
  <div>ok, so this is exactly what I intend to do:</div>
  <div>I have an native linux application (it is <a
 moz-do-not-send="true" href="http://lmms.sourceforge.net";>lmms.sourceforge.net</a>;
but it does not matter) which utilizes qt4 toolkit.</div>
  <div>So in order to make it run on w$ndows I thought the best way
would be to try crosscompile it on cygwin (since it is not written to
be compilable somewhere else as on linux and they dont have the
intention to).</div>
  <div>As mentioned this app needs qt4 toolkit, which is not present in
recent cygwin (there is only qt3)</div>
  <div>While configuring qt4 under cygwin I came to forementioned error.</div>
  <div>What would you recommend to be the best approach now ?</div>
  <div>Is it possilbe to use qt4 toolkit's native windows port from
cygwin (linux, in fact) and run it this way ? If so, how ? I dont seem
to see any other approach now..</div>
  <div>&nbsp;</div>
  <div>Thanks a lot</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div>mc</div>
  <div>&nbsp;</div>
  <div>&nbsp;</div>
  <div><span class="gmail_quote">On 6/27/07, <b
 class="gmail_sendername">Andreas Pakulat</b> &lt;<a
 moz-do-not-send="true" href="mailto:apaku@xxxxxx";>apaku@xxxxxx</a>&gt;
wrote:</span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0px 0px 0px 0.8ex; padding-left: 1ex;">On
27.06.07 14:22:16, F X wrote:<br>
&gt; well I just wonder because this seem to me like compilation error;
the
    <br>
&gt; critical code is in #ifdef section for CYGWIN, WIN32, so it seem
to me it is<br>
&gt; just untested properly.<br>
&gt; The thing is that I do not want to use their windows port because
I need to<br>
&gt; compile a QT application on cygwin.
    <br>
    <br>
Uhm, a Qt application certainly doesn't need cygwin, unless its<br>
    <br>
a) not meant to work under windows<br>
b) a qt3 application which won't work with Qt4 anyway<br>
    <br>
Andreas<br>
    <br>
--<br>
You have had a long-term stimulation relative to business.
    <br>
    <br>
--<br>
To unsubscribe - send a mail to <a moz-do-not-send="true"
 href="mailto:qt-interest-request@xxxxxxxxxxxxx";>qt-interest-request@xxxxxxxxxxxxx</a>
with "unsubscribe" in the subject or the body.<br>
List archive and information: <a moz-do-not-send="true"
 href="http://lists.trolltech.com/qt-interest/";>http://lists.trolltech.com/qt-interest/</a><br>
    <br>
  </blockquote>
  </div>
  <br>
</blockquote>
</body>
</html>

--
 [ signature omitted ] 

Message 8 in thread

Hello Susan,
thanks for reply.
Do you also recall whether you were able to compile qt as multithreaded ?
I dont also see any option in qt4'c configure to turn this on; I dont know
whether this is possible to do whatsoever on cygwin *grin*


mc


On 6/27/07, Susan Macchia <qt-list@xxxxxxxxxxxxx> wrote:
>
> In my previous job, we built Qt3 under cygwin, so it theoretically is
> possible with Qt4, BUT, we were using the Intel compiler.  We cross compiled
> it under cygwin for Intel64 (Opteron equivelent) and for Itanium.
>
> We used cygwin for similar reasons.  The build environment for the entire
> application was makefile/Linux/unix having been developed on that platform.
> We needed to port to windows and it would be way too much work to rewrite
> the entire build environment to suite Windows.  Cygwin worked nicely.
>
> F X wrote:
>
>
> Hi guys,
> ok, so this is exactly what I intend to do:
> I have an native linux application (it is lmms.sourceforge.net; but it
> does not matter) which utilizes qt4 toolkit.
> So in order to make it run on w$ndows I thought the best way would be to
> try crosscompile it on cygwin (since it is not written to be compilable
> somewhere else as on linux and they dont have the intention to).
> As mentioned this app needs qt4 toolkit, which is not present in recent
> cygwin (there is only qt3)
> While configuring qt4 under cygwin I came to forementioned error.
> What would you recommend to be the best approach now ?
> Is it possilbe to use qt4 toolkit's native windows port from cygwin
> (linux, in fact) and run it this way ? If so, how ? I dont seem to see any
> other approach now..
>
> Thanks a lot
>
>
> mc
>
>
> On 6/27/07, Andreas Pakulat <apaku@xxxxxx> wrote:
> >
> > On 27.06.07 14:22:16, F X wrote:
> > > well I just wonder because this seem to me like compilation error; the
> >
> > > critical code is in #ifdef section for CYGWIN, WIN32, so it seem to me
> > it is
> > > just untested properly.
> > > The thing is that I do not want to use their windows port because I
> > need to
> > > compile a QT application on cygwin.
> >
> > Uhm, a Qt application certainly doesn't need cygwin, unless its
> >
> > a) not meant to work under windows
> > b) a qt3 application which won't work with Qt4 anyway
> >
> > Andreas
> >
> > --
> > You have had a long-term stimulation relative to business.
> >
> > --
> > To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> > "unsubscribe" in the subject or the body.
> > List archive and information: http://lists.trolltech.com/qt-interest/
> >
> >
> -- To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body. List archive and information:
> http://lists.trolltech.com/qt-interest/

Message 9 in thread

You are writing about compiling Qt4 with cygwin. BUT software you  
want to compile requires Qt3.Why do you compile Qt4 then?

On Jun 27, 2007, at 4:11 PM, F X wrote:

> Hello Susan,
> thanks for reply.
> Do you also recall whether you were able to compile qt as  
> multithreaded ?
> I dont also see any option in qt4'c configure to turn this on; I  
> dont know whether this is possible to do whatsoever on cygwin *grin*
>
>
> mc
>
>
> On 6/27/07, Susan Macchia <qt-list@xxxxxxxxxxxxx> wrote:
> In my previous job, we built Qt3 under cygwin, so it theoretically  
> is possible with Qt4, BUT, we were using the Intel compiler.  We  
> cross compiled it under cygwin for Intel64 (Opteron equivelent) and  
> for Itanium.
>
> We used cygwin for similar reasons.  The build environment for the  
> entire application was makefile/Linux/unix having been developed on  
> that platform.  We needed to port to windows and it would be way  
> too much work to rewrite the entire build environment to suite  
> Windows.  Cygwin worked nicely.
>
>
> F X wrote:
>>
>> Hi guys,
>> ok, so this is exactly what I intend to do:
>> I have an native linux application (it is lmms.sourceforge.net;  
>> but it does not matter) which utilizes qt4 toolkit.
>> So in order to make it run on w$ndows I thought the best way would  
>> be to try crosscompile it on cygwin (since it is not written to be  
>> compilable somewhere else as on linux and they dont have the  
>> intention to).
>> As mentioned this app needs qt4 toolkit, which is not present in  
>> recent cygwin (there is only qt3)
>> While configuring qt4 under cygwin I came to forementioned error.
>> What would you recommend to be the best approach now ?
>> Is it possilbe to use qt4 toolkit's native windows port from  
>> cygwin (linux, in fact) and run it this way ? If so, how ? I dont  
>> seem to see any other approach now..
>>
>> Thanks a lot
>>
>>
>> mc
>>
>>
>> On 6/27/07, Andreas Pakulat <apaku@xxxxxx> wrote:
>> On 27.06.07 14:22:16, F X wrote:
>> > well I just wonder because this seem to me like compilation  
>> error; the
>> > critical code is in #ifdef section for CYGWIN, WIN32, so it seem  
>> to me it is
>> > just untested properly.
>> > The thing is that I do not want to use their windows port  
>> because I need to
>> > compile a QT application on cygwin.
>>
>> Uhm, a Qt application certainly doesn't need cygwin, unless its
>>
>> a) not meant to work under windows
>> b) a qt3 application which won't work with Qt4 anyway
>>
>> Andreas
>>
>> --
>> You have had a long-term stimulation relative to business.
>>
>> --
>> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx  
>> with "unsubscribe" in the subject or the body.
>> List archive and information: http://lists.trolltech.com/qt-interest/
>>
>>
> -- To unsubscribe - send a mail to qt-interest- 
> request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the  
> body. List archive and information: http://lists.trolltech.com/qt- 
> interest/
>


Message 10 in thread


F X wrote:
> Hello Susan,
> thanks for reply.
> Do you also recall whether you were able to compile qt as multithreaded ?
> I dont also see any option in qt4'c configure to turn this on; I dont 
> know whether this is possible to do whatsoever on cygwin *grin*
No I don't remember & it was qt3 so... 

But as I said, you might want to try the Intel compiler 
(http://www.intel.com/cd/software/products/asmo-na/eng/compilers/284132.htm) 
- don't know if you need to use a free compiler or not.  The Intel 
compiler isn't free but you can try it using the evaluation.

HTH & good luck,
Susan

--
 [ signature omitted ] 

Message 11 in thread

On 27.06.07 15:10:00, F X wrote:
> Hi guys,
> ok, so this is exactly what I intend to do:
> I have an native linux application (it is lmms.sourceforge.net; but it does
> not matter) which utilizes qt4 toolkit.
> So in order to make it run on w$ndows I thought the best way would be to try
> crosscompile it on cygwin (since it is not written to be compilable
> somewhere else as on linux and they dont have the intention to).
> As mentioned this app needs qt4 toolkit, which is not present in recent
> cygwin (there is only qt3)
> While configuring qt4 under cygwin I came to forementioned error.
> What would you recommend to be the best approach now ?

Forget it. Unless you port the application to native windows I don't
think its going to work.

Also the webpage says that it needs Qt3, not qt4.

Andreas

-- 
 [ signature omitted ] 

Message 12 in thread

Hello,
the info on page seem to be little bit outdated or so according to what was
I told by the the guy from lmms;
I really hoped that it would be possible since I succesfully crosscompiled
other audio apps on cygwin, without qt toolkit though, and since this was
the only compilation error I got (well, so far)
thanks anyway )

mc



On 6/27/07, Andreas Pakulat <apaku@xxxxxx> wrote:
>
> On 27.06.07 15:10:00, F X wrote:
> > Hi guys,
> > ok, so this is exactly what I intend to do:
> > I have an native linux application (it is lmms.sourceforge.net; but it
> does
> > not matter) which utilizes qt4 toolkit.
> > So in order to make it run on w$ndows I thought the best way would be to
> try
> > crosscompile it on cygwin (since it is not written to be compilable
> > somewhere else as on linux and they dont have the intention to).
> > As mentioned this app needs qt4 toolkit, which is not present in recent
> > cygwin (there is only qt3)
> > While configuring qt4 under cygwin I came to forementioned error.
> > What would you recommend to be the best approach now ?
>
> Forget it. Unless you port the application to native windows I don't
> think its going to work.
>
> Also the webpage says that it needs Qt3, not qt4.
>
> Andreas
>
> --
> Your love life will be... interesting.
>
> --
> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with
> "unsubscribe" in the subject or the body.
> List archive and information: http://lists.trolltech.com/qt-interest/
>
>

Message 13 in thread

On 27.06.07 13:59:23, F X wrote:
> I've tried to compile recent QT open source on cygwin running on winXP and
> didnt succeed;
> 
> I used
> 
> qt-x11-opensource-src-4.3.0 from trolltech's site at first - there is
> qt_windows.h header file missing in global src folder - so afterwards also
> qt-all-opensource-src-4.3.0
> 
> but ./configure fails with:

Is there a reason that you use cygwin and don't compile
qt-win-opensource natively using mingw?

Andreas

-- 
 [ signature omitted ]