Port to Windows #2

Open
opened 2026-08-21 20:42:12 +00:00 by Parthen · 0 comments
Owner

make currently assumes a Unix userland:

LIBS := -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
SOURCES := $(shell find $(SRC_DIR) -type f -name '*.c' | sort)

Stock Windows has no find, no X11, and the binary should be vinora.exe. raylib already builds with MinGW via PLATFORM_DESKTOP / GLFW. The engine is plain C99 + raylib; paths in the code are forward slashes (assets/alice.vnrs), which raylib accepts on Windows.

Done when

  • A documented command builds on Windows (MinGW / w64devkit / MSYS2 -- pick one (probably MinGW, but need a bit of research) and write it down, do not support every IDE)
  • vinora.exe assets/alice.vnrs opens a window and plays the scene
  • make clean / equivalent does not leave .exe / .o junk
  • README has a Windows quickstart
  • Linux / X11 keep working

Likely work

  • Linker flags along the lines of -lopengl32 -lgdi32 -lwinmm instead of X11/GL
  • Source list without GNU find (Make wildcard, a boring explicit list, or require MSYS2 and keep find -- say which)
  • TARGET := vinora.exe on Windows
  • make run argv forwarding uses GNU make tricks; if you cannot keep them, document the Windows equivalent
  • Stay C99. CONVENTIONS.md still applies (80 columns, ASCII in sources)

Out of scope

  • MSVC / Visual Studio project files
  • Installers, start-menu shortcuts, Windows Store
  • Backslashes in user-facing paths unless raylib forces them

Patches to develop, please. master is releases.

`make` currently assumes a Unix userland: ``` LIBS := -lraylib -lGL -lm -lpthread -ldl -lrt -lX11 SOURCES := $(shell find $(SRC_DIR) -type f -name '*.c' | sort) ``` Stock Windows has no `find`, no X11, and the binary should be `vinora.exe`. raylib already builds with MinGW via `PLATFORM_DESKTOP` / GLFW. The engine is plain C99 + raylib; paths in the code are forward slashes (`assets/alice.vnrs`), which raylib accepts on Windows. ## Done when - A documented command builds on Windows (MinGW / w64devkit / MSYS2 -- pick one (probably MinGW, but need a bit of research) and write it down, do not support every IDE) - `vinora.exe assets/alice.vnrs` opens a window and plays the scene - `make clean` / equivalent does not leave `.exe` / `.o` junk - README has a Windows quickstart - Linux / X11 keep working ## Likely work - Linker flags along the lines of `-lopengl32 -lgdi32 -lwinmm` instead of X11/GL - Source list without GNU `find` (Make `wildcard`, a boring explicit list, or require MSYS2 and keep `find` -- say which) - `TARGET := vinora.exe` on Windows - `make run` argv forwarding uses GNU make tricks; if you cannot keep them, document the Windows equivalent - Stay C99. CONVENTIONS.md still applies (80 columns, ASCII in sources) ## Out of scope - MSVC / Visual Studio project files - Installers, start-menu shortcuts, Windows Store - Backslashes in user-facing paths unless raylib forces them Patches to `develop`, please. `master` is releases.
Parthen self-assigned this 2026-08-21 20:42:12 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Vinora-Project/vinora-engine#2
No description provided.