Are you using a compiler and Qt version that is compatible with Maya 2016?

On Thu, 19 Nov 2015 5:12 AM Settoken <seme...@hotmail.fr> wrote:

> I'm trying to compile *qtforms* which is one of the Qt example plugins
> provided by Autodesk with the Maya Devkit. It demonstrates 3 different ways
> to integrate Qt in a maya plugin.
>
> You can find it here: devkit plug-ins
> <https://github.com/autodesk-adn/Maya-devkit/tree/master/win/devkit/plug-ins>
>
>
> I've been through several issues already but I am now stuck with errors
> while compiling.Here is the output:
>
> C:\Program Files (x86)\Microsoft Visual Studio 12.0>cd 
> C:\Users\A\Documents\Visu
> al Studio 2013\Projects\qtForms
>
> C:\Users\A\Documents\Visual Studio 2013\Projects\qtForms>nmake -f Makefile.qt 
> re
> lease\qtForms.mll
> Microsoft (R) Program Maintenance Utility Version 12.00.21005.1Copyright (C) 
> Microsoft Corporation.  All rights reserved.
>
>         qmake -makefile -o qtForms.mak qtForms.pro
>         "C:\Program Files (x86)\Microsoft Visual Studio 
> 12.0\VC\BIN\nmake.exe" -
> nologo -f qtForms.mak
>         "C:\Program Files (x86)\Microsoft Visual Studio 
> 12.0\VC\BIN\nmake.exe" -
> f qtForms.mak.Release
>         C:\Autodesk\Maya2016\bin\moc.exe -DUNICODE -DWIN32 
> -DQT_NO_IMPORT_QT47_Q
> ML -DNDEBUG -D_WINDOWS -DNT_PLUGIN -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN 
> -DQT_XML_L
> IB -DQT_GUI_LIB -DQT_CORE_LIB -DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE 
> -DQT_H
> AVE_MMXEXT -DQT_HAVE_SSE2 -DQT_THREAD_SUPPORT 
> -I"c:\Autodesk\Maya2016\include\QtUiTools" 
> -I"c:\Autodesk\Maya2016\include\QtCore" -I"c:\Autodesk\Maya2016\include
> \QtGui" -I"c:\Autodesk\Maya2016\include\QtXml" 
> -I"c:\Autodesk\Maya2016\include"-I"." -I"..\..\include" 
> -I"c:\Autodesk\Maya2016\include\ActiveQt" -I"release" -I"." 
> -I"c:\Autodesk\Maya2016\mkspecs\win32-msvc2012" -D_MSC_VER=1700 -DWIN32 qtFo
> rms.h -o release\moc_qtForms.cpp
>         c:\Autodesk\Maya2016\bin\rcc.exe -name qtForms qtForms.qrc -o 
> release\qr
> c_qtForms.cpp
>         cl -c -nologo -Zm200 -Zc:wchar_t /FD /GS -O2 -MD -Zi -W3 -w34100 
> -w34189
>  -GR -EHsc -DUNICODE -DWIN32 -DQT_NO_IMPORT_QT47_QML -DNDEBUG -D_WINDOWS 
> -DNT_PL
> UGIN -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB 
> -DQT_CORE_LIB-DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT 
> -DQT_HAVE_SSE2 -DQT
> _THREAD_SUPPORT -I"c:\Autodesk\Maya2016\include\QtUiTools" 
> -I"c:\Autodesk\Maya2016\include\QtCore" 
> -I"c:\Autodesk\Maya2016\include\QtGui" -I"c:\Autodesk\Maya2016\include\QtXml" 
> -I"c:\Autodesk\Maya2016\include" -I"." -I"..\..\include" 
> -I"c:\Autodesk\Maya2016\include\ActiveQt" -I"release" -I"." 
> -I"c:\Autodesk\Maya2016\mk
> specs\win32-msvc2012" -Forelease\ @C:\Users\A\AppData\Local\Temp\nm81FD.tmp
> qtForms.cpp
>         cl -c -nologo -Zm200 -Zc:wchar_t /FD /GS -O2 -MD -Zi -W3 -w34100 
> -w34189
>  -GR -EHsc -DUNICODE -DWIN32 -DQT_NO_IMPORT_QT47_QML -DNDEBUG -D_WINDOWS 
> -DNT_PL
> UGIN -DQT_DLL -DQT_NO_DEBUG -DQT_PLUGIN -DQT_XML_LIB -DQT_GUI_LIB 
> -DQT_CORE_LIB-DQT_HAVE_MMX -DQT_HAVE_3DNOW -DQT_HAVE_SSE -DQT_HAVE_MMXEXT 
> -DQT_HAVE_SSE2 -DQT
> _THREAD_SUPPORT -I"c:\Autodesk\Maya2016\include\QtUiTools" 
> -I"c:\Autodesk\Maya2016\include\QtCore" 
> -I"c:\Autodesk\Maya2016\include\QtGui" -I"c:\Autodesk\Maya2016\include\QtXml" 
> -I"c:\Autodesk\Maya2016\include" -I"." -I"..\..\include" 
> -I"c:\Autodesk\Maya2016\include\ActiveQt" -I"release" -I"." 
> -I"c:\Autodesk\Maya2016\mk
> specs\win32-msvc2012" -Forelease\ @C:\Users\A\AppData\Local\Temp\nm8604.tmp
> moc_qtForms.cpp
> c:\Autodesk\Maya2016\include\QtCore/qmetatype.h(357) : error C2065: 'ULONG' : 
> un
> declared identifier
> c:\Autodesk\Maya2016\include\QtCore/qmetatype.h(357) : error C2923: 
> 'QMetaTypeId2' : 'ULONG' is not a valid template type argument for parameter 
> 'T'
> c:\Autodesk\Maya2016\include\QtCore/qmetatype.h(357) : error C2913: explicit 
> spe
> cialization; 'QMetaTypeId2' is not a specialization of a class template
> [...same error on different lines]
>
> c:\Autodesk\Maya2016\include\QtCore/qmetatype.h(412) : error C2913: explicit 
> spe
> cialization; 'QMetaTypeId2' is not a specialization of a class template
> c:\Autodesk\Maya2016\include\QtCore/qhash.h(69) : error C2065: 'ULONG' : 
> undecla
> red identifier
> c:\Autodesk\Maya2016\include\QtCore/qhash.h(69) : error C2146: syntax error : 
> mi
> ssing ')' before identifier 'key'
> c:\Autodesk\Maya2016\include\QtCore/qhash.h(69) : error C2433: 'qHash' : 
> 'inline' not permitted on data declarations
> c:\Autodesk\Maya2016\include\QtCore/qhash.h(69) : error C2365: 'qHash' : 
> redefin
> ition; previous definition was 'function'
> c:\Autodesk\Maya2016\include\QtCore/qhash.h(69) : error C2059: syntax error : 
> ')'
> c:\Autodesk\Maya2016\include\QtCore/qhash.h(70) : error C2143: syntax error : 
> mi
> ssing ';' before '{'
> c:\Autodesk\Maya2016\include\QtCore/qhash.h(70) : error C2447: '{' : missing 
> fun
> ction header (old-style formal list?)
> c:\Autodesk\Maya2016\include\QtCore/qhash.h(77) : error C3861: 'ULONG': 
> identifi
> er not found
> c:\autodesk\maya2016\include\qtcore\qvariant.h(612) : error C2913: explicit 
> spec
> ialization; 'QMetaTypeId2' is not a specialization of a class template
> c:\autodesk\maya2016\include\qtcore\qvariant.h(613) : error C2913: explicit 
> spec
> ialization; 'QMetaTypeId2' is not a specialization of a class template
> c:\autodesk\maya2016\include\qtcore\qvariant.h(614) : error C2913: explicit 
> spec
> ialization; 'QMetaTypeId2' is not a specialization of a class template
> qrc_qtForms.cppGenerating Code...
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
> 12.0
> \VC\BIN\cl.EXE"' : return code '0x2'Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
> 12.0
> \VC\BIN\nmake.exe"' : return code '0x2'Stop.
> NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 
> 12.0
> \VC\BIN\nmake.exe"' : return code '0x2'Stop.
>
>
> I've found this thread
> <https://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/area-b50/message-id/3854/print-single-message/false/page/1>
>  which
> seems pretty similar to what I'm experiencing right now.
>
> Any idea how I can fix this ?
>
> --
> 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_maya+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/python_inside_maya/aef4e47d-7c45-4c41-8959-c999e488d21f%40googlegroups.com
> <https://groups.google.com/d/msgid/python_inside_maya/aef4e47d-7c45-4c41-8959-c999e488d21f%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 python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/python_inside_maya/CAPGFgA1gOMLfmGW8VkouLHdRSOJUfkMApvTdj7RymW3Gj43Erw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to