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
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.1
Copyright (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\Qt
UiTools" -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\Maya20
16\include\QtCore" -I"c:\Autodesk\Maya2016\include\QtGui" -I"c:\Autodesk\Maya201
6\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\Maya20
16\include\QtCore" -I"c:\Autodesk\Maya2016\include\QtGui" -I"c:\Autodesk\Maya201
6\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: 'QMetaTypeId
2' : '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.cpp
Generating 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 which seems pretty similar to what I'm experiencing right now.
Any idea how I can fix this ?
Are you using a compiler and Qt version that is compatible with Maya 2016?
--
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/aef4e47d-7c45-4c41-8959-c999e488d21f%40googlegroups.com.
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_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/3f3ed60a-27eb-497e-8a22-6bdec6557cd3%40googlegroups.com.
...
...
C:\Users\A\Documents\Visual Studio 2013\Projects\qtForms>nmake -f Makefile.qt release\qtForms.mll
Microsoft (R) Program Maintenance Utility Version 11.00.50727.1Copyright (C) Microsoft Corporation. All rights reserved.
qmake -makefile -o qtForms.mak qtForms.pro "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\amd64\nmake.exe" -nologo -f qtForms.mak "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\amd64\nmake.exe" -f qtForms.mak.Release C:\Autodesk\Maya2016\bin\moc.exe -DUNICODE -DWIN32 -DNDEBUG -D_WINDOWS -DNT_PLUGIN -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\mkspecs\win32-msvc2010" -D_MSC_VER=1600 -DWIN32 qtForms.h -o release\moc_qtForms.cpp c:\Autodesk\Maya2016\bin\rcc.exe -name qtForms qtForms.qrc -o release\qrc_qtForms.cpp cl -c -nologo -Zm200 -Zc:wchar_t /FD /GS -O2 -MD -Zi -W3 -w34100 -w34189 -GR -EHsc -DUNICODE -DWIN32 -DNDEBUG -D_WINDOWS -DNT_PLUGIN -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\mkspecs\win32-msvc2010" -Forelease\ @C:\Users\A\AppData\Local\Temp\nm4940.tmpqtForms.cpp cl -c -nologo -Zm200 -Zc:wchar_t /FD /GS -O2 -MD -Zi -W3 -w34100 -w34189 -GR -EHsc -DUNICODE -DWIN32 -DNDEBUG -D_WINDOWS -DNT_PLUGIN -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\mkspecs\win32-msvc2010" -Forelease\ @C:\Users\A\AppData\Local\Temp\nm61DF.tmpc:\autodesk\maya2016\include\qtcore\qvariant.h(614) : error C2913: explicit specialization; 'QMetaTypeId2' is not a specialization of a class templateqrc_qtForms.cppGenerating Code...NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\amd64\cl.EXE"' : return code '0x2'Stop.NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'Stop.NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\amd64\nmake.exe"' : return code '0x2'Stop....
c:\Autodesk\Maya2016\include\QtCore/qhash.h<span style="c
--
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/eac7f99e-93ba-4a89-98ee-a14e2ef77f3d%40googlegroups.com.