Vcpkgを使用してQtをインストールする。(e.g. C:\vcpkg
)
cd C:\vcpkg
.\vcpkg install qt5:x64-windows
(.\pkg install qt5:x86-windows)
CMakeを利用している場合、CMakeListsに以下の行を加えます。
set( CMAKE_TOOLCHAIN_FILE "C:/vcpkg/scripts/buildsystems/vcpkg.cmake" )
以下のページからQt Creator(qt-creator-opensource-windows-x86_64-4.4.1.exe)をダウンロード、インストールする。
-
Qt Creatorのメニューから[Tools]>[Options...]を選択してオプションの設定画面を開く。
-
オプションの設定画面から[Build & Run]を選択してビルド&実行の設定画面を開く。
-
ビルド&実行の設定画面から[Qt Versions]タブを開き、[Add]ボタンを押す。
VcpkgでインストールされたQMmake(vcpkg\installed\<triplet>\tools\qt5\qmake.exe
)を選択して開く。 -
ビルド&実行の設定画面から[Kits]タブを開き、[Add]ボタンを押す。
以下の欄(Name、Compiler、Qt version)を設定する。- Name: Desktop (any name)
- Compiler:
- C: "Microsoft Visual C++ Compiler 15.0 (amd64)" (or "Microsoft Visual C++ Compiler 15.0 (amd64_x86)")
- C++: "Microsoft Visual C++ Compiler 15.0 (amd64)" (or "Microsoft Visual C++ Compiler 15.0 (amd64_x86)")
- Qt version: Qt 5.8.0 (qt5)
-
[Apply]ボタンを押して設定を適用する。
I believe the problem is raised due to qt creator could not find qmlscene('No qmlscene installed') in vcpkg, any idea how to solve this?