Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

QtCreator for windows: is it possible to build 64 bit .exe?

Tags:

qt-creator

Is it any way in QtCreator for windows to build a 64-bit executable? (I need to use a COM object as INPROC and this object is only available for 64 bit architecture)

like image 207
grigoryvp Avatar asked Oct 20 '09 14:10

grigoryvp


People also ask

What compiler does Qt Creator use?

Qt Creator uses the C++ compiler from the GNU Compiler Collection on Linux. On Windows it can use MinGW or MSVC with the default install and can also use Microsoft Console Debugger when compiled from source code. Clang is also supported.

Is Qt Creator better than Visual Studio?

In the end it comes down to preferences if you want to use Qt Creator or Visual Studio for development. It is easy to create a VS project file from Qt project files using qmake. I prefer using Qt Creator because I can navigate a lot faster. My colleague, however, uses Visual Studio.

How to run C++ program in Qt Creator?

To add a C or C++ compiler, select Edit > Preferences > Kits > Compilers > Add. Select a compiler in the list, and then select C or C++.


2 Answers

I do not see any reason why not. You would need:

  1. To be working on a 64-bit processor,
  2. Ensure you have the Visual Studio 64 bit edition
  3. Compile Qt on that 64 Bit setup
  4. Compile QtCreator on that setup

The email says that debugging tools would also need to be compiled. I am not sure which debugger QtCreator uses but I would image it would be open source and you could compile it on that setup anyway.

Qt probably do not do it by default because they already produce loads of different builds for all the platforms they support and there has not yet been a large demand for 64bit windows desktop applications.

like image 74
Phil Hannent Avatar answered Oct 15 '22 21:10

Phil Hannent


Pekka Gaiser correctly pointed to an email from Trolltech. Basically, that's it :)

Specifically: Seemingly there is no 64 bit cross-compiler for Windows (due to that, there is no 64bit VLC for Windows). Therefore, the Microsoft compiler must be used. Unfortunately, Creator's support for Microsoft's toolchain is limited (although they make big steps towards supporting it fully).

Again: The email pointed to by Pekka Gaiser contains the information and links for using Qt Creator with Microsoft's 64bit toolchain.

like image 1
Michael Avatar answered Oct 15 '22 20:10

Michael