The C Compiler is not able to compile a simple test program!
-
Hello guys!
I came across with a problem!
I created a simple C++ project in Qt and I wanted to use CMake as its build tool and MSVC 2017 64bit kit.
But as I show in image below, CMake says The C Compiler is not able to compile a simple test program!
I tried many ways and searched a lot with no luck!
This is the error:
Can anyone point me to right direction?
Really thanks! -
Hello guys!
I came across with a problem!
I created a simple C++ project in Qt and I wanted to use CMake as its build tool and MSVC 2017 64bit kit.
But as I show in image below, CMake says The C Compiler is not able to compile a simple test program!
I tried many ways and searched a lot with no luck!
This is the error:
Can anyone point me to right direction?
Really thanks!Hi @Nima-Ghorab,
from the output it is visible that
jom
cannot be called. Can you check that you actually have this program on your harddisk, and where? -
Hi @Nima-Ghorab,
from the output it is visible that
jom
cannot be called. Can you check that you actually have this program on your harddisk, and where?Dear @aha_1980 thank you so much for your answer.
Where this jom should be located? in MSVC installation path? -
Hi @Nima-Ghorab,
from the output it is visible that
jom
cannot be called. Can you check that you actually have this program on your harddisk, and where?Dear @aha_1980 I find jom in my Qt installation directory: E:\Softwares\Qt\Tools\QtCreator\bin.
Dear @VRonin thank you so much for your answer.
I check that and this is mine: CMAKE_PREFIX_PATH:STRING=%{Qt:QT_INSTALL_PREFIX}
Should I change this to something like : CMAKE_PREFIX_PATH:STRING=E:\Softwares\Qt\Tools\QtCreator\bin ? -
@VRonin Thanks but it doesn't fix the problem.
Still get the same error!Edit: adding E:\Softwares\Qt\Tools\QtCreator\bin to path and then restart Qt Creator solve the problem!
Thank you so much guys for your helps.