[Bug]: juce_gui_extra.cpp defaults to including web browser ignoring CMake option
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 静か
- 技術スタック
- cpp
- 領域
- build-system
調査の方向性
まず modules/juce_gui_extra/juce_gui_extra.h の 75-77 行から始める。ここでは CMake の NEEDS_WEB_BROWSER オプションとは無関係に JUCE_WEB_BROWSER が定義されている。次に、cmake/JUCEUtils.cmake における juce_add_gui_app が NEEDS_WEB_BROWSER をどのように伝播するか、そして modules/juce_gui_extra/juce_gui_extra.cpp がその後何を取り込むかを確認する。ヘッダが明示的に有効な場合にのみ JUCE_WEB_BROWSER を定義すべきか、それとも CMake が 0 に強制すべきかを判断する。完了の条件は、NEEDS_WEB_BROWSER がオフの juce_add_gui_app ターゲットが、手動での JUCE_WEB_BROWSER=0 コンパイル定義なしでビルドできること。
索引モデルが issue の本文から書いたものです。
説明
Detailed steps on how to reproduce the bug
When using, for example, juce_add_gui_app() and with the default option of NEEDS_WEB_BROWSER set to false, the following in juce_gui_extra.h causes attempts to import headers in juce_gui_extra.cpp that are then correctly not linked by cmake, causing a build error:
https://github.com/juce-framework/JUCE/blob/3ba67d4585e9d1fbcdb26a877c7978608b1f802e/modules/juce_gui_extra/juce_gui_extra.h#L75-L77
Workaround is to set the compile definition JUCE_WEB_BROWSER=0 but given the default is this already when adding the target, this definition should be set to 0 by default, or the setting of it in that file should be removed so it's only ever explicitly defined when enabled.
What is the expected behaviour?
Builds successfully.
Operating systems
Linux
What versions of the operating systems?
Fedora 44.
Architectures
x86_64
Stacktrace
Plug-in formats (if applicable)
No response
Plug-in host applications (DAWs) (if applicable)
No response
Testing on the develop branch
I have not tested against the develop branch
Code of Conduct
- I agree to follow the Code of Conduct
- 主要言語
- C++
- スター
- 8.9k
- フォーク
- 2.2k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
juce-framework/JUCE のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
juce-framework/JUCE#1765 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
juce-framework/JUCE#1764 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
juce-framework/JUCE#1762 ·
メンテナーはふだん 2 日以内に返信
-
Linux: WebBrowserComponent shows nothing unless the GTK and WebKit development packages are installed対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
juce-framework/JUCE#1730 ·
メンテナーはふだん 2 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
juce-framework/JUCE#1687 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
juce-framework/JUCE の issue をすべて見る
似ている issue
-
Status: Awaiting triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
espressif/arduino-esp32#12984 ·
メンテナーはふだん 1 日以内に返信
-
torch_ops/logprob.cu does not compile with the serving container's nvcc (13.3.73); check_torch_ops.py cannot run as shipped対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1時間未満 初心者へのやさしさ 72/100
ashhart/TensorFold#535 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信