Build it with CMake. change set(CMAKE_PREFIX_PATH "D:/Qt/Qt5.12.0/5.12.0/mingw73_64") to set(CMAKE_PREFIX_PATH "Your Qt Path")