Skip to content

raea song on Windows: raea-sys-vision doesn't compile there, though the beat map looks portable #43

Closed

Description

@studiodreamsummon

Written with Claude (Opus 5.5) on behalf of the reporter, from a Windows evaluation of raea.

raea main at a5663cb, Windows 11 Pro, Rust 1.99.1 (from rust-toolchain.toml).

cargo build --release -p raea-cli -p raea-perceive --no-default-features

raea-cli builds; raea-sys-vision fails with 22 errors:

error[E0432]: unresolved import `crate::coreml`      --> systems\vision\src\depth.rs:5:12
error[E0432]: unresolved import `crate::coreml`      --> systems\vision\src\object.rs:6:12
error[E0432]: unresolved import `crate::hair`        --> systems\vision\src\object.rs:7:5
error[E0432]: unresolved import `objc2`              --> systems\vision\src\vision.rs:6:5
error[E0433]: cannot find `motion` in `raea_sys_layout` --> systems\vision\src\textread.rs:27:38
error[E0433]: cannot find module or crate `image` in this scope --> systems\vision\src\vision.rs:362:15
…

Why

systems/vision/src/lib.rs gates coreml, picture, face, hands, hair, flow and sound on target_vendor = "apple", and Cargo.toml puts objc2* and image under [target.'cfg(target_vendor = "apple")'.dependencies], but depth, object, vision, textread and camera are compiled everywhere and use them.

Effect

The canary.3 notes list raea song as macOS only; this is why, as far as I can tell. Windows has no raea-perceive, so raea song FILE refuses ("the map is made by raea-perceive, which isn't installed beside raea"), and the canary.2 Windows zip doesn't ship it either. The beat map itself (Beat This! on ONNX) looks portable, so gating the Apple-only modules (or splitting the song map off raea-sys-vision) would make raea song available on Windows.

Activity

  1. shinyobjectz commented on Nov 8, 2026

    @shinyobjectz
    Owner

    Thank you, @studiodreamsummon. As you said, the beat map was portable all along. Fixed in 3fcd4e5.

    • raea-sys-vision now compiles off Apple. depth and object (Core ML) are Apple-only, and AppleVision and text_lines moved into apple_vision.rs. The Vision trait and the portable helpers stay in vision.rs, image is a dependency on every platform, and raea_sys_layout::motion (pure Rust) is no longer gated.
    • raea-perceive gates its Apple-only commands (eyes, vad, track, hands). read-lines and faces are built only where they have a backend. song, beats, stems, transnet and flow --backend lk build everywhere.
    • No ffmpeg needed: off Apple, song and beats now decode the file in process with the soft backend (Symphonia) by default. On a 163 s mp3 the map matches the ffmpeg backend's: the same 264 beats and sections, with strengths within 0.003. --backend ffmpeg still works.
    • Windows paths: models are kept in %LOCALAPPDATA%\raea\models on Windows, which has no HOME (raea_io_home::models()), and raea song looks for raea-perceive.exe beside raea.

    raea-perceive checks for Windows and Linux targets here, apart from opus's C build, which needs a native toolchain. I haven't run it on Windows. The canary.2 zip doesn't include it either: shipping raea-perceive and the Beat This! model in the Windows and Linux releases is a separate release change. Until then, a checkout can cargo build --release -p raea-perceive and point RAEA_PERCEIVE at it. It reads the model from %LOCALAPPDATA%\raea\models\beat-this\beat_this_small0.onnx.

  2. added a commit that references this issue on Nov 8, 2026
    3fcd4e5
  3. added a commit that references this issue on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions