Commit Graph

19 Commits

Author SHA1 Message Date
Alex Vanderveen 0bb45442f8 fix: SteamOS self-build — wire pack sysroot into CMake, surface CLI failure lines
Stock SteamOS (Steam Deck) has no /usr/include and no GL dev symlinks, so
the wizard rebuild died at recomp-ui's find_package(OpenGL REQUIRED) with
"Could NOT find OpenGL (missing: OPENGL_INCLUDE_DIR)" — reported to the
user only as "psxrecomp rebuild failed (exit 1)" (recomp-ui issue #34).
The cmake-clang-v1 >=1.0.14 pack already bundles a jammy sysroot with GL
headers and a legacy libGL.so stub, but only clang.cfg used it; CMake's
find_* still searched the host.

- psxrecomp_cli: when the active pack carries sysroot/usr/include (Linux),
  pass -DCMAKE_SYSROOT=<pack>/sysroot -DOpenGL_GL_PREFERENCE=LEGACY to both
  the game and the emitters configure. LEGACY is required: the sysroot has
  legacy libGL.so + GL/gl.h but no GLVND dev files (glx.h/libOpenGL.so/
  libGLX.so), so the GLVND path cannot complete and OpenGL::GL would never
  be created. Skipped when the caller already sets CMAKE_SYSROOT.
- codegen host: run_cli_posix/run_cli_win now route the child's stderr
  into the progress pipe and keep a last-lines capture (CliTail); on
  failure err_msg carries the most recent error-looking line — JSON
  progress rows contribute their message, raw rows (compiler output,
  Python tracebacks) contribute as-is. Exit-3 disc-verify text unchanged.

Verified against a stock-SteamOS simulation (bwrap: tmpfs over
/usr/include, GL dev symlinks removed) using the shipped v1.0.14 pack:
configure previously failed exactly as on the Deck; with the sysroot args
FindOpenGL resolves from the pack, the build links, and the binary runs.
CliTail paths exercised with real compact-JSON rows and raw stderr.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Vc7zPEnfUFMhMtJzUEruyb
2026-08-23 20:28:20 -04:00
Alex Vanderveen 774865aad9 wipeout mod support 2026-08-18 12:07:30 -04:00
Alex Vanderveen ea1b157da6 bump 2026-08-17 22:25:26 -04:00
Alex Vanderveen 0785473f57 function discovery tools 2026-08-17 20:49:07 -04:00
Alex Vanderveen 01d7ad8400 Quiet reserved-opcode WARNING spam during product Generate.
Dedupe emitter diagnostics to once-per-PC (PSXRECOMP_VERBOSE_RI_WARNINGS=1
for full), and collapse those lines in the CLI wizard log to a single summary
so setup Generate is not stalled by hundreds of data-as-code warnings.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-09 23:31:15 -04:00
Alex Vanderveen 408a45bc6e build emitters support for devs 2026-08-09 14:44:24 -04:00
Alex Vanderveen 5916177b45 bump 2026-08-09 13:55:06 -04:00
Alex Vanderveen 2917936f6d Heal broken toolchain caches during ensure / rebuild.
Probe cmake --version; if the cache or latest pointer is unusable, clear
the bad pointer and stamp, then re-download (or install from zip) so
Generate & rebuild can recover without manual cleanup.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-07 12:27:50 -04:00
Alex Vanderveen 384e9bdf68 fix: pass staged disc/BIOS to generate; skip redundant SCPH1001 regen.
Codegen host hands g_wizard_bios (or OpenBIOS clear) to the CLI with
--disc/--bios. CLI skips SCPH1001 emit when the backend already exists.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-03 09:06:31 -04:00
Alex Vanderveen 0948109653 bump ci and prepare CDDA multi bin/track disc 2026-08-03 05:57:29 -04:00
Alex Vanderveen d35024ef23 codegen toolchain shared dir with retcomm 2026-08-03 02:54:19 -04:00
Alex Vanderveen db24f79db5 toolchain patch windows 2026-08-01 14:09:49 -04:00
Alex Vanderveen f46bcaae85 windows toolchain patch 2026-08-01 10:36:07 -04:00
Alex Vanderveen 92c82adecc split toolchain from core game package 2026-08-01 01:03:44 -04:00
Alex Vanderveen defaf257d9 bundle final tools + self cleanup to save space 2026-07-31 21:39:03 -04:00
Alex Vanderveen d8e5c012e6 self-build patch 2026-07-31 21:11:07 -04:00
Alex Vanderveen a855361285 emitters for build tools 2026-07-31 20:10:31 -04:00
Alex Vanderveen aaa10e12f3 bump codegen docs and remove BIOS build requirement for CI 2026-07-31 18:00:04 -04:00
Alex Vanderveen 17c60e470d disc conversion and optimizations to generate+build flow 2026-07-31 17:22:45 -04:00