Build Qt debug and release builds
-
Hi,
I'm building Qt from source, but somehow I'm always ending up with the debug dll/lib's (Qt*d.lib).
Here's what I'm doing:
@
$qtbase> configure -debug -nomake examples -nomake tests -opensource -prefix C:\Qt\5.2.1\selfbuilt_msvc2013_64
$qtbase> nmake
$qtbase> nmake install
$qtbase> nmake confclean
$qtbase> configure -release -nomake examples -nomake tests -opensource -prefix C:\Qt\5.2.1\selfbuilt_msvc2013_64
$qtbase> nmake
$qtbase> nmake install
@
The second nmake install just also copies the debug libraries.
I also tried
@$qtbase> nmake release@
but it didn't change anything.What am I doing wrong? Any help appreciated.
Thanks,
-
Hi and welcome to devnet,
Since you want to build both set of libraries why not just use the debug_and_release configuration option ?
-
Hi, thanks for the welcome! :-)
I assume you mean "-debug-and-release".
I just tried that:
@qtbase> configure -debug-and-release -nomake examples -nomake tests -opensource -prefix C:\Qt\5.2.1\selfbuilt_msvc2013_64
nmake install@and it flawlessly installed both. Nice.
Btw, it's kind of difficult to find those options, http://qt-project.org/doc/qt-4.8/configure-options.html is out-of-date (Qt 4.8, and also the descriptions are not so good imho) and http://qt-project.org/doc/qt-5/configure-options.html is far from listing all options.
-
Yes, sorry, I've always make that mistake.
The configuration options for 4.8 are actual for 4.8. There's been a lot of internal changes for Qt 5. But indeed, the configuration options documentation for Qt 5 is a bit light.
What you can do is open a new documentation bug on "the bug report system":http://bugreports.qt-project.org