How to install and use Qt 5.10 (for desktop) in Qt Creator 4.5.0?
-
Hello.
I am kindly ask for help with installation of Qt 5.10. Currently I am using Qt 5.5 and MSVC2013 32bit. However I would like to switch to MSVC2017 32bit and I am bit puzzled how to do this.
I've updated MaintenanceTool.exe to the latest version and here is what I am seeing:
What should I check if I want to develop for desktop? Another thing which is worrying me is that I don't see MSVC 2017 32-bit. I want to use 32 bit compiler, is it possible?
Best regards.
-
Hi
Since vs2015 and vs2017 are compatible, you should be able to use
MSVC 2015 32-bit with visual studio 2017. ( that you install your self)That is all you need for desktop.
Update/install VS 2017 from MS first
then the Qt binary.
That should make sure it pick up the kit correctly. -
Hi @mrjj (nice hat BTW ;) ) I didn't know about this compatibility. But here I see a bunch of whole new things added:
https://docs.microsoft.com/en-us/cpp/what-s-new-for-visual-cpp-in-visual-studioI don't understand, is 32 bit compiler no longer supported?:(
-
@Wodzu said in How to install and use Qt 5.10 (for desktop) in Qt Creator 4.5.0?:
I don't understand, is 32 bit compiler no longer supported?:(
It is still supported, there is just no prebuild binary (lack of resources). You can build Qt from source if you need 32bit with MSVC2017.
-
@Wodzu
Well its first time any visual studio was compatible with a newer/older one in the binary sense.
I have only seen people use Qt Vs2015 64bit with studio 2017 compiler.
I think the 2015 32 bit should also work but i have not tried it personally.So install it and see after you installed studio 2017.
As far as i know visual studio still support 32 bit development.
-
@mrjj said in How to install and use Qt 5.10 (for desktop) in Qt Creator 4.5.0?:
As far as i know visual studio still support 32 bit development.
I think you've misunderstood me. I thought that I can use VS2017 32bit compiler in Qt Creator, but @aha_1980 explained that to me. I should try to build Qt from source.
In a meantime I've installed MS2017 64bit and I see it as an Auto-detected kit in Qt Creator. However, I don't know how to use it for my current project? I can only select two kits bot for VS2013. How to add 3rd kit to my project?
Ok, found it:http://doc.qt.io/qtcreator/creator-configuring-projects.html
Thanks:)
-
@Wodzu
Hi
@aha_1980 said to have Qt 2017 32-bit prebuild, (there is only a 2015 32 bit prebuild) you can
compile Qt yourself. (and have a true 32 bit 2017 )However, the prebuild Qt vs2015 32 bit might work with the visual studio 2017 compiler (for first time)
So if you install Qt 2015-32bit prebuild and visual studio 2017 - it should work.
Try to delete the .user file so it lets you select compiler again.
Also go to options in Creator and see if the 2017 compiler is detected. (oh you did)
http://doc.qt.io/qtcreator/creator-targets.html -
-
@Wodzu
Np. We are here to help.
Exactly :)
Normally it will detect the new 2017 compiler and its ready for use but else yes just
add the kit by hand and you should be good to go :)Maybe i should also try the new 2017 compiler :)
-
@mrjj said in How to install and use Qt 5.10 (for desktop) in Qt Creator 4.5.0?:
Maybe i should also try the new 2017 compiler :)
Bit of a derailing comment, but I'd mention ++17 is probably worth a try! I just have been reading some of the new 17 lib features today:
https://isocpp.org/files/papers/p0636r0.html
which led me to:
https://stackoverflow.com/questions/36246300/parallel-loops-in-c?#answer-45773308
then:
http://en.cppreference.com/w/cpp/algorithm/execution_policy_tag_tI've blown myself up a couple times just learning mutexes ... getting myself into deadlocks and read access violations - it's been an enlightening year! I maybe diving too fast into Parallelism... but you (read: "I do") have to learn from the start and it might as well be now.
The change from 15 to 17 was uneventful for me. I'm using c++&qml: Network/UDP, QtCharts, Widgets, Quick Controls2 ... currently, I can switch back to run 15 but I stay 17 now, and all under Windows && Linux (maybe more) but at least on compilers GCC/MinGw/MSVC64 - :-) (what a time to be alive)!
-
@6thC
Thank you for your input.
Indeed its a good time to be alive :)That looks might interesting with parallel loops
I must confess the single new feature in c++ after 98 i love the most is
std::string unescaped= R"( { "name":"John", "age":31, "city":"New York" }; )";