Greetings all,
We are developing a QT application (QT 4.6 LGPL version) in Linux platform.All the libraries we use are cross-platform.
Now we want to port it into Windows and continue develop in Windows.
My questions are:
Which compiler should we use ,Can we use MinGW or Visual C++ compiler?
2.If its Visual C++ compiler, which Visual Studio version should be used ,can we use 'Visual C++ Studio 2010 express' ?
thanks in advance.
The easiest, by far, is to install QtCreator. it includes MinGW and simply opens the same project files as on linux. compile, and go!
A huge advantage of MinGW over VC++ is that it doesn't make you chase circles around getting the right vcredist library for the exact version of the compiler, nor it cares too much about debug/release builds. To deploy, just be sure to copy the same one or two DLLs you have on the development machine. A few more for Qt, but these are well-documented on Qt docs. No hidden surprises.
Related
I'm trying to setup qtcreator using Microsoft Enterprise WDK.
I want to build MSVC and UWP apps, but I do not want to install MS VisualStudio.
Does anyone know howto setup debugger cdb, c and c++ compiler, ... for qtcreator. Since MS EWDK is unzipped in a folder like C:\Dev qtcreator cannot auto-detect it.
I also flipped through the QT documentation, but it is confusing me.
I still have no solution to integrate EWDK into qtcreator.
But there is an alternative to install a "minimum" Microsoft environment for qtcreator:
Install the Visual Studio Build-Tools, which is new as of 2017 and only select the build-tools for C++
Install only the debugger from Windows SDK
So, like many others I've found on the net, I have installed Qt (Qt 5.2.1 for Windows 64-bit (VS 2012, OpenGL, 553 MB)) and realized that I do not have the MSVC2012 compiler that was used to build this version of Qt.
I come here to ask, is it necessary to literally install the entire MSVC2012 IDE in order to get this version of Qt to work, or can I somehow just install the needed compiler? If so, where might that be available for download? I have done searches and cannot find just the compiler. I have found the compiler bundled with various other software that I do not think I need, but I do not want to go through great effort to find out that I made another mistake.
Alternatively, Qt compiled with minGW is also available, but only for 32 bit. I understand that some 32 bit programs will run on 64 bit machines, but how can you know for sure?
You can install Visual Studio 2012 Express which is free and contains the necessary compiler. After that, you have to also install Windows Kits to get the standalone debugger. Alternatively, you can install Windows 7.1 SDK which does not come with IDE but with compilers and debuggers. Windows 7.1 SDK correspond to Visual Studio 2010. But beware, Windows 7.1 SDK has many bugs, and I would not recommend it unless you are targeting Windows XP.
As for MinGW, yes you can also run 32bit programs on 64 bit, but I personally advise you against MinGW. Its integration with Windows is flaky, and its compile speed is far inferior to MSVC's.
Why does the intel compiler on Windows keep nagging about visual studio? I don't have visual studio and I don't want it!!! is that the only option I have??? I'm a Qt programmer who've been using MinGW as a compiler, and never needed Visual Studio. On Linux, the intel compiler is totally independent and doesn't need any other compilers to work. Could anyone please explain what's the deal with this Intel Compiler and why it's not standalone?
Please tell me what I should do to get it to work with Qt without Visual Studio.
Edit: To be clear about the problem, when I try to use icl.exe to compile some file, it gives me this error:
icl: error #10114: Microsoft Visual C++ not found in path
Thanks for any efforts! :-)
On no platform is the Intel C/C++ compiler standalone. It requires tools of various kinds on all platforms.
The official documentation actually does list the entire gcc toolchain as a system requirement on Linux. Additional libraries are required as well.
It just so happens that on Windows, these tools are bundled with Visual Studio. The free version is sufficient.
I'm testing an application using Qt 4.7.3 compiled with MinGW on a clean XP virtual box. The application wasn't working and after much grief, I traced the error to needing to download the Visual C++ 2005 redistributable. I downloaded this and it worked. Something doesn't seem right here, shouldn't I not need any VC++ libraries since I'm using MinGW? Could it be a problem with my compilation? I should mention that I'm not using qmake to build.
The dependency on MSVCRT.DLL is due to MinGW itself. To quote mingw.org..
MinGW provides a complete Open Source programming tool set which is
suitable for the development of native MS-Windows applications, and
which do not depend on any 3rd-party C-Runtime DLLs. (It does depend
on a number of DLLs provided by Microsoft themselves, as components of
the operating system; most notable among these is MSVCRT.DLL, the
Microsoft C runtime library.
Also see: Should I redistribute msvcrt.dll with my application?
As noted in the Qt documentation, yes, that is required:
http://doc.qt.io/qt-5/windows-deployment.html
I am using both Qt Framework and QuickFIX engine to create a financial application with GUI.
My problem is that when I compile a program that implements QickFIX engine and Qt Framework, it gives me a compilation error: it doesn't find some header files in MinGW (socket.h, inet/in.h, etc)
I am on Windows 7 and I know that to use sockets you must use winsock.h and so on, but the problem is I have Visual C++ express edition and it's not supported by Qt, so I used Qt Creator and since I have an open source of Qt, QuickFIX engine uses the header files of Linux (socket.h, etc) rather than windows. So it gave me an error.
Please can you suggest me a solution?
I use Visual Studio Express 2010 with Qt. You will need to build Qt with it. When you configure make sure to specify Visual Studio 2010 as the make spec.Last time I built it got hung up on a couple of projects. To get around this you need to clear out some temporary files that Nokia packaged in the installer for some reason. Just google the error for details.
Once you have Qt built you ought to be able to qmake -tp vc your project and then load up the generated Visual Studio project file.