Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

[Bug]: juce_gui_extra.cpp defaults to including web browser ignoring CMake option

オープン
#1,663 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

juce-framework/JUCE のほかの issue

juce-framework/JUCE の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。