Qt Creator : can't link app against ofxMidi / CoreMIDI

Hi all ! I’m having problems linking my app with ofxMidi addon, with Qt Creator 3.6.1 + OF 0.9.3

Compilation is fine but link stage fails with
ld: framework not found /Volumes/Work1/Development/of_v0.9.3_osx_release/addons/ofxMidi/CoreMIDI

As a blind shoot I’ve added ‘CoreMIDI’ to the frameworks listed in of.qbs file, line 454
Also the .qbs file of my application have ‘CoreMIDI’ added to of.frameworks, line 48

And I really don’t understand why the framework is searched inside addons/ofxMidi/

@danomatika Any idea ?

Hello tactif,
I remember having the same issue. The script automatically searches the framework in your addon directory. Can you try removing the addonPath+"/" prefix in https://github.com/openframeworks/openFrameworks/blob/master/libs/openFrameworksCompiled/project/qtcreator/modules/of/of.qbs#L415?
Like it is done here:
https://github.com/openframeworks/openFrameworks/pull/4840/commits/fe124d5a0b90f36ba8b19878b19057b2b09c0ef5#diff-3fefd3c737d832302ff8318a53904e52L350

I am not sure how to deal with addons which locally includes frameworks like ofxSyphon.
Let me know if this works for you.

Thomas

1 Like

Thousand thanks Thomas ! Problem solved :slight_smile: