I'm sorry for posting a basic question.
I would love to use this wrapper, but I don't have idea how to use this.
I put these files in the directory rpi_ws281x, and added files in rpi-rgb-led-matrix/lib (Are they needed?).
I tried g++ ws2811wrapper.cpp but errors happened.
/usr/bin/ld: /tmp/ccVVmUV4.o: in function Ws2811Wrapper::Ws2811Wrapper()': ws2811wrapper.cpp:(.text+0x1c): undefined reference to rgb_matrix::RGBMatrix::Options::Options()'
/usr/bin/ld: ws2811wrapper.cpp:(.text+0x2c): undefined reference to rgb_matrix::RuntimeOptions::RuntimeOptions()' /usr/bin/ld: /tmp/ccVVmUV4.o: in function Ws2811Wrapper::show()':
ws2811wrapper.cpp:(.text+0x2a8): undefined reference to ws2811_render' /usr/bin/ld: ws2811wrapper.cpp:(.text+0x484): undefined reference to rgb_matrix::RGBMatrix::SwapOnVSync(rgb_matrix::FrameCanvas*, unsigned int)'
/usr/bin/ld: /tmp/ccVVmUV4.o: in function Ws2811Wrapper::cleanUpWs2811()': ws2811wrapper.cpp:(.text+0x598): undefined reference to ws2811_fini'
/usr/bin/ld: /tmp/ccVVmUV4.o: in function Ws2811Wrapper::initStrip(ws2811Channel, unsigned int, unsigned int, LedStripType, int, int, matrixDirection)': ws2811wrapper.cpp:(.text+0x9c0): undefined reference to ws2811_init'
/usr/bin/ld: /tmp/ccVVmUV4.o: in function Ws2811Wrapper::initStrip(unsigned int, unsigned int, LedStripType, matrixDirection, Wiring2121)': ws2811wrapper.cpp:(.text+0xe90): undefined reference to rgb_matrix::RGBMatrix::SwapOnVSync(rgb_matrix::FrameCanvas*, unsigned int)'
/usr/bin/ld: /tmp/ccVVmUV4.o: in function Ws2811Wrapper::setBrightness(unsigned char)': ws2811wrapper.cpp:(.text+0x1904): undefined reference to rgb_matrix::RGBMatrix::SetBrightness(unsigned char)'
/usr/bin/ld: /tmp/ccVVmUV4.o: in function Ws2811Wrapper::getws2811ErrorString(ws2811_return_t)': ws2811wrapper.cpp:(.text+0x1e94): undefined reference to ws2811_get_return_t_str'
/usr/bin/ld: /tmp/ccVVmUV4.o: in function rgb_matrix::CreateMatrixFromOptions(rgb_matrix::RGBMatrix::Options const&, rgb_matrix::RuntimeOptions const&)': ws2811wrapper.cpp:(.text._ZN10rgb_matrix23CreateMatrixFromOptionsERKNS_9RGBMatrix7OptionsERKNS_14RuntimeOptionsE[_ZN10rgb_matrix23CreateMatrixFromOptionsERKNS_9RGBMatrix7OptionsERKNS_14RuntimeOptionsE]+0x1c): undefined reference to rgb_matrix::RGBMatrix::CreateFromOptions(rgb_matrix::RGBMatrix::Options const&, rgb_matrix::RuntimeOptions const&)'
collect2: error: ld returned 1 exit status
How can I build them? Do I need qt and qmake on raspberrypi?
I'm sorry for posting a basic question.
I would love to use this wrapper, but I don't have idea how to use this.
I put these files in the directory rpi_ws281x, and added files in rpi-rgb-led-matrix/lib (Are they needed?).
I tried
g++ ws2811wrapper.cppbut errors happened.How can I build them? Do I need qt and qmake on raspberrypi?