[Qt-interest] release binary looking for debug dll?
Andreas Pakulat
apaku at gmx.de
Sun Feb 15 21:26:34 CET 2009
On 15.02.09 19:35:14, Matthias Pospiech wrote:
> Matthias Pospiech schrieb:
> > Matthias Pospiech schrieb:
> >
> >> I am using QtCreator and .pro Files.
> >>
> >> The binary created in debug mode works fine.
> >> In release mode the binary is 300 times smaller, but is complaining
> >> about not found debug dlls.
> >>
> >> What could have gone wrong?
> >>
> >>
> > I could see with dependancy checker that the qwtd5.dll (debug dll) is
> > loaded instead of the release version.
> > What would be necessary to have the release version loaded
> Somehow the .pro file is read wrong:
>
> debug:LIBS += -Llib/qwt/mingw/debug -lqwtd5
>
> release:LIBS += -Llib/qwt/mingw/release -lqwt5
>
>
> this should differ between debug and release mode. However it is not. In
> the compiler output bot libaries are linked.
> Only if I comment the first line it works...
You didn't specify wether Qt should do a debug, release or
debug_and_release build (IIRC its a CONFIG option), so it'll do whatever is
the default and in the case of debug_and_release the above snippet won't
work. Check the qmake manual on how to properly check for debug vs. release
builds in a debug_and_release configured project.
Andreas
--
You need more time; and you probably always will.
More information about the Qt-interest-old
mailing list