2

I´ve been trying to compile RtMidi (http://www.music.mcgill.ca/~gary/rtmidi/) in a Windows environment (QtCreator, mingw) for hours now. Reading other threads has not been helpful.

As recommended in another post I added the following lines to my .pro-file in order to compile the Microsoft Multimedia API.

DEFINES += __WINDOWS_MM__
LIBS += -lwinmm

RtMidi::getCompiledApi() returns the non-functional RtMidi Dummy API only.

Any hints?

4

1 回答 1

3

通过将DEFINES += __WINDOWS_MM__定义放入 RtMidi.h 而不是 .pro 文件解决了问题。

我已经看到放置在开源项目的 .pro 文件中并从那里复制的行,无法判断它是否或为什么对他们有用。

于 2013-07-16T00:17:17.567 回答