diff --git a/ext/toolchain/commands1.py b/ext/toolchain/commands1.py index 503b05f1..5f85a3e3 100644 --- a/ext/toolchain/commands1.py +++ b/ext/toolchain/commands1.py @@ -769,12 +769,7 @@ class InternalCommands: if err != 0: raise Exception(bin + " failed with error: " + str(err)) - (qMajor, qMinor, qRev) = self.getQmakeVersion() - if qMajor <= 4: - frameworkRootDir = "/Library/Frameworks" - else: - # TODO: auto-detect, qt can now be installed anywhere. - frameworkRootDir = "/Developer/Qt5.2.1/5.2.1/clang_64/lib" + frameworkRootDir = commands.getoutput("qmake -query QT_INSTALL_LIBS") target = bundleTargetDir + "/Contents/Frameworks"