📢 Webサイト閉鎖と移転のお知らせ
このWebサイトは2026年9月に閉鎖いたします。
新しい記事は移転先で追加しております。(旧サイトでは記事を追加しておりません)

1,842行目: 1,842行目:
  cmake --install .
  cmake --install .
<br>
<br>
===== ビルドエラー関連 : GCC 13を使用する場合 =====
GCC 13を使用してQt 6をビルドする場合、以下に示すようなエラーが出力される場合がある。<br>
GCC 13を使用してQt 6をビルドする場合、以下に示すようなエラーが出力される場合がある。<br>
バグレポートURL : https://bugreports.qt.io/browse/QTBUG-111604?focusedCommentId=718489<br>
バグレポートURL : https://bugreports.qt.io/browse/QTBUG-111604?focusedCommentId=718489<br>
1,876行目: 1,877行目:
  </syntaxhighlight>
  </syntaxhighlight>
<br>
<br>
===== ビルドエラー関連 : X Keyboardに関するエラー =====
コンパイル時において、以下に示すようなエラーが出力される場合がある。<br>
コンパイル時において、以下に示すようなエラーが出力される場合がある。<br>
  error: XKB_KEY_dead_lowline was not declared in this scope; did you mean XKB_KEY_dead_belowring?
  error: XKB_KEY_dead_lowline was not declared in this scope; did you mean XKB_KEY_dead_belowring?
1,881行目: 1,883行目:
この時、<code>cmake</code>コマンドの実行時において、<code>-DFEATURE_xkbcommon=OFF</code>オプションを付加する。<br>
この時、<code>cmake</code>コマンドの実行時において、<code>-DFEATURE_xkbcommon=OFF</code>オプションを付加する。<br>
<br>
<br>
 
===== ビルドエラー関連 : Qt Toolのqhelpgeneratorに関するエラー =====
コンパイル時において、以下に示すようなエラーが出力される場合がある。<br>
-- Configuring submodule 'qttools'
CMake Error at qttools/src/assistant/qhelpgenerator/CMakeLists.txt:66 (add_dependencies):
  Cannot add target-level dependencies to non-existent target
  "qhelpgenerator".
The add_dependencies works for top-level logical targets created by the
add_executable, add_library, or add_custom_target commands.  If you want to
add file-level dependencies see the DEPENDS option of the add_custom_target
and add_custom_command commands.
<br>
この時、以下に示すファイルを編集する。<br>
# /<Qt 6のソースコードがあるディレクトリ>/qttools/src/assistant/qhelpgenerator/CMakeLists.txtファイル 66行目
# 編集前
add_dependencies(qhelpgenerator ${needed_plugins})
# 編集後
#add_dependencies(qhelpgenerator ${needed_plugins})
<br>
===== Qt 6ライブラリのアップロード =====
===== Qt 6ライブラリのアップロード =====
クロスビルドしたQtライブラリを、PinePhoneにデプロイする。<br>
クロスビルドしたQtライブラリを、PinePhoneにデプロイする。<br>
1,894行目: 1,916行目:
  sudo chown -R <ユーザ名>:<グループ名> ~/InstallSoftware/Qt_6_x_x
  sudo chown -R <ユーザ名>:<グループ名> ~/InstallSoftware/Qt_6_x_x
<br>
<br>
==== Qt Creatorの設定 ====
==== Qt Creatorの設定 ====
Qt Creatorを起動して、キットの設定を行う。<br>
Qt Creatorを起動して、キットの設定を行う。<br>