![]() This then leads to a strange compiler error: Error: boost\bind\bind.hpp:249: error: C2664: 'Panel *boost::factory::operator ()(void) const': cannot convert argument 1 from 'Widget *' to 'Widget *&' Through the boost mailing list an explanation was found: boost::factory predates C++11, and hence does not know about move semantics, forwarding, etc. When I started searching for an explanation, I did not get much hints, except that someone else had the same problems a few years ago. But, one issue popped up: boost::factory did not compile in the way I use it. ![]() All of this had compiled with MinGW, and as I don't use lots of TMP or other platform dependent things, I expected this to go through. You might need to change the default debugger to 圆4 instead of x86 though.īut as it turned out, installing was the one thing, getting my project to compile again, is another. PitfallsĪnd this all works, just out of the box! Qt should auto detect the tool chain and debugger, so you might want to install them first. Oh, and I use boost, don't want to figure out how to build boost with the new build chain (probably quite easy), so there is also a binary package with pre build libraries from boost available. Maybe some of this is already on your machine. So, for now this is my setup: Qt 5.8 brings the latest QtCreator (4.2.1), the Visual Studio Build Tools provide me with the build chain, and a debugger is the last thing you need to install. You also might want to install the Windows Debugger, which is part of a larger SDK, but you can disable everything else, even Debugging works in QtCreator! These also exist for the 2017rc, but for now I am on the latest 2015 version. Even better, with the Visual Studio Build Tools, there is a compiler only version available. It comes handy, that QtCreator can handle different compilers over its compiler kit interface, so I don't have to setup a full Visual Studio project and figure out what pitfalls are unknown to me with Visual Studio + Qt. So, a switch to the MSVC flavor of Qt is needed. Under Windows though, Chrome does not build with MinGW. ![]() but with Qt 5.7 new things came to Qt, the QWebEngine replacing the QtWebKit module, so for my HTML Editor to run, I have to use this new, chrome based browser system included in Qt. In the past, as GCC was a little bit better with the newer standards, today, well, never change a running system. With this, I also preferred (and still do a little) to use the MinGW builds of Qt on Windows. Using QtCreator together with the Visual Studio Build Toolsįor a while I've been using QtCreator as my IDE, mostly because its deep integration with Qt, as most of my projects are Qt related.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |