munna
9th November 2009, 09:52
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
But when I include the headers from this framework in my code in the following way
#include <FrameWorkName/SomeHeader.h>
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
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
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
But when I include the headers from this framework in my code in the following way
#include <FrameWorkName/SomeHeader.h>
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
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