How to build project with QT
-
Hi and welcome to devnet,
When installing Visual Studio, did you select the C++ components ?
-
Which version of Qt did you install ?
Did you check the Kit in the settings ?
Did you do a full rebuild of your project ? -
No, I did mean Qt. Qt Creator is the IDE, and the current version is 4.5.
Yes it does, Qt and Qt Creator are independent projects.
When using Qt's online/offline installers, both are proposed together.
-
@pistoletov In your Kit Qt version is not set. Did you install the correct Qt version (for VS2015).
-
When you select the Qt version you want to install, the name of the compiler it supports is indicated.
-
Yes, if you want to build for 64bit, otherwise you will need then one just above.
-
@SGaist Hmm... the same errors with installed qt...The CXX compiler identification is unknown
CMake Error at CMakeLists.txt:2 (project):
The CMAKE_C_COMPILER:cl
is not a full path and was not found in the PATH.
what i need to do next? May be you advice to install another lightweight bundle ( Mingw?) for build simple project. It s really hard to build first project with QT-)) -
What warning do you get if you hover the yellow triangle ?
-
@SGaist No debugger set up.
In this parameters i have some new error messages
My Cmake version is 3.10.2:unning "C:\Program Files\CMake\bin\cmake.exe -E server "--pipe=\.\pipe{55343635-7432-42da-ba41-08af36f204b2}" --experimental" in D:!!!!DIY_PROJECTS!!!!!\QT\build-UDP-Logger-Unnamed-Debug.
Starting to parse CMake project.
The C compiler identification is MSVC 19.0.24215.1
The CXX compiler identification is MSVC 19.0.24215.1
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64/cl.exe
CMake Error: Generator: execution of make failed. Make command was: "jom" "/NOLOGO" "cmTC_bcb9f\fast"
Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64/cl.exe -- broken
CMake Error at C:/Program Files/CMake/share/cmake-3.10/Modules/CMakeTestCCompiler.cmake:52 (message):
The C compiler"C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/BIN/amd64/cl.exe"
is not able to compile a simple test program.
-
Can you build a default qmake application ?