Hi,
I am trying to include an objective-c (on mac) based framework in my Qt based project. To do that based on the doc, I added the following lines in my pro file
QMAKE_LFLAGS += -F$$PWD/FrameWorkName/FrameWorkName.framework
LIBS += -framework FrameWorkName
QMAKE_LFLAGS += -F$$PWD/FrameWorkName/FrameWorkName.framework
LIBS += -framework FrameWorkName
To copy to clipboard, switch view to plain text mode
But when I include the headers from this framework in my code in the following way
#include <FrameWorkName/SomeHeader.h>
#include <FrameWorkName/SomeHeader.h>
To copy to clipboard, switch view to plain text mode
I get error saying No such file or directory.
Also, if I place the framework in /Library/Frameworks directory use the following line in the pro file, everything works fine.
LIBS += -framework FrameWorkName
LIBS += -framework FrameWorkName
To copy to clipboard, switch view to plain text mode
Can some one please explain how can I include framework in my Qt project from my project path itself and not from the root?
Thanks,
Mithin
Bookmarks