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

Qt-interest Archive, December 2006
compile qt free edition on cygwin with -mno-cygwin


Message 1 in thread

Hi,

I've compiled qt with mingw already. I'd like to know if I can compile
qt with cygwin g++ -mno-cygwin?

Thanks,
Bob Rossi

--
 [ signature omitted ] 

Message 2 in thread

On Fri, Dec 08, 2006 at 04:14:27PM -0500, Bob Rossi wrote:
> Hi,
> 
> I've compiled qt with mingw already. I'd like to know if I can compile
> qt with cygwin g++ -mno-cygwin?

Is this possible? If not, why make a build system that is so inflexible?

Thanks,
Bob Rossi

--
 [ signature omitted ] 

Message 3 in thread

On 11.12.06 10:26:15, Bob Rossi wrote:
> On Fri, Dec 08, 2006 at 04:14:27PM -0500, Bob Rossi wrote:
> > Hi,
> > 
> > I've compiled qt with mingw already. I'd like to know if I can compile
> > qt with cygwin g++ -mno-cygwin?
> 
> Is this possible? If not, why make a build system that is so inflexible?
 
inflexible? LOL, you don't know qmake.

If you want to compile with a different compiler use the proper
variables to tell Qt's configure (like CC, CXX). Also checkout the
options that configure takes.

Also you may need the Qt/X11 version, as Cygwin is *nix on Windows.

Andreas

-- 
 [ signature omitted ] 

Message 4 in thread

On Mon, Dec 11, 2006 at 04:40:07PM +0100, Andreas Pakulat wrote:
> On 11.12.06 10:26:15, Bob Rossi wrote:
> > On Fri, Dec 08, 2006 at 04:14:27PM -0500, Bob Rossi wrote:
> > > Hi,
> > > 
> > > I've compiled qt with mingw already. I'd like to know if I can compile
> > > qt with cygwin g++ -mno-cygwin?
> > 
> > Is this possible? If not, why make a build system that is so inflexible?
>  
> inflexible? LOL, you don't know qmake.

I'm not sure exactly what is funny about this.

That is correct, I know nothing about qmake. My first experience with
it, so far, seems to be a failure. I'd like to cross compile the windows
version of qt from cygwin to mingw using the 'gcc -mno-cygwin' command.

If this is possible, I'd be very greatful to know how. If it's not
possible, how could you not consider qmake inflexible?

> If you want to compile with a different compiler use the proper
> variables to tell Qt's configure (like CC, CXX). Also checkout the
> options that configure takes.

Yes, I'm familiar with this. Although, simply specifing the CC and CXX
variables doesn't seem to work nicely with ./configure. For some reason,
the cygwin sh may not be on the path.

> Also you may need the Qt/X11 version, as Cygwin is *nix on Windows.

I don't want to build qt for cygwin. I just want to use cygwin as a
cross compile environment to build windows qt nativly using mingw.

Any suggestions? Thanks for your help so far.

Thanks,
Bob Rossi

--
 [ signature omitted ] 

Message 5 in thread

El Lunes 11 Diciembre 2006 12:47, Bob Rossi escribió:
[snip]
> I don't want to build qt for cygwin. I just want to use cygwin as a
> cross compile environment to build windows qt nativly using mingw.

There's something I don't quite understand yet. You want to use cygwin to 
build with mingw? 

AFAIK, cygwin and mingw are two different things trying to do quite the same 
thing (ok ok, I am perhaps much confused here, if so, any explanation would 
be much appreciated).

Anyway ¿which is the problem of compiling just with mingw? I'm doing that now, 
including OGL widgets and so, and it works perfectly.

Regards, Damian.-

-- 
 [ signature omitted ] 

Message 6 in thread

On Mon, Dec 11, 2006 at 12:54:31PM -0300, Lisandro Damián Nicanor Pérez Meyer wrote:
> El Lunes 11 Diciembre 2006 12:47, Bob Rossi escribió:
> [snip]
> > I don't want to build qt for cygwin. I just want to use cygwin as a
> > cross compile environment to build windows qt nativly using mingw.
> 
> There's something I don't quite understand yet. You want to use cygwin to 
> build with mingw? 
> 
> AFAIK, cygwin and mingw are two different things trying to do quite the same 
> thing (ok ok, I am perhaps much confused here, if so, any explanation would 
> be much appreciated).
> 
> Anyway ¿which is the problem of compiling just with mingw? I'm doing that now, 
> including OGL widgets and so, and it works perfectly.

