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

Qt-interest Archive, June 2007
Re: Which compiler to use on win32?


Message 1 in thread

> I'm using mingw 5.1.3 here and have no problem compiling dll's with much
> more than 10-15 sources. In particular building Qt4.3 itself works fine
> for me here.

So it is the compiler which is installed by qt installer itself?
Then I assume that I can't use environment vars the way I do. In the pro-file, 
I define something like
DEST_PATH = $(POSSRC)/libs
and the resulting linker script says
ar $(POSSRC) ...
and probably that's the synatx error (?)

But why it works with small libs, where no such script is generated...?

--
 [ signature omitted ] 

Message 2 in thread

On 01.06.07 09:46:43, J. Preiss wrote:
> > I'm using mingw 5.1.3 here and have no problem compiling dll's with much
> > more than 10-15 sources. In particular building Qt4.3 itself works fine
> > for me here.
> 
> So it is the compiler which is installed by qt installer itself?

No, I installed mingw separately.

> Then I assume that I can't use environment vars the way I do. In the pro-file, 
> I define something like
> DEST_PATH = $(POSSRC)/libs
> and the resulting linker script says
> ar $(POSSRC) ...
> and probably that's the synatx error (?)

I think you want $$(POSSRC), see the qmake manual.

Andreas

-- 
 [ signature omitted ] 

Message 3 in thread

> > Then I assume that I can't use environment vars the way I do. In the
> > pro-file, I define something like
> > DEST_PATH = $(POSSRC)/libs
> > and the resulting linker script says
> > ar $(POSSRC) ...
> > and probably that's the synatx error (?)
>
> I think you want $$(POSSRC), see the qmake manual.

I changed it to $$(POSSRC) .. no effect. "Syntax error in line 1". 
When I change DESTDIR to "d:\sources\libs", it works fine. Unfortunately, I 
defined the DESTDIR globally, so I cannot use "../../libs" or something like 
that :-(

--
 [ signature omitted ] 

Message 4 in thread

Hi Preiss,
           Try to use the nmake in the windows enviornoment for 
compilation purpose.

Regards,
Gaurav Sharma




"J. Preiss" <auba@xxxxxxx> 
05/31/2007 07:49 PM

To
qt-interest@xxxxxxxxxxxxx
cc

Subject
Which compiler to use on win32?






Hi all,

what compiler do *you* use on win32? When I use gcc and the free license 
of 
qt4, I cannot create libraries, because ar says "syntax error in linker 
script". 
When I use VStudio 2005 and the licensed qt4, I get some strange errors 
like "need DLL entry point". 

Currently, we're trying out VStudio.6, and it seems that we have to use 
that 
compiler until the hell freezes or something like that. 

To say it clear: I use nothing else then QMAKESPEC and pro files. That 
can't 
be that much :-( I am sorry, that I am a "little bit" upset...

--
 [ signature omitted ]