PDA

View Full Version : how to add the toolchain mingw to qt



sliverTwist
17th April 2013, 14:57
Hello
My OS is openSUSE 12.2
and I've installed mingw by typing this: zypper install mingw32-cross-gcc mingw32-cross-gcc-c++ mingw32-libjpeg-devel mingw32-libpng-devel mingw32-libqt4 mingw32-libqt4-devel mingw32-libtiff-devel mingw32-zlib-devel

Now i need to add it to qt so i must do ?? What i know is that in Qt 4.8 wich is my current version i should go to projects ->Tool chain manage->manual->add mingw but i can't figure out what i must add in it ??

Santosh Reddy
20th April 2013, 17:42
What is you IDE?

You must add the compiler (generally will start with g++)

sliverTwist
20th April 2013, 21:15
it's qt 4.8

Santosh Reddy
20th April 2013, 23:15
Qt 4.8 is library version, what is you IDE? Is it Eclipse or Qt Creator or something else?

sliverTwist
22nd April 2013, 09:37
it's Qt creator 2.5.0

Santosh Reddy
22nd April 2013, 11:17
Tools --> Options... --> Build & Run --> Add --> MinGw --> Select Compiler Path, ABI, Debugger
Tools --> Options... --> Build & Run --> Qt Versions --> Add --> Select qmake path

sliverTwist
22nd April 2013, 11:19
i know that but what are the files that i should put in there ??

Santosh Reddy
22nd April 2013, 11:34
Compiler Path: g++ (or what ever the crosscomplier is)
ABI: 32bit/64bit
Debugger: (I don't think debugger is required)
qmake: select the qmake from 4.8 path

sliverTwist
22nd April 2013, 11:55
doing that didn't allow me the compiler it still compile with the tool chain GCC i need to enable the field of the tool chain and select mingw

Santosh Reddy
22nd April 2013, 12:02
You cannot edit Auto-Detect settings, you need to use Manual settings

sliverTwist
22nd April 2013, 12:05
i add the mingw but i cannot select it from the menu

Santosh Reddy
22nd April 2013, 12:55
Select the correct ABI