I have successfully built windows qt with mingw from the dos shell. This
does work nicely. Just as you can cross compile qt from linux to windows
using a mingw cross compiler, I'd like to cross compile from cygwin to
windows using a mingw cross compiler. The cygwin 'g++ -mno-cygwin'
provides a mingw cross compiler. It's not exactly a cross compiler,
however, when the flag is used, the resulting binary has no dependency
on the cygwin1.dll.

Now, the reason I want to cross compile qt from cygwin to mingw is
complicated. I currently want to use both qt and apr. qt compiles nicely
with mingw nativly. apr compiles nicely with mingw nativly, and with
cygwin cross compile command. So, using mingw/msys is possible, but, I
have to be locally on the machine to build. Cygwin provides ssh,
however, it's not possible, as I understand it, to get from a cygwin ssh
shell into a mingw/msys environment. I've asked this on both the cygwin
and mingw-users lists, and no one can provide a solution. So, my hope
was to compile qt with cygwin cross compiler, so that I can get an
environment working where I can do builds remotely.

I hope this explanation is useful.

Thanks,
Bob Rossi

--
 [ signature omitted ] 

Message 7 in thread

On 11.12.06 10:47:16, Bob Rossi wrote:
> On Mon, Dec 11, 2006 at 04:40:07PM +0100, Andreas Pakulat wrote:
> > On 11.12.06 10:26:15, Bob Rossi wrote:
> > > On Fri, Dec 08, 2006 at 04:14:27PM -0500, Bob Rossi wrote:
> > > > Hi,
> > > > 
> > > > I've compiled qt with mingw already. I'd like to know if I can compile
> > > > qt with cygwin g++ -mno-cygwin?
> > > 
> > > Is this possible? If not, why make a build system that is so inflexible?
> >  
> > inflexible? LOL, you don't know qmake.
> 
> I'm not sure exactly what is funny about this.

I didn't mean to offend you. QMake is messy, undocumented and hackish at
times, but certainly not inflexible.

> That is correct, I know nothing about qmake. My first experience with
> it, so far, seems to be a failure. I'd like to cross compile the windows
> version of qt from cygwin to mingw using the 'gcc -mno-cygwin' command.

Hmm, maybe I don't get the point, but why don't you use mingw directly?
Qt4 can be compiled with mingw, for Qt3 there exists this "inofficial"
port of the free edition to windows. 

> If this is possible, I'd be very greatful to know how. If it's not
> possible, how could you not consider qmake inflexible?

Being able to cross-compile is not necessarily a limitation of the build
system, in fact from qmake's point of view there's nothing that prevents
cross compilation. The problem probably is more on the side of the
cross-compiler.

> > If you want to compile with a different compiler use the proper
> > variables to tell Qt's configure (like CC, CXX). Also checkout the
> > options that configure takes.
> 
> Yes, I'm familiar with this. Although, simply specifing the CC and CXX
> variables doesn't seem to work nicely with ./configure. For some reason,
> the cygwin sh may not be on the path.

It seems you also have to set some gcc-flags, see the qmake
documentation for the proper variables to do this. I'm not sure how to
set those though, probably by setting them in the .qmake.cache file in
the Qt root dir.

> > Also you may need the Qt/X11 version, as Cygwin is *nix on Windows.
> 
> I don't want to build qt for cygwin. I just want to use cygwin as a
> cross compile environment to build windows qt nativly using mingw.

Ah, ok. But I don't really see the point in that. Why do you want to
cross-compile from cygwin, when you have a Windows box already? Just
install the Qt4-mingw edition, or install mingw and compile Qt4.

Andreas

-- 
 [ signature omitted ] 

Message 8 in thread

On Mon, Dec 11, 2006 at 05:09:21PM +0100, Andreas Pakulat wrote:
> On 11.12.06 10:47:16, Bob Rossi wrote:
> > On Mon, Dec 11, 2006 at 04:40:07PM +0100, Andreas Pakulat wrote:
> > > On 11.12.06 10:26:15, Bob Rossi wrote:
> > > > On Fri, Dec 08, 2006 at 04:14:27PM -0500, Bob Rossi wrote:
> > > > > Hi,
> > > > > 
> > > > > I've compiled qt with mingw already. I'd like to know if I can compile
> > > > > qt with cygwin g++ -mno-cygwin?
> > > > 
> > > > Is this possible? If not, why make a build system that is so inflexible?
> > >  
> > > inflexible? LOL, you don't know qmake.
> > 
> > I'm not sure exactly what is funny about this.
> 
> I didn't mean to offend you. QMake is messy, undocumented and hackish at
> times, but certainly not inflexible.

