QT5 - qmake can't find its own modules

QT5 - qmake can't find its own modules

Anonymous
Not applicable
3,882 Views
2 Replies
Message 1 of 3

QT5 - qmake can't find its own modules

Anonymous
Not applicable

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:

  1. The console output when trying to run qmake says "Project ERROR: Unknown module(s) in QT: core gui widgets."

  2. In qt.conf, the pointer to the three "unknown" modules, when fully unfolded, is /Applications/Autodesk/maya2017/Maya.app/Contents/MacOS.

  3. 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.

0 Likes
3,883 Views
2 Replies
Replies (2)
Message 2 of 3

vijaya.prakash
Alumni
Alumni

Hi,

 

Did you follow the instructions to build pyqt5?

https://github.com/cyrillef/Maya-PyQt-Scripts/blob/master/doc/pyqtmaya2017.pdf 

 

Make sure that your qt.conf file looks like below.

cat /Applications/Autodesk/maya2017/Maya.app/Contents/bin/qt.conf

[Paths]

Prefix=

Libraries=$(MAYA_LOCATION)/MacOS

Binaries=$(DEVKIT_LOCATION)/devkit/bin

Headers=$(DEVKIT_LOCATION)/include/Qt

ArchData=$(DEVKIT_LOCATION)

Data=$(DEVKIT_LOCATION)

HostData=$(DEVKIT_LOCATION)

HostBinaries=$(DEVKIT_LOCATION)/devkit/bin

HostLibraries=$(MAYA_LOCATION)/MacOS

 

Thanks,

Vijay.

 

 

0 Likes
Message 3 of 3

Anonymous
Not applicable

Vijay, thanks for the reply. I added "/Qt" to the headers variable in qt.conf. I tried the link you pasted but was faced with a 404. I looked up instructions for building PyQt5 on Google and came across instructions to use homebrew - which I did here.

 

 Unfortunately, no luck on either count...

0 Likes