This topic will describe how to obtain the Autodesk-patched version of Qt required for use with 3ds Max. You can also download a pre-built package from the Autodesk Developer Network.
http://www.autodesk.com/company/legal-notices-trademarks/open-source-distribution
https://www.openssl.org/source/
Building OpenSSL requires Perl.
To build Qt:
Remove all moc .tmp files. There are many ways to do this, for example with Cygwin you can use:
find . -path '*/tmp/moc*' -type f -exec rm '{}' \;In powershell you can use:
get-childitem .\ -include *.moc -recurse | foreach ($_) {remove-item $_.fullname}Open the Visual Studio 2015 Native Tools Command prompt. Configure the build by running:
configure -no-qt3support -platform win32-msvc2015 -plugin-sql-sqlite -qmake -qtlibinfix _Ad_ -qt-libjpeg -qt-libmng -qt-libtiff -qt-sql-sqlite -qt-zlib -vcproj -developer-build -no-openssl -nomake docs -nomake examples -nomake demos -nomake tests -opensource
Qt is now built and ready to use.
To build Qt with OpenSSL, use this command line for running the configure command:
configure -I <openssl_include_path> -L <openssl_lib_path> -no-qt3support -openssl -platform win32-msvc2015 -plugin-sql-sqlite -qmake -qtlibinfix _Ad_ -qt-libjpeg -qt-libmng -qt-libtiff -qt-sql-sqlite -qt-zlib -vcproj -developer-build -nomake docs -nomake examples -nomake demos -nomake tests -opensource
The Win64/x64 openssl build names the include directory "inc32" and the lib directory "out32dll".
To test your Qt build, try building the maxsdk\samples\systems\sunlight project:
<QTDIR>$(MaxSdkDir)\Qt\4.8.5\</QTDIR> <QtInc>$(MaxSdkDir)\Qt\4.8.5\include\</QtInc> <QtLib>$(MaxSdkDir)\Qt\4.8.5\binary\win_vc14\x64\lib\</QtLib> <QtMigrateLib>$(MaxSdkDir)\Qt\4.8.5\QtApps\qtwinmigrate\2.8\binary\win_vc14\x64\lib\</QtMigrateLib>
This step is optional, but highly recommended if you plan on creating UIs in Qt.
The Qt Manager Add-in for Visual Studio makes it much easier to set up projects that use Qt, and to create UIs using the Designer. Autodesk has modified the Qt Manager for Qt 4 to work with Visual Studio 2012. Since an add-in is not yet available for Visual Studio 2015, the current workflow is:
The Creating a Qt-based Plug-in tutorial uses this workflowt.
To use the Qt Manager, you need to obtain and build the Qt Add-in for Visual Studio 2012. Clone the source located at: https://github.com/lakiduo/QtAddin
Build the project using the instructions here: http://wiki.qt.io/QtVSAddin. Use the Qt 4.x instruction set, and the Autodesk-modified Qt libraries.