Looks like a linker error... Maybe your Portmidi library brings some extra dependencies which are not notified to the linker by default (which you should thus add by hand in the pro file).