Chris Gervang - 2017-10-20

qt3 doesn't support macOS 10.12 at all. It doesn't support any version of OSX newer than 10.4 according to the source code at qt/include/qglobal.h line 189.

I've tried using qt5, but it the installation fails on lprof version 1.11.4.1 because the CheckForQtAt functoin in /SConstruct at line 89 becuase the test import tries to include qapplication.h (which is in qt3/include but not in qt5/include)

SConstruct test that fails:

result = AttemptLinkWithVariables(context,
      { "LIBS": "qt-mt", "LIBPATH": libp , "CPPPATH": cppp },
      """
#include <qapplication.h>
int main(int argc, char **argv) {
  QApplication qapp(argc, argv);
  return 0;
}
""",".cpp","QT_")

I believe this could be updated to something like:
(according to this tutorial)

#include <QCoreApplication>

int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    return 0;
}

EDIT: tried updating the test, and it still failed with QT directory not valid. Failed QT test build. I know it is finding my qt directory because it is not printing QT not found. Invalid qt_directory value - failed to find uic.

 

Last edit: Chris Gervang 2017-10-20