How to link Qt 2.4.1(32) with Intel MKL lib?
-
And referring to last but one post, I think I'll manage switching to msvc compiler 64 bit. And assuming I'll do it, what will be next?
-
And do I get it right that to switch to another compiler in Qt Creator I should have it all recompiled with this compiler?
-
OK, now I've downloaded Qt 5.1.1 msvc2012_64_opengl, and managed to accomplish configuring a kit with MSVC 2012 compiler and Qt 5.1.1 profile. But I have a problem with nmake. I've pointed it to Qt Creator when configuring compiler settings (because neither detected compiler nor detected kit didn't work). And every attempt ends up with make errors. It can't find iostream:
fatal error C1083: ЌҐ г¤ Ґвбп ®вЄалвм д ©« ўЄ«о票Ґ: iostream: No such file or directory
I don't know what to do with its encoding but that's not the main trouble -
Are you sure you've got MSVC 2012 installed properly ?
-
Well, I've just downloaded VS express 2013 for Desktop. Of course I'm not sure, but today I downloaded jom and the same occured. I think problem is with cl.exe but I don't know how to configure it. And by the way, I'm not sure it's 64bit. My kit and compiler settings:
!https://gpieeq.dm2302.livefilestore.com/y2paD5XV7xVmiuVcMqwrBjNSrycBgdsi4gaa9QNUxe9XlDQq4K6OJDu9jEcfGIXQ7c_IjEv_RwFLbtGYr78qFiFYypkxH7wmVvQofbi6_zdMGg/compiler_settings.png?psid=1()!
https://gpieeq.dm1.livefilestore.com/y2p_pb35ffVEQLNjx2eNT7Ll7SL8mIJF1MNFKPj91U_i_DuvjdLG1usZDFGTv3EwSDcwXuEoanBh2wnV1o2SC_-NbHo0kHAbJNplY72Ql6VvmQ/kit_settings.png?psid=1 -
If russian interface confuses you please ask for translation
-
I've just tried to compile main.cpp with cl.exe with options that adds Qt Creator.
-
I've just tried to compile main.cpp with cl.exe with options that adds Qt Creator.
main.cpp:
@#include <iostream>
using namespace std;int main()
{
int a;
cout << "Hello wr!\n";
return 0;
}
@options:
cl -c -nologo -Zm200 -Zc:wchar_t -Zi -MDd -GR -W3 -w34100 -w34189 -EHsc -DUNICODE -DWIN32 -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -I"..........\Qt\Qt5.1.1\5.1.1\msvc2012_64_opengl\mkspecs\win32-msvc2012"
And it works just fine and produces obj file, the problem is aparrently with LINK. Because if I erase -c option (to get cl invoke linker after compiling) LINK emits error message, he can't open msvcprtd.lib -
OK, now I can compile such an example with the same compile command line and with following link command line:
"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\bin\link.exe"
main.obj
/LIBPATH:"C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib"
/LIBPATH:"C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86"
And that's it. But I don't know what to do with nmake or jom, how do I change their compile and link lines, to make them behave like the above example? Any help would be appreciated. -
If you have installed VS it should be detected by Qt Creator so you should be able to do everything from it.