It's OK. I honestly don't know anything about qmake. It just seems I
can't get accomplished what I need to.

> > That is correct, I know nothing about qmake. My first experience with
> > it, so far, seems to be a failure. I'd like to cross compile the windows
> > version of qt from cygwin to mingw using the 'gcc -mno-cygwin' command.
> 
> Hmm, maybe I don't get the point, but why don't you use mingw directly?
> Qt4 can be compiled with mingw, for Qt3 there exists this "inofficial"
> port of the free edition to windows. 

Using mingw directly does work fine for me. Please see my other response
in this thread for the reason I would like not to use the mingw compiler
directly.

> > If this is possible, I'd be very greatful to know how. If it's not
> > possible, how could you not consider qmake inflexible?
> 
> Being able to cross-compile is not necessarily a limitation of the build
> system, in fact from qmake's point of view there's nothing that prevents
> cross compilation. The problem probably is more on the side of the
> cross-compiler.

Well, that's possible. The whole thing is sort of a big mess. I mean,
the compiler I need is cygwin's compiler, and I need cygwin's compiler
on my path in order to do a build. However, qmake get's mad when I have
cygwin's sh on my path. Also, for some reason, the windows build expects
mingw-make to be on the path. Why can't any make be used?

> > > If you want to compile with a different compiler use the proper
> > > variables to tell Qt's configure (like CC, CXX). Also checkout the
> > > options that configure takes.
> > 
> > Yes, I'm familiar with this. Although, simply specifing the CC and CXX
> > variables doesn't seem to work nicely with ./configure. For some reason,
> > the cygwin sh may not be on the path.
> 
> It seems you also have to set some gcc-flags, see the qmake
> documentation for the proper variables to do this. I'm not sure how to
> set those though, probably by setting them in the .qmake.cache file in
> the Qt root dir.

OK, that's interseting. Thanks. Does anyone have more info on this?

> > > Also you may need the Qt/X11 version, as Cygwin is *nix on Windows.
> > 
> > I don't want to build qt for cygwin. I just want to use cygwin as a
> > cross compile environment to build windows qt nativly using mingw.
> 
> Ah, ok. But I don't really see the point in that. Why do you want to
> cross-compile from cygwin, when you have a Windows box already? Just
> install the Qt4-mingw edition, or install mingw and compile Qt4.

Again, quickly check out my other response if you don't mind.

Thanks,
Bob Rossi

--
 [ signature omitted ] 

Message 9 in thread

On 11.12.06 11:19:45, Bob Rossi wrote:
> On Mon, Dec 11, 2006 at 05:09:21PM +0100, Andreas Pakulat wrote:
> > On 11.12.06 10:47:16, Bob Rossi wrote:
> > > If this is possible, I'd be very greatful to know how. If it's not
> > > possible, how could you not consider qmake inflexible?
> > 
> > Being able to cross-compile is not necessarily a limitation of the build
> > system, in fact from qmake's point of view there's nothing that prevents
> > cross compilation. The problem probably is more on the side of the
> > cross-compiler.
> 
> Well, that's possible. The whole thing is sort of a big mess. I mean,
> the compiler I need is cygwin's compiler, and I need cygwin's compiler
> on my path in order to do a build. However, qmake get's mad when I have
> cygwin's sh on my path. Also, for some reason, the windows build expects
> mingw-make to be on the path. Why can't any make be used?

Make sure you configure using win32-g++ platform (i.e. configure
-platform win32-g++).  And yes you have to remove sh from the PATH,
which is the same when you do a native-mingw compilation.

Other than that, I don't know. I didn't try to cross-compile Qt and I
only installed it once on a Windows box.

> > > > If you want to compile with a different compiler use the proper
> > > > variables to tell Qt's configure (like CC, CXX). Also checkout the
> > > > options that configure takes.
> > > 
> > > Yes, I'm familiar with this. Although, simply specifing the CC and CXX
> > > variables doesn't seem to work nicely with ./configure. For some reason,
> > > the cygwin sh may not be on the path.
> > 
> > It seems you also have to set some gcc-flags, see the qmake
> > documentation for the proper variables to do this. I'm not sure how to
> > set those though, probably by setting them in the .qmake.cache file in
> > the Qt root dir.
> 
> OK, that's interseting. Thanks. Does anyone have more info on this?

