Here are some answers to commonly asked questions and issues some people have come across.
This is because the FFI package R-cade uses (CSFML), is attempting to load the CSFML dynamic libraries on the Raco package manager, which doesn’t have them, and so fails to “run” the sources after compiling.
Currently I don’t know how to get around this.
This bug was graciously fixed by elephanter! It was caused by the return type of an FFI function in the CSFML library being incorrect.
Be sure to get the latest version of the CSFML library with raco
and you should be good to go!
If you see an error similar to this:
ffi-obj: couldn't get "sfText_getLineSpacing" from "libcsfml-graphics.so"
The issue here is with the packaged version of CSFML 2.5 being incorrect (and this has been reported to the CSFML maintainer). The header files are for 2.5, but the compiled binaries are still for version 2.4.
To get around this, download the CSFML source and build + install them yourself.
The CRT shader is pretty simple, but on systems with older versions of OpenGL it may not compile successfully. The game should still run fine, though. If you don’t want to see the error message, you can pass #:shader #f
to the run
function to disable it.