Error linking against Maya 2016's Qt

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi everyone,
I am trying to link against Maya's Qt.
My program is a simple main.cpp that looks like this
#include <QtCore/qstring.h> int main(int argc, char **argv) { QString failString; return 0; }
I have both Maya 2015 and Maya 2016 installed, and am using Visual Studio 2012 Update 4.
In the "Developer Command Prompt for VS2012", I type
[...]\Maya2015\bin\qmake.exe -spec win32-msvc2012 -tp vc
And I get a VS2012 project that I can compile.
However if I run Maya2016's qmake
[...]\Maya2016\bin\qmake.exe -spec win32-msvc2012 -tp vc
I get a VS2012 project that fails to compile, with the following linking error:
main.obj : error LNK2019: unresolved external symbol __imp_q_atomic_increment referenced in function main
The only difference I see between the two procedures is that Maya 2015's Qt headers were shipped with Maya, while I downloaded Maya 2016's Qt headers from the Autodesk Exchange website. Surely this cannot be the reason for the unresolved symbol, so I am really confused and am wondering if there is something obvious I am missing here?
Thanks a lot.