@echo off
set MAYAQTBUILD=%~dp0
set MAYAQTBUILD=%MAYAQTBUILD:~0,-1%
set SIPDIR=%MAYAQTBUILD%\sip-4.16.5
set MAYA_LOCATION=E:\Programmes\Autodesk\Maya2015
set MSVC_DIR=%LOCALAPPDATA%\Programs\Common\Microsoft\Visual C++ for Python\9.0
if not exist "%MSVC_DIR%\vcvarsall.bat" (
echo You need to download and install 'Microsoft Visual C++ Compiler for Python 2.7' before running this.
goto :end
)
call "%MSVC_DIR%\vcvarsall" amd64
set INCLUDE=%INCLUDE%;%MAYA_LOCATION%\include\python2.7;%MAYA_LOCATION%\Python\include
set LIB=%LIB%;%MAYA_LOCATION%\lib
cd %SIPDIR%
"%MAYA_LOCATION%\bin\mayapy" configure.py
nmake
nmake install
:end
pause
@echo off
set MAYAQTBUILD=%~dp0
set MAYAQTBUILD=%MAYAQTBUILD:~0,-1%
set MAYA_LOCATION=E:\Programmes\Autodesk\Maya2015
set QTDIR=%MAYA_LOCATION%
set MSVC_VERSION=2008
set QMAKESPEC=%QTDIR%\mkspecs\win32-msvc%MSVC_VERSION%
set SIPDIR=%MAYAQTBUILD%\sip-4.16.5
set PYQTDIR=%MAYAQTBUILD%\PyQt-win-gpl-4.11.3
set MSVC_DIR=%LOCALAPPDATA%\Programs\Common\Microsoft\Visual C++ for Python\9.0
if not exist "%MSVC_DIR%\vcvarsall.bat" (
echo You need to download and install 'Microsoft Visual C++ Compiler for Python 2.7' before running this.
goto :end
)
if not exist "%QMAKESPEC%\qmake.conf" (
echo You need to uncompress %MAYA_LOCATION%\mkspecs\qt-4.8.5-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.5-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
)
echo All seems to be fine, setting amd64 compiler environment...
call "%MSVC_DIR%\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%
echo Going to create compilation configuration files...
"%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
:end
pause
All seems to be fine, setting amd64 compiler environment...
Setting environment for using Microsoft Visual Studio 2008 x64 tools.
Going to create compilation configuration files...
Determining the layout of your Qt installation...
E:\Programmes\Autodesk\Maya2015\bin\qmake.exe -o qtdirs.mk qtdirs.pro
nmake -f qtdirs.mk release
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
"C:\Users\Micka\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe" -f qtdirs.mk.Release
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
cl -c -nologo -Zm200 -Zc:wchar_t- -O2 -MD -Zi -GR -EHsc -W3 -w34100 -w34189 -DUNICODE -DWIN32 -DQT_DLL -DQT_NO_DEBUG -DQT_CORE_LIB -DQT_HAVE_M
MX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT -DNDEBUG -I"..\..\..\..\Programmes\Autodesk\Maya2015\include\Qt\Q
tCore" -I"..\..\..\..\Programmes\Autodesk\Maya2015\include\Qt" -I"..\..\..\..\Programmes\Autodesk\Maya2015\include\Qt\ActiveQt" -I"release" -I"..\..\.
.\..\Programmes\Autodesk\Maya2015\mkspecs\win32-msvc2008" -Forelease\ @C:\Users\Micka\AppData\Local\Temp\nm2008.tmp
qtdirs.cpp
link /LIBPATH:"e:\Programmes\Autodesk\Maya2015\lib" /NOLOGO /DYNAMICBASE /NXCOMPAT /INCREMENTAL:NO /MANIFEST /MANIFESTFILE:"release\qtdirs.int
ermediate.manifest" /SUBSYSTEM:WINDOWS "/MANIFESTDEPENDENCY:type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' publicKeyToken='65
95b64144ccf1df' language='*' processorArchitecture='*'" /OUT:release\qtdirs.exe @C:\Users\Micka\AppData\Local\Temp\nm23C2.tmp
qtmain.lib(qtmain_win.obj) : warning LNK4229: invalid directive '/FAILIFMISMATCH:_MSC_VER=1700' encountered; ignored
qtmain.lib(qtmain_win.obj) : warning LNK4229: invalid directive '/FAILIFMISMATCH:_ITERATOR_DEBUG_LEVEL=0' encountered; ignored
qtmain.lib(qtmain_win.obj) : warning LNK4229: invalid directive '/FAILIFMISMATCH:RuntimeLibrary=MD_DynamicRelease' encountered; ignored
qtmain.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xbad_alloc(void)" (__imp_?_Xbad_alloc
@std@@YAXXZ) referenced in function "char * __cdecl std::_Allocate<char>(unsigned __int64,char *)" (??$_Allocate@D@std@@YAPEAD_KPEAD@Z)
qtmain.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xlength_error(char const *)" (__imp_?
_Xlength_error@std@@YAXPEBD@Z) referenced in function "public: bool __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<
char> >::_Grow(unsigned __int64,bool)" (?_Grow@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEAA_N_K_N@Z)
qtmain.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) void __cdecl std::_Xout_of_range(char const *)" (__imp_?
_Xout_of_range@std@@YAXPEBD@Z) referenced in function "public: void __cdecl std::basic_string<char,struct std::char_traits<char>,class std::allocator<
char> >::_Xran(void)const " (?_Xran@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QEBAXXZ)
qtmain.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Syserror_map(int)" (__imp_?_S
yserror_map@std@@YAPEBDH@Z) referenced in function "public: virtual class std::error_condition __cdecl std::_System_error_category::default_error_cond
ition(int)const " (?default_error_condition@_System_error_category@std@@UEBA?AVerror_condition@2@H@Z)
qtmain.lib(qtmain_win.obj) : error LNK2019: unresolved external symbol "__declspec(dllimport) char const * __cdecl std::_Winerror_map(int)" (__imp_?_W
inerror_map@std@@YAPEBDH@Z) referenced in function "public: virtual class std::basic_string<char,struct std::char_traits<char>,class std::allocator<ch
ar> > __cdecl std::_System_error_category::message(int)const " (?message@_System_error_category@std@@UEBA?AV?$basic_string@DU?$char_traits@D@std@@V?$a
llocator@D@2@@2@H@Z)
release\qtdirs.exe : fatal error LNK1120: 5 unresolved externals
NMAKE : fatal error U1077: '"C:\Users\Micka\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\link.EXE"' : return code '0
x460'
Stop.
NMAKE : fatal error U1077: '"C:\Users\Micka\AppData\Local\Programs\Common\Microsoft\Visual C++ for Python\9.0\VC\Bin\amd64\nmake.exe"' : return code '
0x2'
Stop.
Error: Failed to determine the layout of your Qt installation. Try again using
the --verbose flag to see more detail about the problem.
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1064: MAKEFILE not found and no target specified
Stop.
Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation. All rights reserved.
NMAKE : fatal error U1073: don't know how to make 'install'
Stop.
Any particular reason you don't just stick with PySide since it is shipped? Pretty sure most people are now ditching the process of building PyQt for Maya, unless you have some specific reason.
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/9694a0ce-f628-4f01-9529-9f32632f5651%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_maya+unsub...@googlegroups.com.
Yea you do need to stick with versions compatible to the specific Autodesk modified Qt version
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/d6e69786-92c2-4a15-8d29-031ecfe69bae%40googlegroups.com.
Hi Mickael!
Did you get the chance to build PyQt for Maya 2015? I get the same problem also with PyQt-win-gpl-4.10.4 recommanded by Autodesk...
--
You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/70d1a4f6-9b8a-41b4-a471-31e000742ba6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to a topic in the Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/python_inside_maya/j0P_BT4Ht64/unsubscribe.
To unsubscribe from this group and all its topics, send an email to python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmOAsZppe3NnSUmtprSkVMQ1yJXTOMxym_J-DVncDX_%3D%2B8g%40mail.gmail.com.