I am completely new to this. I successfully connected a 64x32 RGB Matrix to my Pi and all the demos are working. Now I want to start my own simple code. (just one file)
I tried the provided example code in the root and the example-api-use directory as test.cc. But it wont compile.
root@DietPi:~/rgb# make test
g++ -Wall -O3 -g -L./lib -lrgbmatrix -lrt -lm -lpthread test.cc -o test
test.cc:2:24: fatal error: led-matrix.h: No such file or directory
include "led-matrix.h"
^
compilation terminated.
: recipe for target 'test' failed
make: *** [test] Error 1
I dont know how Makefiles work, but they seem only to compile with the provided files.
Which is the easiest command to compile my own test.cc with your library?
Thanks!
Hi there,
I am completely new to this. I successfully connected a 64x32 RGB Matrix to my Pi and all the demos are working. Now I want to start my own simple code. (just one file) I tried the provided example code in the root and the example-api-use directory as test.cc. But it wont compile.
root@DietPi:~/rgb# make test g++ -Wall -O3 -g -L./lib -lrgbmatrix -lrt -lm -lpthread test.cc -o test test.cc:2:24: fatal error: led-matrix.h: No such file or directory
include "led-matrix.h"
compilation terminated.