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.
On Sun, 28 Dec 2014 10:43 AM Mickael Bonfill <[email protected]> wrote: > > > Hello everyone, > > I would install PyQt on Maya 2015 x64 to make UI. I saw there's a > documentation file on Autodesk website : > http://download.autodesk.com/us/support/files/maya_documentation/pyqtmaya2015.pdf > > In the documentation, Microsoft Visual Studio is used to have a > C-Compiler. However there's a new release in Microsoft website made > especially for Python2.7 : > http://www.microsoft.com/en-us/download/details.aspx?id=44266 > > So I decided to use this new release and I writed new bat file : > > *sip.bat:* > @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 > > > Using this, I didn't have any problem during compilation. > > But I met a problem with the bat file below. > > *qt.bat:* > @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 > > Here's the *output*: > 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. > > > > So it seems it can't resolve some variables, right ? Anyone met this kind > of problem ? > > > Any help would be appreciated :) > > Thank you. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/9694a0ce-f628-4f01-9529-9f32632f5651%40googlegroups.com > <https://groups.google.com/d/msgid/python_inside_maya/9694a0ce-f628-4f01-9529-9f32632f5651%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA0GrZX_Ew1KP7np%2BNRUWjBJN5RHaNiSTm9jajHOuOOvfw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