The QMake Manual (doc.trolltech.com/4.2/qmake-manual.html and the
following site: http://wiki.qtcentre.org/index.php?title=Undocumented_qmake

And last but not least: The source of qmake ;)

> > > > Also you may need the Qt/X11 version, as Cygwin is *nix on Windows.
> > > 
> > > I don't want to build qt for cygwin. I just want to use cygwin as a
> > > cross compile environment to build windows qt nativly using mingw.
> > 
> > Ah, ok. But I don't really see the point in that. Why do you want to
> > cross-compile from cygwin, when you have a Windows box already? Just
> > install the Qt4-mingw edition, or install mingw and compile Qt4.
> 
> Again, quickly check out my other response if you don't mind.

Sure, it just arrived after I sent the message. Did you think about a
vnc server or a terminal server solution?

Andreas

-- 
 [ signature omitted ] 

Message 10 in thread

Look into the mkspec directories.  One of the gcc ones, (I don't use GCC
on windows) will require you to add a CFLAGS and a CPPFLAGS options for
the flag you need

Scott

> -----Original Message-----
> From: Andreas Pakulat [mailto:apaku@xxxxxx]
> Sent: Monday, December 11, 2006 8:39 AM
> To: qt-interest@xxxxxxxxxxxxx
> Subject: Re: compile qt free edition on cygwin with -mno-cygwin
> 
> On 11.12.06 11:19:45, Bob Rossi wrote:
> > On Mon, Dec 11, 2006 at 05:09:21PM +0100, Andreas Pakulat wrote:
> > > On 11.12.06 10:47:16, Bob Rossi wrote:
> > > > If this is possible, I'd be very greatful to know how. If it's
not
> > > > possible, how could you not consider qmake inflexible?
> > >
> > > Being able to cross-compile is not necessarily a limitation of the
> build
> > > system, in fact from qmake's point of view there's nothing that
> prevents
> > > cross compilation. The problem probably is more on the side of the
> > > cross-compiler.
> >
> > Well, that's possible. The whole thing is sort of a big mess. I
mean,
> > the compiler I need is cygwin's compiler, and I need cygwin's
compiler
> > on my path in order to do a build. However, qmake get's mad when I
have
> > cygwin's sh on my path. Also, for some reason, the windows build
expects
> > mingw-make to be on the path. Why can't any make be used?
> 
> Make sure you configure using win32-g++ platform (i.e. configure
> -platform win32-g++).  And yes you have to remove sh from the PATH,
> which is the same when you do a native-mingw compilation.
> 
> Other than that, I don't know. I didn't try to cross-compile Qt and I
> only installed it once on a Windows box.
> 
> > > > > If you want to compile with a different compiler use the
proper
> > > > > variables to tell Qt's configure (like CC, CXX). Also checkout
the
> > > > > options that configure takes.
> > > >
> > > > Yes, I'm familiar with this. Although, simply specifing the CC
and
> CXX
> > > > variables doesn't seem to work nicely with ./configure. For some
> reason,
> > > > the cygwin sh may not be on the path.
> > >
> > > It seems you also have to set some gcc-flags, see the qmake
> > > documentation for the proper variables to do this. I'm not sure
how to
> > > set those though, probably by setting them in the .qmake.cache
file in
> > > the Qt root dir.
> >
> > OK, that's interseting. Thanks. Does anyone have more info on this?
> 
> The QMake Manual (doc.trolltech.com/4.2/qmake-manual.html and the
> following site:
> http://wiki.qtcentre.org/index.php?title=Undocumented_qmake
> 
> And last but not least: The source of qmake ;)
> 
> > > > > Also you may need the Qt/X11 version, as Cygwin is *nix on
> Windows.
> > > >
> > > > I don't want to build qt for cygwin. I just want to use cygwin
as a
> > > > cross compile environment to build windows qt nativly using
mingw.
> > >
> > > Ah, ok. But I don't really see the point in that. Why do you want
to
> > > cross-compile from cygwin, when you have a Windows box already?
Just
> > > install the Qt4-mingw edition, or install mingw and compile Qt4.
> >
> > Again, quickly check out my other response if you don't mind.
> 
> Sure, it just arrived after I sent the message. Did you think about a
> vnc server or a terminal server solution?
> 
> Andreas
> 
> --
> You have the power to influence all with whom you come in contact.
> 
> --
> 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/

--
 [ signature omitted ]