Important: Please read the Qt Code of Conduct -

RtMIDI doesn’t compile with Qt

  • Hello,

    I have a problem with compiling the RtMIDI Class in QT. I didin't even manage to compile the basic example from their website, all I get is an "undefined reference" error in Qt.

    I tried almost everything, but I seem to forget to include a library in my project...
    Can you help me?

    Thank you!

  • The error has nothing to do with Qt. Qt is a library, the error is coming from your compiler or linker.

    You probably need something like:

    @INCLUDEPATH += -I{{path_to_stk}}/include/stk
    LIBS += -L{{path_to_stk}}/lib -lstk

    in your PRO file. Substitute suitable values for {{path_to_stk}} they depend on your platform and install directories.

Log in to reply