Skip to content

Commit

Permalink
Maya 2014 windows
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrillef committed May 14, 2015
1 parent c554976 commit bab77c7
Show file tree
Hide file tree
Showing 9 changed files with 107 additions and 114 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,19 @@
Scripts to easily build PyQt for Maya


## Maya 2014
Maya 2014 is shipping with PySide, therefore there is no more need to build PySide.

libxml, openSSL, OpenAL, python2.7, qt-4.8.2-64, and tbb are also coming by default in the Maya include and lib folder, so unless you have a very
specific need, you would not need to rebuild any of those libraries like before.

You can find more explanations about building PyQt and PySide and instructions about using these scripts on the blog at:

http://around-the-corner.typepad.com/adn/2013/04/building-sip-and-pyqt-for-maya-2014.html


## Maya 2013-5
You can find the scripts used for building Qt, PyQt and PySide for Maya 2013.5, [here](https://github.com/cyrillef/Maya-PyQt-Scripts/releases/tag/v2013.5).
The windows scripts get updated for Maya 2013-5. They are similar to the Maya 2013 procedures and instructions, but you do not need to rebuild openssl this time.


Expand Down
7 changes: 6 additions & 1 deletion win/build All.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
@echo off
call "E:\__sdkext\_Maya2013-5 Scripts\build setup.bat"
%~d0
cd /d %~dp0..

call "build setup.bat"
call "build Qt.bat"
call "build SIP.bat"
call "build PyQt.bat"

pause
20 changes: 20 additions & 0 deletions win/build OpenSSL.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@echo off
set XXX=%~dp0
if ["%MAYAQTBUILD%"]==[""] call "%XXX%build setup.bat"

rem http://www.uvm.edu/~gcd/2010/09/compiling-openssl-for-win-x64/
cd %OPENSSL%
set PREFIXSSL=%OPENSSL%

if exist p:\nul subst p: /d
subst p: "C:\Program Files\ActivePerl"
set PERL="p:\bin\perl.exe"
set PATH=%PATH%;p:\bin

rem %PERL% Configure VC-WIN64A --prefix=%PREFIXSSL% no-shared no-idea
%PERL% Configure VC-WIN64A --prefix=%PREFIXSSL%
call ms\do_win64a.bat
nmake -f ms\nt.mak
nmake -f ms\ntdll.mak

pause
55 changes: 43 additions & 12 deletions win/build PyQt.bat
Original file line number Diff line number Diff line change
@@ -1,16 +1,47 @@
@echo off
IF NOT "%CYRILLE%" == "OK", call "E:\__sdkext\_Maya2013-5 Scripts\build setup.bat"

rem ------------------------------------------------
rem Building PyQt

cd \PyQt-win-gpl-4.9.4

"%MAYA_LOCATION%\bin\mayapy" configure.py LIBDIR_QT=%QTDIR%\lib INCDIR_QT=%QTDIR%\include MOC=%QTDIR%\bin\moc.exe -w --no-designer-plugin
set INCLUDE=%INCLUDE%;%MAYA_LOCATION%\include\python2.6;%MAYA_LOCATION%\Python\include
set MAYAQTBUILD=%~dp0
set MAYAQTBUILD=%MAYAQTBUILD:~0,-1%
if exist v:\nul subst v: /d
subst v: "%MAYAQTBUILD%"
v:

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

set QTDIR=%MAYA_LOCATION%
set MSVC_VERSION=2010
set QMAKESPEC=%QTDIR%\mkspecs\win32-msvc%MSVC_VERSION%
if not exist "%QMAKESPEC%\qmake.conf" (
echo "You need to uncompress %MAYA_LOCATION%\mkspecs\qt-4.8.2-64-mkspecs.tar.gz !"
goto :end
)
if not exist "%MAYA_LOCATION%\include\Qt\QtCore\qdir.h" (
echo "You need to uncompress %MAYA_LOCATION%\include\qt-4.8.2-64-include.tar.gz in %MAYA_LOCATION%\include\Qt !"
goto :end
)
findstr /L /C:"Headers=../include/Qt" %MAYA_LOCATION%\bin\qt.conf >nul 2>&1
if ERRORLEVEL 1 (
echo "You need to edit %MAYA_LOCATION%\bin\qt.conf to use 'Headers=../include/Qt'"
goto :end
)

set SIPDIR=v:\sip-4.14.5
set PYQTDIR=v:\PyQt-win-gpl-4.10

set MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0
rem 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

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

rem ------------------------------------------------

rem "c:\Program Files\Autodesk\Maya2013.5\bin\mayapy" configure.py LIBDIR_QT=V:\qt-adsk-4.7.1\lib INCDIR_QT=V:\qt-adsk-4.7.1\include MOC=moc.exe -w --no-designer-plugin

:end
pause
47 changes: 0 additions & 47 deletions win/build PySide.bat

This file was deleted.

19 changes: 5 additions & 14 deletions win/build Qt.bat
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
@echo off
IF NOT "%CYRILLE%" == "OK", call "E:\__sdkext\_Maya2013-5 Scripts\build setup.bat"

rem ------------------------------------------------
rem Building Qt
set XXX=%~dp0
if ["%MAYAQTBUILD%"]==[""] call "%XXX%build setup.bat"

cd %QTDIR%
rem nmake confclean
configure -platform win32-msvc%MSVC_VERSION% -debug-and-release -no-qt3support -no-phonon -no-phonon-backend -no-webkit
rem configure -platform win32-msvc%MSVC_VERSION% -debug-and-release -no-qt3support -no-phonon -no-phonon-backend -no-webkit
configure -prefix %AQTDIR% -platform win32-msvc%MSVC_VERSION% -debug-and-release -no-qt3support
nmake

rem Building the Maya devkit Qt plug-ins
rem c:
rem cd \Program Files\Autodesk\Maya2011\devkit\plug-ins
rem nmake -f Makefile.qt
rem nmake -f Makefile.qt clean
rem v:

rem ------------------------------------------------

pause
12 changes: 4 additions & 8 deletions win/build SIP.bat
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
@echo off
IF NOT "%CYRILLE%" == "OK", call "E:\__sdkext\_Maya2013-5 Scripts\build setup.bat"
set XXX=%~dp0
if ["%MAYAQTBUILD%"]==[""] call "%XXX%build setup.bat"

rem ------------------------------------------------
rem Building SIP

cd \sip-4.13.3
set LIB=%LIB%;%MAYA_LOCATION%\lib
cd %SIPDIR%
"%MAYA_LOCATION%\bin\mayapy" configure.py
nmake
nmake install

rem ------------------------------------------------

pause
27 changes: 17 additions & 10 deletions win/build setup.bat
Original file line number Diff line number Diff line change
@@ -1,18 +1,25 @@
@echo off
subst v: /d
subst v: "E:\__sdkext\_Maya2013-5 Scripts"

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

set QTDIR=v:\qt-adsk-4.7.1
set OPENSSL=v:\openssl-1.01c
set QTDIR=v:\qt-adsk-4.8.2
set SIPDIR=v:\sip-4.14.5
set PYQTDIR=v:\PyQt-win-gpl-4.10
set AQTDIR=v:\aqt-4.8.2

set PATH=%QTDIR%\bin;%PATH%
SET MSVC_VERSION=2010
SET MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0
set MSVC_VERSION=2010
set MSVC_DIR=C:\Program Files (x86)\Microsoft Visual Studio 10.0
set QMAKESPEC=win32-msvc%MSVC_VERSION%
rem set QMAKESPEC=%QTDIR%\mkspecs\win32-msvc%MSVC_VERSION%

rem call "%MSVC_DIR%\VC\vcvarsall" amd64
rem if [%LIBPATH%]==[] call "%MSVC_DIR%\VC\vcvarsall" amd64

set MAYA_LOCATION=C:\Program Files\Autodesk\Maya2013.5
set INCLUDE=%INCLUDE%;%MAYA_LOCATION%\include\python2.6;%MAYA_LOCATION%\Python\include
set MAYA_LOCATION=C:\Program Files\Autodesk\Maya2014
set INCLUDE=%INCLUDE%;%MAYA_LOCATION%\include\python2.7;%MAYA_LOCATION%\Python\include
set LIB=%LIB%;%MAYA_LOCATION%\lib
rem set QMAKESPEC=%QTDIR%\mkspecs\win32-msvc%MSVC_VERSION%
22 changes: 0 additions & 22 deletions win/build shiboken.bat

This file was deleted.

0 comments on commit bab77c7

Please sign in to comment.