Details
Description
I have setup msvc2010 build of Qt4 and Qt5 in
E:\Qt\4.8.5\bin\
and
E:\Qt\Qt5.2.0\5.2.0\msvc2010\bin\
respectivetely.
When i setup both, profile for Qt5 has buildVariant: ["debug", "release"], but for qt only "debug".
also, creation "core.qbs" by template also failed.
for some reason, in
// determine whether Qt is built with debug, release or both if (qtEnvironment.qtConfigItems.contains(QLatin1String("debug_and_release"))) { qtEnvironment.buildVariant << QLatin1String("debug") << QLatin1String("release"); } else { int idxDebug = qtEnvironment.qtConfigItems.indexOf(QLatin1String("debug")); int idxRelease = qtEnvironment.qtConfigItems.indexOf(QLatin1String("release")); if (idxDebug < idxRelease) qtEnvironment.buildVariant << QLatin1String("release"); else qtEnvironment.buildVariant << QLatin1String("debug"); }
it selects only "debug" variant.
So it PREVENTS normal use of qbs, I couldn't build anything for release!!
I had to fix it dirty placing
qtEnvironment.buildVariant= QStringList() << "release" << "debug";
after that fragment.
ps. qt 4.8.5/4.8.6 no difference.