How can I add another compiler and use it with QT?
I’m asking because I couldn’t find it anywhere on the web how to do it.
Thanks.
How can I add another compiler and use it with QT? I’m asking because
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you are using qmake, you can override the compiler used by the current mkspec with QMAKE_CXX, e.g.
qmake QMAKE_CXX=g++-4.6.To permanently override it, you’ll need a new or edit the mkspec files. You can browse where they are with
qmake -queryand look at the QMAKE_MKSPECS variable. From there, the directory “default” is used if you do not use the -spec parameter in qmake. In that directory, the file qmake.conf will contain the mentioned QMAKE_CXX paramater that determines the compiler.