Skip to content

Support building with MinGW on Linux + CMake#88

Open
vs49688 wants to merge 20 commits into
trigger-segfault:mainfrom
vs49688:cmake
Open

Support building with MinGW on Linux + CMake#88
vs49688 wants to merge 20 commits into
trigger-segfault:mainfrom
vs49688:cmake

Conversation

@vs49688

@vs49688 vs49688 commented Feb 5, 2026

Copy link
Copy Markdown

This was easier than anticipated, and it works.

Tested on:

  • Linux (NixOS) with i686-w64-mingw32-gcc (GCC) 14.3.0 + CMake 4.
  • Windows 10 1809 + VS 2022 Build Tools

To build on Linux

Install MinGW w64 i686, you should have i686-w64-mingw32-gcc and i686-w64-mingw32-g++ in your PATH.

cmake --preset debug-i686 -DLEGORR_DIR=/path/to/LegoRR
cmake --build build/debug-i686 --target openlrr-injector openlrr-makeexe openlrr

or

cmake --preset release-i686 -DLEGORR_DIR=/path/to/LegoRR
cmake --build build/release-i686 --target openlrr-injector openlrr-makeexe openlrr

To build on Windows

Install the MSVC 2022 Build Tools (or VS itself)

cmake --preset windows  -DLEGORR_DIR=C:/path/to/LegoRR

Open build/windows/OpenLRR.sln

@vs49688 vs49688 force-pushed the cmake branch 5 times, most recently from 034166f to 16d6748 Compare February 6, 2026 13:29
We don't need special handling for the .rc's anymore.
@vs49688 vs49688 force-pushed the cmake branch 3 times, most recently from 1844923 to a7a7b96 Compare February 6, 2026 16:18
@vs49688

vs49688 commented Feb 6, 2026

Copy link
Copy Markdown
Author

Ready, tested & working. Both on MinGW cross builds, and native MSVC builds.

$ nix build -L .#release-zip 

Generated MinGW Release ZIP:

openlrr-v0.0.0.7.20260206163354-g86a3e86.zip

@vs49688 vs49688 marked this pull request as ready for review February 6, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant