How may I supply the qt5 configure script with the path to the C++ compiler I wish to use?
Unsolved
Installation and Deployment
-
Hi and welcome to devnet,
Which OS are you on ?
Which compiler is that ?
How are you calling configure ? -
@SGaist Thanks! I'm on Linux, the compiler is a freshly compiled GCC.
This is how I call configure:
CC='/path/to/gcc' CXX='/path/to/g++' /path/to/configure args
. Themake
output still shows it using the regular g++.Edit: I've checked out 5.15.2. I cant post it properly because of the reputation block.
-
Which version of Qt are you trying to build ?
-
One possible way is to create a custom makspec that makes use of your particular GCC build.
-
Just to build on @SGaist 's remarks, some info regarding what Qt has named
mkspecs
:https://doc.qt.io/qt-5/configure-options.html#compiler-options