I can't wrap my head around how to build the cpp-runtime on windows.

https://github.com/rive-app/rive-runtime?tab=readme-ov-file#build-system

“The Rive dev team primarily works on MacOS. There is some work done by the community to also support Windows and Linux.”

As it seems to be explicitly stated in the README, the cpp-runtime has been specifically targeted towards Mac OSX, and any Windows/Linux support is simply an after-thought that’s been driven by the community. This seems like a very strange decision. Considering the project-wide emphasis on supporting as many runtimes as it does, you would think there would also be explicit emphasis on making the cpp-runtime as multi-platform as possible.

Because of the lack of build instructions for windows, I’m at a total loss on how to make a library build of the runtime to link to my project. Even the state instructions in that readme are not totally complete, as there is at least two extra steps other than “simply run build/build_rive.sh” (You are supposed to add the rive_runtime/build folder to $PATH and change to any directory with a premake5.lua file and THEN run build_rive.sh, as stated inside the build_rive.sh file).

On Windows, the included “build_rive.bat” file calls the “build_rive.sh” file using the “sh” command. The problem is that there is NO “sh” command on Windows, by default.

Calling .sh files requires other software to replicate shell scripts on Windows. I am not sure what configuration of such software is required, as it doesn’t give any attempt to tell you. Cygwin doesn’t seem to work, which does have programs to replicate Unix commands.


I have no idea where to go from here, and if I don’t find an answer on how to even build the thing, I’ll have to just find something else, which sucks because I was excited to give this a try.