gcc - Changing compiler in Qt -
gcc - Changing compiler in Qt -
how alter compiler (gcc) in qt? i've installed gcc 4.4 , 4.6. @ momment qt uses 4.4 i'd utilize 4.6. how it?
in build sequence may have qmake
command qmake yourproject.pro -r -spec linux-g++-64
selection of tool chain done in spec
file here linux-g++-64
. find file in path-to-the-sdk/qt/mkspecs/linux-g++-64
(you concept right?)... if open spec file see includes linux
spec , g++
spec.
one solution re-create g++
spec file , rename g++-4.6
illustration edit , alter :
qmake_cc = gcc qmake_cxx = g++
to :
qmake_cc = gcc-4.6 qmake_cxx = g++-4.6
idem linux-g++-64
can copied linux-g++-4.6-64
, modify include(...)
command include new g++-4.6
file.
finally build project qmake yourproject.pro -r -spec linux-g++-4.6-64
.
i hope it's clear :) ...
qt gcc
Comments
Post a Comment