QT 4.8.2 with VS2013
-
Hello,
Does anyone know if I can use qt 4.8.2 with Visual Studio 2013? I have been trying to get it to compile but with no luck. I need to get it up and running so that I may compile a project. The project was written with qt 4.8.2 and VS2010. This is why I am using qt 4.8.2 but I do not have VS2010 so I have to use VS2013. I do not know if these two are just incompatible or if I am just doing something wrong in the build process. Unfortunately I am unable to find much info on this combination. Any help or suggestions would be helpful.
Thanks
-
Qt 4.8.5 is fully compatible, you can safely upgrade. Or even better: use Qt 4.8.6 (it's not yet released, but snapshots are already available, and a release is expected in late February).
-
FYI this patch might help, if not obsolete: http://stackoverflow.com/questions/18080625/qt-4-8-visual-studio-2013-compiling-error
-
Thanks, I tried that patch but I am getting about the same errors. These are some of the errors I am getting. Sorry but I am very new to qt.
@C:\QT\qt-4.8.2\src\3rdparty\javascriptcore\JavaScriptCore\wtf/MathExtras.h(129)
: error C2084: function 'bool signbit(double)' already has a body (..\3rdparty\javascriptcore\JavaScriptCore\API\JSCallbackConstructor.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(324) : see previous definition of 'signbit'
C:\QT\qt-4.8.2\src\3rdparty\javascriptcore\JavaScriptCore\wtf/MathExtras.h(129)
: error C2084: function 'bool signbit(double)' already has a body (..\3rdparty\javascriptcore\JavaScriptCore\API\JSCallbackObject.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(324) : see previous definition of 'signbit'
C:\QT\qt-4.8.2\src\3rdparty\javascriptcore\JavaScriptCore\wtf/MathExtras.h(129)
: error C2084: function 'bool signbit(double)' already has a body (..\3rdparty\javascriptcore\JavaScriptCore\API\JSCallbackFunction.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(324) : see previous definition of 'signbit'
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(615)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSCallbackConstructor.cpp)
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(615)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSCallbackObject.cpp)
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(615)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSCallbackFunction.cpp)
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(696)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSCallbackConstructor.cpp)
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(696)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSCallbackObject.cpp)
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(696)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSCallbackFunction.cpp)
C:\QT\qt-4.8.2\src\3rdparty\javascriptcore\JavaScriptCore\wtf/MathExtras.h(129)
: error C2084: function 'bool signbit(double)' already has a body (..\3rdparty\javascriptcore\JavaScriptCore\API\JSBase.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(324) : see previous definition of 'signbit'
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(615)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSBase.cpp)
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(696)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSBase.cpp)
JSClassRef.cpp
JSContextRef.cpp
JSObjectRef.cpp
C:\QT\qt-4.8.2\src\3rdparty\javascriptcore\JavaScriptCore\wtf/MathExtras.h(129)
: error C2084: function 'bool signbit(double)' already has a body (..\3rdparty\javascriptcore\JavaScriptCore\API\JSClassRef.cpp)
C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\INCLUDE\math.h(324) : see previous definition of 'signbit'
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(615)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSClassRef.cpp)
c:\qt\qt-4.8.2\src\3rdparty\javascriptcore\javascriptcore\runtime\JSValue.h(696)
: error C2264: 'signbit' : error in function definition or declaration; function not called (..\3rdparty\javascriptcore\JavaScriptCore\API\JSClassRef.cpp)JSValueRef.cppNMAKE : 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: 'cd' : return code '0x2'
Stop.C:\QT\qt-4.8.2>
@It kind of looks like there is some declaration conflict with signbit, but I can not seem to find it. Any other suggestions?
-
Please read all the messages from this thread: http://lists.qt-project.org/pipermail/development/2013-October/013528.html
It seems that you should better compile 4.8.5 version rather than 4.8.2. I really don't think they would patch backwards.
-
[quote author="postb99" date="1391155156"]It seems that you should better compile 4.8.5 version rather than 4.8.2. I really don't think they would patch backwards. [/quote]
Correct. Both 4.8.2 and 4.8.5 are already patch releases for 4.8.0 ;)