[Qt-creator] Code model could not parse, but compiled, iOS Framework

Jason H jhihn at gmx.com
Wed Jan 22 19:30:43 CET 2020


> An include of <A/B.h> will look in all framework paths for “A.framework/Headers/B.h”.

Excellent.
 
> - Check in Tools > C++ > Inspect C++ Code Model > Project Parts > Header Paths, that you have the path with openvc2.framework in it as a FrameworkPath listed.

It is not listed.

> - Does the editor complain about the include? Or is the include actually found, but other problems occur which lead to the symbols not being available?

Yes.

> - Do you have any code model warnings that do not show up inline in the editor? Look for a warning sign in the editor’s toolbar.
Yes.

I wonder how exactly I need to specify it.  https://doc.qt.io/qt-5/qmake-platform-notes.html#using-frameworks says:
LIBS += -F/path/to/framework/directory/ 
but is that the opencv2.framework directory, or the ios directory (see below)

I've tried variations of:
LIBS += -F$$PWD/ios -framework opencv2

Where project is :
project/
project/project.pro
project/main.cpp
project/ios/Info.plist
project/ios/opencv2.framework/
project/ios/opencv2.framework/Headers/...
project/ios/opencv2.framework/Versions/...
project/ios/opencv2.framework/...

Many thanks!


More information about the Qt-creator mailing list