Im trying to build simple Qt Quick project and want to work with it outside Qt Creator
. It means coding, building and running program only with tools like
The main problem, why "First attempt" failed is because Qt5 installed itself in
~/Qt
and CMake searched for *.cmake
configuration files in /usr/lib/x86_64-linux-gnu/cmake/
(I didn't metion that i use Ubuntu 16 LTS
, which have cmake 3.5.1 preinstalled).
So the way to solve this problem was to copy everything that was in
~/Qt/*last cmake version*/gcc_64
(in my case ~/Qt/5.13.0/gcc_64
)
into /usr/lib/
via sudo cp -a ~/Qt/5.13.0/gcc_64/* /usr/lib/
The answer to second is short:
This happend because by default Qt Creator sets CMake output into Ninja makefiles.
Go to Tools > Options > Kits
and add desired configuration or edit existing.