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.

Build sip and pyqt Maya 2016 Windows?

Build sip and pyqt Maya 2016 Windows?

willockss
Explorer Explorer
1,219 Views
3 Replies
Message 1 of 4

Build sip and pyqt Maya 2016 Windows?

willockss
Explorer
Explorer

I am trying to build pyqt in windows for maya 2016, and i tried based on autodesk pdf example, which it doesn't give much explanations.

 

I got stuck when is trying to build QtCore and i got this error message:

Unable to create c++ code ....

 

 

Any help will be appreciate.

 

Thank you

0 Likes
Accepted solutions (1)
1,220 Views
3 Replies
Replies (3)
Message 2 of 4

RFlannery1
Collaborator
Collaborator
Maya 2016 comes with PySide included. Is there a particular reason you need to use PyQt instead?
0 Likes
Message 3 of 4

willockss
Explorer
Explorer
Accepted solution

I had fixed it. It was the "space" for the name of the folder where i had extracted pyqt from devkit. Now it works.

And since i understood correctly PySide it didn't had any improvments for quite some time now, so i want to move for PyQt

 

But thank you for reply,

0 Likes
Message 4 of 4

Anonymous
Not applicable
Can you explain more about PyQt installation , I installed SIP successfully by following documents but not able to build for PyQt.

i stored below code as "PyQt.bat" in PyQt-win-gpl-4.11.3

@Anonymous off

set MAYAQTBUILD=%~dp0
set MAYAQTBUILD=%MAYAQTBUILD:~0,-1%
if exist v:\nul subst v: /d
subst v: "%MAYAQTBUILD%"

set MAYA_LOCATION=C:\Program Files\Autodesk\Maya2016
if exist m:\nul subst m: /d
subst m: "%MAYA_LOCATION%"
set MAYA_LOCATION=m:

set QTDIR=%MAYA_LOCATION%
set MSVC_VERSION=2012
set QMAKESPEC=%QTDIR%\mkspecs\win32-msvc%MSVC_VERSION%<br>set _QMAKESPEC_=win32-msvc%MSVC_VERSION%
<br>...

set SIPDIR=v:\sip-4.16.7
set PYQTDIR=v:\PyQt-win-gpl-4.11.3

set MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 11.0
if ["%LIBPATH%"]==[""] call "%MSVC_DIR%\VC\vcvarsall" amd64

set INCLUDE=%INCLUDE%;%MAYA_LOCATION%\include\python2.7;%MAYA_LOCATION%\Python\include
set LIB=%LIB%;%MAYA_LOCATION%\lib

pushd %PYQTDIR%

pushd pylupdate
del moc_translator.cpp 2> nul
del moc_translator.obj 2> nul
%QTDIR%\bin\moc.exe -o moc_translator.cpp translator.h
popd

set PATH=%QTDIR%\bin;%PATH%
"%MAYA_LOCATION%\bin\mayapy" configure.py -p %QMAKESPEC% LIBDIR_QT=%QTDIR%\lib INCDIR_QT=%QTDIR%\include\Qt MOC=%QTDIR%\bin\moc.exe -w --no-designer-plugin
nmake
nmake install
popd
0 Likes