« Custom Shapes in the Maya API | Main | Building Qt, PyQt, PySide for Maya 2013 - Part 2 »

October 03, 2012


Feed You can follow this conversation by subscribing to the comment feed for this post.

Eric Pavey

What are the chances Autodesk will provide pre-compiled versions for users for future releases of Maya? I got about as far as this post on my own before giving up (hit too many snags, the open ssl thing threw me for a loop) and just found a pre-compiled version online (2013 x64 win). I'm reluctant to start authoring production-sensitive ui's that won't work in the next version of Maya until someone recompiles this stuff. Thoughts?

Cyrille Fauvel

Hi Eric,
I know what you mean, that whole thing isn't an easy process for everyone. The main important point here is to remember you only need to recompile Qt source if you want to modify Qt source on your side which in this case Autodesk cannot provide you with your modified binaries. Maya ships Qt binaries and libraries that you can use directly. So the openssl comment is only relevant for those who wants to recompile Qt itself.

Now I guess your comment was on providing PyQt or PySide binaries (may be both ;) - We survey developers on our annual API survey for the last 2 years (i.e.: http://around-the-corner.typepad.com/adn/2012/06/api-wishlist-surveys.html) and we saw a fair amount of people using either PyQt and/or PySide, so we are thinking about it...

I did not posted the binaries here for legal implication in doing that, but I am ready to share my scripts on the 3 platforms for those interested.


I'm trying to install pyqt but when I'm in the step to build SIP I get some errors like this:

NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'

I use maya 2013 without the extension. And i don't have qmake.exe inside the folder: ..\maya2013\bin
can you help me?
Thank you.

Cyrille Fauvel

Hi Luis
you do not need Qt to build SIP, so in theory it should work fine with this

subst v: whateverrootfolderyouwant
rem ex: subst v: e:\Users\cyrille\QtBuild
cd \sip-4.13.3
SET MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0
call "%MSVC_DIR%\VC\vcvarsall" amd64
set MAYA_LOCATION=C:\Program Files\Autodesk\Maya2013
set INCLUDE=%INCLUDE%;%MAYA_LOCATION%\include\python2.6;%MAYA_LOCATION%\Python\include
"%MAYA_LOCATION%\bin\mayapy" configure.py
nmake install

Let me know if any problem


Thank you, it worked.
But now when I try to test I get another error:

My command is:
from PyQt4 import QtGui,QtCore, uic
import maya.cmds as cmds

uifile = '$d+"/test.ui"'
form, base = uic.loadUiType(uifile)

# Error: IOError: file C:\Program Files\Autodesk\Maya2013\bin\python26.zip\xml\etree\ElementTree.py line 579: 22 #

Do You know why it happend?

The error is when execute the step: "form, base = uic.loadUiType(uifile)"

Thank you very much!

Cyrille Fauvel

Hi Luis
without seeing the ui file, I can't really tell. I tried a simple ui file and it worked fine for me. Please copy me your code and I'll try. Contact me by email (email in my profile - http://around-the-corner.typepad.com/adn/cyrille-fauvel.html)


Ok I will send you an e-mail.
Thank you.


Thank you for your help,
it is working now!

Marco Giordano

Hello thanks for the great post ,I didn't test it yet but i will do that tonight , so far I used other tutorial.
Honestly is quite a pain to compile pyqt or pyside ( I am running into tons of errors and when i fix them other rises and so on ). I really hope autodesk will provide asap binaries at least for pyside for all platform (since pyside doesn't have license problems for distributing).It would be so nice from autodesk :)

Jimmy Christensen

I'm fairly certain that PySide can be shipped pre-compiled without any legal issues. I know for a fact that Nuke ships with them.

Jimmy Christensen

Actually, I've tested using Nuke's PySide in Maya and it seems to work fairly well (just remember to copy over the libshiboken-python2.6 library aswell).

Andrew Grant


I am wondering if you can provide information about getting PyQt built for MotionBuilder?


Ken Mohamed

Hi Cyrille,
First, thanks for the post. I'm attempting to build Qt for Maya on OS X-Lion. The instructions for building the configuration using the -sdk switch if running Lion helped me over my first roadblock.

I'm still having trouble and was hoping that you could help.

I built the configuration using:

./configure -prefix-install -arch x86_64 -debug-and-release -no-rpath -silent -no-qt3support -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk -platform macx-g++

Then "make" ended with the following:
linking ../../../../plugins/phonon_backend/libphonon_qt7.dylib
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks//QuickTime.framework/QuickTi\
me, missing required architecture x86_64 in file
mv -f libphonon_qt7_debug.dylib ../../../../plugins/phonon_backend/
ld: warning: ignoring file /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk/System/Library/Frameworks//QuickTime.framework/QuickTi\
me, missing required architecture x86_64 in file
mv -f libphonon_qt7.dylib ../../../../plugins/phonon_backend/
make: *** [sub-plugins-make_default-ordered] Error 2

Subsequently, after cleaning up ( make clean, make confclean ), I re-built the configuration with the change "-arch x_86"

This time, "make" ended with:

linking ../../../../../../imports/QtWebKit/libqmlwebkitplugin.dylib
ld: file not found: phonon.framework/Versions/4/phonon for architecture i386
collect2: ld returned 1 exit status
make[2]: *** [../../../../../../imports/QtWebKit/libqmlwebkitplugin.dylib] Error 1
make[1]: *** [release-all] Error 2
make[1]: *** Waiting for unfinished jobs....
rm -f libqmlwebkitplugin_debug.dylib
linking ../../../../../../imports/QtWebKit/libqmlwebkitplugin_debug.dylib
ld: file not found: phonon.framework/Versions/4/phonon for architecture i386
collect2: ld returned 1 exit status
make[2]: *** [../../../../../../imports/QtWebKit/libqmlwebkitplugin_debug.dylib] Error 1
make[1]: *** [debug-all] Error 2
make: *** [sub-webkitdeclarative-make_default-ordered] Error 2

Any suggestions would be greatly appreciated.

Cyrille Fauvel

Hi Ken

You cannot use x_86, it should be x86_64.
and because you do not point to the 10.6.sdk, you are using the Lion 10.7 SDK which is the one by default on Lion.
It also means you are using Xcode 4 vs Xcode 3.2.1 as it is specified in the Maya document. I know it is not always obvious what happens during compilation but you have to follow the exact steps to get it working.

./configure -prefix /Users/myHomeDir/qt-4.7.1 -arch x86_64 -debug-and-release -no-rpath -silent -no-qt3support -sdk /Developer/SDKs/MacOSX10.6.sdk

If the /Developer/SDKs/MacOSX10.6.sdk does not exist on your system, that means you do not have the Xcode 3.2.1 compiler, nor the 10.6 SDK which are required. In that case please install them - they can be installed side by side to Xcode 4 and the 10.7 SDK.

Hope that will help,

The comments to this entry are closed.

The Authors
Cyrille Fauvel Lanh Hong Cheng Xi Li