QT5 - qmake can't find its own modules

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
It seems the Mac is having trouble finding its modules. qt.conf tells qmake to find the modules at $(MAYA_LOCATION)/MacOS. All the modules that qmake pretends it can't find are exactly where it's ostensibly looking for them. I don't know if you have any ideas about this? The only thing I can think right now is either there is a competing qt.conf file somewhere OR the modules aren't named the way that qmake expects them to be named. I followed some pointers gleaned from this question: Unknown module(s) in QT: core gui widgets but to no avail.
Just a recap of what's going on:
The console output when trying to run qmake says "Project ERROR: Unknown module(s) in QT: core gui widgets."
In qt.conf, the pointer to the three "unknown" modules, when fully unfolded, is /Applications/Autodesk/maya2017/Maya.app/Contents/MacOS.
Finally at that very location, /Applications/Autodesk/maya2017/Maya.app/Contents/MacOS, all three modules are present.
Why is qmake acting like this? I know the general advice is not to move your qt since all paths are hard-coded, yet I don't have a choice because this is for Maya. I have set all the requisite environment variables, or so I think. Maybe I should list the environment variables below, am I missing one?
MAYA_BIN_DIR, DEVKIT_BIN_DIR, MAYA_APP_LOCATION, MAYA_LOCATION, DEVKIT_LOCATION, QMAKESPEC, and QMAKEFEATURES.