Skip to content

How to build #1

Description

@atsu7

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions