Hi, I recently found the rust bindings github page and was interested in using the bindings. However I’ve encountered some errors and after searching the internet I have not been able to find any resources on how to get started. I get the following error, it is caused when I try to run one of the examples
error: linking with link.exe failed: exit code: 1181
and
= note: LINK : fatal error LNK1181: cannot open input file ‘rgbmatrix.lib’
Installing VSC Build tools has not seemed to fix the error, any help would be greatly appreciated, thanks.
Mmmh, I know nothing about building on windows, but on unix that would be the -L flag to gcc, telling it where to find libraries, .a or .so files to link against.
Thanks! I decided to run it from the PI, things were running a lot smoother. Unfortunately, I ran into another error
/home/pi/.cargo/registry/src/github.com/rpi-led-matrix-0.2.2/src/matrix.rs:34: undefined reference to `led_matrix_create_from_options_and_rt_options’
collect2: error: ld returned 1 exit status
Doesn’t seem to be binding?
The build.rs/gcc points to the directory in which the libraries are contained.
Alright, I solved the Problem.
What I did was copy the contents from the lib folder in the rpi-rgb-led-matrix to the target/debug/deps folder of my Rust project!