Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

PyQt build fails at last stage

PyQt build fails at last stage

Anonymous
Not applicable
740 Views
2 Replies
Message 1 of 3

PyQt build fails at last stage

Anonymous
Not applicable

Hi there

 

Using the pdf by Cyrille Fauvel to get PyQt working with my Maya 2016.5 install on Mac OS 10.11. I'm using the scripts supplied which I modified slightly:

 

changed PyQt version to 4.11.4 

changed SIP version to 4.18

changed maya from maya 2016 to 2016.5

 

ran the sip script no problems.

run the pyqt script and pass all the checks, but compile fails with the following error. Can anyone tell me what I'm doing wrong?

 

mac:scripts administrator$ sh pyqt
~/Desktop/build/scripts ~/Desktop/build/scripts
~/Desktop/build/scripts/PyQt-mac-gpl-4.11.4 ~/Desktop/build/scripts ~/Desktop/build/scripts
Determining the layout of your Qt installation...
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.
make: *** No targets specified and no makefile found. Stop.
make: *** No rule to make target `install'. Stop.
~/Desktop/build/scripts ~/Desktop/build/scripts
~/Desktop/build/scripts

 

when I build the configure statment manually and execute in the PyQt-mac-gpl-4.11.4 folder, this is what I get:

 

 

mac:PyQt-mac-gpl-4.11.4 administrator$ /Applications/Autodesk/maya2016.5/Maya.app/Contents/bin/mayapy ./configure.py —use-arch x86_64 -q /Applications/Autodesk/maya2016.5/Maya.app/Contents/bin/qmake LIBDIR_QT=/Applications/Autodesk/maya2016.5/Maya.app/Contents/MacOS INCDIR_QT=/Applications/Autodesk/maya2016.5/devkit/include/Qt MOC=/Applications/Autodesk/maya2016.5/Maya.app/Contents/bin/moc w --no-designer-plugin -g --verbose
Determining the layout of your Qt installation...
/Applications/Autodesk/maya2016.5/Maya.app/Contents/bin/qmake -spec macx-g++ -o qtdirs.mk qtdirs.pro
make -f qtdirs.mk
g++ -c -pipe -O2 -g -arch x86_64 -Xarch_x86_64 -mmacosx-version-min=10.8 -g -Wall -W -DQT_NO_IMPORT_QT47_QML -DQT_NO_DEBUG -DQT_CORE_LIB -I/Applications/Autodesk/maya2016.5/Maya.app/Contents/bin/mkspecs/macx-g++ -I. -I/Applications/Autodesk/maya2016.5/Maya.app/Contents/bin/include/QtCore -I/Applications/Autodesk/maya2016.5/Maya.app/Contents/bin/include -I. -o qtdirs.o qtdirs.cpp
g++ -headerpad_max_install_names -arch x86_64 -g -Xarch_x86_64 -mmacosx-version-min=10.8 -o qtdirs.app/Contents/MacOS/qtdirs qtdirs.o -L/Applications/Autodesk/maya2016.5/Maya.app/Contents/bin/lib -lQtCore
ld: library not found for -lQtCore
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [qtdirs.app/Contents/MacOS/qtdirs] Error 1
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.

 

I have the QTCore file and it's corresponding libQTCore.dylib duplicate in the/Applications/Autodesk/maya2016.5/Maya.app/Contents/MacOS folder, and the script runs through all it's pre-flight checks without error. Not sure what to do next.

 

Any help would be sincerely appreciated.

0 Likes
741 Views
2 Replies
Replies (2)
Message 2 of 3

vijaya.prakash
Alumni
Alumni

Hi,

 

I am also facing the same issue on my side. I am still looking for a solution. Meanwhile, as a work-around you can point/use the "qmake" of Maya 2016 instead of Maya 2016.5 "qmake". The problem is, Maya 2016.5 "qmake" expects frameworks instead of libraries.

 

$$ mv /Application/Autodesk/maya2016.5/Maya.app/Contents/bin/qmake /Application/Autodesk/maya2016.5/Maya.app/Contents/bin/qmake.2016.5

$$ cp /Application/Autodesk/maya2016/Maya.app/Contents/bin/qmake /Application/Autodesk/maya2016.5/Maya.app/Contents/bin/qmake

 

After the above steps, run the same script to get pyqt build.

 

Please let me know if you have any questions.

 

Thanks,

Vijaya Prakash.

0 Likes
Message 3 of 3

vijaya.prakash
Alumni
Alumni

Hi, 

 

Before running the script, did you edit the qconfig.pri file? Cyrille had clearly specified the modules we need to skip, moreover while running the script did you get the info about "You have to copy dylib files"? if so, in that script please uncomment the "cp" command and run the script again.

 

Please let me know if you face any issues.

 

Thanks,

Vijaya Prakash.

0 Likes