Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do you change kits in Qt to target an x86 machine?

Tags:

c++

windows

qt

I'm currently working on a project in QtCreator. I'm using a library that is x86 based but my current project is targeting an x64 architecture. The obvious solution is to change my project to target an x86 architecture. However, I have no idea how to do this.

I've gone into the appropriate window to configure a new Qt kit. This kit uses the MVCC x86 compiler. I then select this as my default project. After running the new qmake, I attempt to build the project yet get the same error regarding using a 32 bit library in a 64 bit project.

So my question: how do I apply a new kit in Qt? I assume I should be able to click the 'Open Build and Run Kit Selector'and select the kit, however, this just gives me the options of select the x64 kits.

Any idea?

like image 597
Izzo Avatar asked Aug 23 '16 03:08

Izzo


1 Answers

First make sure the kit is added in the Build & Run menu of the Options panel. I think you have performed this step already:

Add kit to Build & Run menu

Then go to the Projects tab after you have loaded your project and click on "Add Kit". There you should be able to select your newly added kit:

Add kit to project

Finally, you should then be able to select it from the kit selector:

enter image description here

like image 190
Peter K Avatar answered Oct 03 '22 12:10

Peter K