← All tasks
cppFincept-Corporation/FinceptTerminal #167Not a task: not reproduced

Fix macOS build failures and missing dependencies in setup.sh

envgap__Fincept-Corporation__FinceptTerminal-167

01 / FAILURE SIGNATURE

As reported upstream

No identifying execution failure has been captured.
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
72806d533373002d97f94e24fc802d3a1020d8a5
Manifest
fincept-qt/CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

Fincept-Corporation/FinceptTerminal #167 · read the original issue
### Description

The current `setup.sh` script fails or produces incorrect builds on modern macOS (Apple Silicon arm64) for a few reasons:

1. **Incorrect Qt Path:** `aqtinstall` for Qt 6.8.3 on macOS installs the kit into the `macos` directory, but the setup script expects it in `clang_64`. This causes `Qt6Config.cmake` to not be found.
2. **Missing Dependencies:** `yt-dlp` is missing but is required by the project. Additionally, the system might link against x86_64 OpenSSL libraries because `openssl@3` is not explicitly installed and passed to CMake.
3. **OpenSSL Architecture Mismatch:** On Apple Silicon, we must explicitly pass `OPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3` to CMake so it finds the correct arm64 libraries instead of mistakenly picking up incompatible ones.

### Proposed Fixes

- Update `QT_KIT` to `"macos"` for Darwin in `setup.sh`.
- Add `openssl@3` and `yt-dlp` to the Homebrew `brew install` list.
- Pass `-DOPENSSL_ROOT_DIR=/opt/homebrew/opt/openssl@3` to CMake if the directory exists.
Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]