ぜんぜん環境構築できてないじゃん……。(4回目)
対象環境
- Raspbierry pi 3 Model B+
- Raspbian stretch 2018-06-27
- Qt 5.7.1
問題
Qt Creator でQt Canvas3Dアプリのプロジェクトを作成する。
実行すると以下のエラー。
/tmp/work/build-Hello_Pj_App_Canvas3D-unknown-Debug/Hello_Pj_App_Canvas3D を起動中... QML debugging is enabled. Only use this in a safe environment. libEGL warning: DRI2: failed to authenticate qt5ct: using qt5ct plugin JIT is disabled for QML. Property bindings and animations will be very slow. Visit https://wiki.qt.io/V4 to learn about possible solutions for your platform. QQmlApplicationEngine failed to load component qrc:/main.qml:2 module "QtCanvas3D" is not installed
module "QtCanvas3D" is not installed
という文言は例によってインストール不足と思われる。
解決を試みる
パッケージを探す
以下では見つけられなかった。
$ apt list | grep qt | grep canvas WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
おそらく、以下で見つかった一式が必要と思われる。
$ apt list | grep qt | grep 3d WARNING: apt does not have a stable CLI interface. Use with caution in scripts. gtk2-engines-qtcurve/stable,stable,stable,stable 1.8.18+git20160320-3d8622c-3+deb9u1 armhf kde-style-qtcurve-qt4/stable,stable,stable,stable 1.8.18+git20160320-3d8622c-3+deb9u1 armhf kde-style-qtcurve-qt5/stable,stable,stable,stable 1.8.18+git20160320-3d8622c-3+deb9u1 armhf libqt53dcore5/stable,stable,stable,stable 5.7.1+dfsg-2 armhf libqt53dextras5/stable,stable,stable,stable 5.7.1+dfsg-2 armhf libqt53dinput5/stable,stable,stable,stable 5.7.1+dfsg-2 armhf libqt53dlogic5/stable,stable,stable,stable 5.7.1+dfsg-2 armhf libqt53dquick5/stable,stable,stable,stable 5.7.1+dfsg-2 armhf libqt53dquickextras5/stable,stable,stable,stable 5.7.1+dfsg-2 armhf libqt53dquickinput5/stable,stable,stable,stable 5.7.1+dfsg-2 armhf libqt53dquickrender5/stable,stable,stable,stable 5.7.1+dfsg-2 armhf libqt53drender5/stable,stable,stable,stable 5.7.1+dfsg-2 armhf libqtcurve-utils2/stable,stable,stable,stable 1.8.18+git20160320-3d8622c-3+deb9u1 armhf libqwtplot3d-qt4-0v5/stable,stable,stable,stable 0.2.7+svn191-10.1 armhf libqwtplot3d-qt4-dev/stable,stable,stable,stable 0.2.7+svn191-10.1 armhf python-qwt3d-qt4/stable,stable,stable,stable 0.1.7~cvs20090625-13+b1 armhf qml-module-qt3d/stable,stable,stable,stable 5.7.1+dfsg-2 armhf qml-module-qtquick-scene3d/stable,stable,stable,stable 5.7.1+dfsg-2 armhf qt3d-assimpsceneio-plugin/stable,stable,stable,stable 5.7.1+dfsg-2 armhf qt3d-gltfsceneio-plugin/stable,stable,stable,stable 5.7.1+dfsg-2 armhf qt3d5-dbg/stable,stable,stable,stable 5.7.1+dfsg-2 armhf qt3d5-dev/stable,stable,stable,stable 5.7.1+dfsg-2 armhf qt3d5-doc/stable,stable,stable,stable,now 5.7.1+dfsg-2 all [インストール済み、自動] qt3d5-doc-html/stable,stable,stable,stable 5.7.1+dfsg-2 all qt3d5-examples/stable,stable,stable,stable 5.7.1+dfsg-2 armhf qtchooser/stable,stable,stable,stable,now 63-g13a3d08-1 armhf [インストール済み、自動] qtcurve/stable,stable,stable,stable 1.8.18+git20160320-3d8622c-3+deb9u1 armhf qtcurve-l10n/stable,stable,stable,stable 1.8.18+git20160320-3d8622c-3+deb9u1 all uim-qt/stable,stable,stable,stable 1:1.8.6+gh20161003.0.d63dadd-2 armhf uim-qt5/stable,stable,stable,stable 1:1.8.6+gh20161003.0.d63dadd-2 armhf
以下があれば大丈夫かな? curve
, qwtplot
などは謎なので省いた。uim
はIMEのはずなので省く。
$ sudo apt install -y libqt53dcore5 libqt53dextras5 libqt53dinput5 libqt53dlogic5 libqt53dquick5 libqt53dquickextras5 libqt53dquickinput5 libqt53dquickrender5 libqt53drender5 qml-module-qt3d qml-module-qtquick-scene3d qt3d-assimpsceneio-plugin qt3d-gltfsceneio-plugin qt3d5-dbg qt3d5-examples ... この操作後に追加で 143 MB のディスク容量が消費されます。 ... 104 MB を 4分 22秒 で取得しました (396 kB/s) ...
再度Qt Creatorで実行するも同様のエラー。
調べる
めぼしい情報なし。
- http://doc.qt.io/qt-5/qtcanvas3d-getting-started.html
- https://stackoverflow.com/questions/31705838/module-qtcanvas3d-is-not-installed-error-on-android-device
- https://v-play.net/developers/forums/t/qtcanvas3d-is-not-install
- https://forum.qt.io/topic/90358/problem-with-deployement-of-qtcanvas3d
追加インストール
入れなかったものを入れてみる。
$ sudo apt install -y libqtcurve-utils2 gtk2-engines-qtcurve kde-style-qtcurve-qt4 kde-style-qtcurve-qt5 libqwtplot3d-qt4-0v5 libqwtplot3d-qt4-dev qtcurve qtcurve-l10n uim-qt uim-qt5 ... この操作後に追加で 97.9 MB のディスク容量が消費されます。 ... 16.2 MB を 25秒 で取得しました (630 kB/s) ...
約2分で完了した。reboot
して再起動後、プロジェクトを実行するも同様のエラー……。
パッケージを探す2
おそらくOpenGLをインストールする必要があるのだろう。と思って検索してみたら、すでにインストール済みだった。libqt5opengl5
等が関係するライブラリと思われる。ぐぬぬ。
$ apt list | grep opengl WARNING: apt does not have a stable CLI interface. Use with caution in scripts. gambas3-gb-gtk-opengl/stable,stable,stable,stable 3.9.1-3 armhf gambas3-gb-gui-opengl/stable,stable,stable,stable 3.9.1-3 armhf gambas3-gb-opengl/stable,stable,stable,stable 3.9.1-3 armhf gambas3-gb-opengl-glsl/stable,stable,stable,stable 3.9.1-3 armhf gambas3-gb-opengl-glu/stable,stable,stable,stable 3.9.1-3 armhf gambas3-gb-opengl-sge/stable,stable,stable,stable 3.9.1-3 armhf gambas3-gb-qt4-opengl/stable,stable,stable,stable 3.9.1-3 armhf gambas3-gb-qt5-opengl/stable,stable,stable,stable 3.9.1-3 armhf gnash-common-opengl/stable,stable,stable,stable 0.8.11~git20160608-1.3 all gnash-opengl/stable,stable,stable,stable 0.8.11~git20160608-1.3 all gnome-twitch-player-backend-gstreamer-opengl/stable,stable,stable,stable 0.3.1-1 armhf gnome-twitch-player-backend-mpv-opengl/stable,stable,stable,stable 0.3.1-1 armhf klash-opengl/stable,stable,stable,stable 0.8.11~git20160608-1.3 all libghc-opengl-dev/stable,stable,stable,stable 3.0.1.0-3 armhf libghc-opengl-doc/stable,stable,stable,stable 3.0.1.0-3 all libghc-opengl-prof/stable,stable,stable,stable 3.0.1.0-3 armhf libghc-openglraw-dev/stable,stable,stable,stable 3.2.3.0-2 armhf libghc-openglraw-doc/stable,stable,stable,stable 3.2.3.0-2 all libghc-openglraw-prof/stable,stable,stable,stable 3.2.3.0-2 armhf libguichan-opengl-0.8.1-1v5/stable,stable,stable,stable 0.8.2-16 armhf libhugs-opengl-bundled/stable,stable,stable,stable 98.200609.21-5.4 armhf libmrpt-opengl1.4/stable,stable,stable,stable 1:1.4.0-7 armhf libmygui.openglplatform0debian1v5/stable,stable,stable,stable 3.2.2-4+b2 armhf libmygui.openglplatform0debian1v5-dbg/stable,stable,stable,stable 3.2.2-4+b2 armhf libopengl-image-perl/stable,stable,stable,stable 1.03-1 all libopengl-perl/stable,stable,stable,stable 0.6704+dfsg-2+b2 armhf libopengl-xscreensaver-perl/stable,stable,stable,stable 0.05-1+b3 armhf libqt4-opengl/stable,stable,stable,stable,now 4:4.8.7+dfsg-11+rpi1 armhf [インストール済み、自動] libqt4-opengl-dev/stable,stable,stable,stable,now 4:4.8.7+dfsg-11+rpi1 armhf [インストール済み、自動] libqt5opengl5/stable,stable,stable,stable,now 5.7.1+dfsg-3+rpi1 armhf [インストール済み、自動] libqt5opengl5-dev/stable,stable,stable,stable,now 5.7.1+dfsg-3+rpi1 armhf [インストール済み、自動] libqtscript4-opengl/stable,stable,stable,stable 0.2.0-1 armhf libsmokeqtopengl4-3/stable,stable,stable,stable 4:4.14.3-1.1 armhf libtaoframework-opengl-cil-dev/stable,stable,stable,stable 2.1.svn20090801-14 all libtaoframework-opengl3.0-cil/stable,stable,stable,stable 2.1.svn20090801-14 all libtiff-opengl/stable,stable,stable,stable 4.0.8-2+deb9u2 armhf opengl-4-html-doc/stable,stable,stable,stable 1.0~svn31251-1 all opengl-4-man-doc/stable,stable,stable,stable 1.0~svn31251-1 all python-opengl/stable,stable,stable,stable 3.1.0+dfsg-1 all python-pyqt5.qtopengl/stable,stable,stable,stable 5.7+dfsg-5 armhf python-pyqt5.qtopengl-dbg/stable,stable,stable,stable 5.7+dfsg-5 armhf python-pyside.qtopengl/stable,stable,stable,stable 1.2.2-2 armhf python3-opengl/stable,stable,stable,stable 3.1.0+dfsg-1 all python3-pyqt4.qtopengl/stable,stable,stable,stable 4.11.4+dfsg-2 armhf python3-pyqt4.qtopengl-dbg/stable,stable,stable,stable 4.11.4+dfsg-2 armhf python3-pyqt5.qtopengl/stable,stable,stable,stable 5.7+dfsg-5 armhf python3-pyqt5.qtopengl-dbg/stable,stable,stable,stable 5.7+dfsg-5 armhf python3-pyside.qtopengl/stable,stable,stable,stable 1.2.2-2 armhf
もうわからない。
所感
3Dは使えませんでしたとさ……Qt穴だらけじゃん……。