Make sure the qconfig.pri looks like this: qconfig.pri #configurationĬONFIG += release def_files_disabled exceptions no_mocdepend stl x86_64 qt #qt_framework Untar the qt-5.6. into /Applications/Autodesk/maya2017/mkspecs. Untar the include/qt-5.6. into /include/Qt HostBinaries=$(DEVKIT_LOCATION)/devkit/bin Therefore, users must set both environment variables before building the PyQt5.ĭEVKIT_LOCATION should point to the directory where the devkit include, mkspecs, cmake directories are located. The qt.conf file uses MAYA_LOCATION and DEVKIT_LOCATION to locate the expected header/library files. Use xcode-select to change active xcode like below: sudo xcode-select -switch /Applications/Xcode.app/Contents/Developer Please backup /Applications/Xcode.app and use Xcode 7.3.1 to replace it. If you would like to use Xcode 7.3.1 to compile it and you are having multiple installation of Xcode.
#Autodesk maya 2018 mac os x
Here are the instructions and scripts for building SIP and PyQt.įollow the instructions from the API docs to setup your environment (Developer Resources > API Guide > Setting up your build environment > Mac OS X environment, in the Maya Documentation) Users/cyrille/Documents/_Maya2018Scripts/ being my local folder. The scripts used in this document are now also posted on Github.ĭownload SIP and PyQt source from ' ' - here I downloaded 'sip- 4.19.3' and 'PyQt5_gpl-5.9'.
#Autodesk maya 2018 install
Make sure to read the instructions to install the devkit, include and mkspecs folders properly on your system. Download the devkit and unzip the files into your Maya root folder. You can get the Maya 2018 devkit from the Autodesk App Store here for Windows, OSX, and Linux. Important: Maya 2018 now ships without the devkit, include and mkspecs folders. Note as well that there is a 'MAYA_LOCATION/support/opensource' folder now which contains some of the community source. Libxml, openSSL, OpenAL, python2.7, qt-5.6.1, and tbb are also coming by default in the Maya include and lib folders, so unless you have a very specific need, you would not need to rebuild any of those libraries like before. However, be aware that with Maya 2018, there is no more need to build PySide as it is coming by default in Maya, nor you have to rebuild Qt itself as the main Qt tools to build PyQt are now included in the Maya distributions (I.e.
#Autodesk maya 2018 how to
A copy of the customized Qt 5.6.1 source is available from Autodesk's Open Source web-site () and includes text files describing how to configure, build and install Qt for each platform supported by Maya. Note that it’s important to use the Maya modified version of the Qt source code. Maya 2018 uses Qt5.6.1 which is binary compatible with the latest version of PyQt – 5.9 / SIP - 4.19.2 The following are instructions for building a copy of the PyQt modules that have been known to work with Maya. Please consult the PyQt website for information about licensing for PyQt. PyQt does not have the same licensing as Maya, Qt, or Python. Because Maya uses Qt internally, you can use the PyQt modules in Maya python scripts to create custom UI. Updated by Chengxi Li - Autodesk Developer Network (August 2018)īuilding SIP, and PyQt for Maya 2018 PyQt is a python binding to the Qt library. Visit Autodesk Knowledge Network for more on installing to a shared library.Written by Cyrille Fauvel – Autodesk Developer Network (April 2013) If you are part of a team working with a shared library of compounds, you can install compounds and graphs to a shared location on a network or to a local copy of a shared repository. Visit Autodesk Knowledge Network for more on installing to a shared library.