1

I am work on Qt. I want to create a connection cocoa with qt in qt project. In this connection how to import coca framework i.e ImageIo framework. which exist in this path /system/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIo.framework.

If I am apply this stament #import ,this statement through error ImagIo/Imageo.h : No such file or directory.

In this framework I am access to CGImageDestnationCreateWithUrl function.

4

1 回答 1

5

要包含 OSX 框架,只需将其添加到您的 .pro 文件中。例如,要包含您要添加的核心基础库:-

QMAKE_LFLAGS += -F /System/Library/Frameworks/CoreFoundation.framework/
LIBS += -framework CoreFoundation

因此,对于 ImageIO 框架,它将是:-

QMAKE_LFLAGS += -F /system/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIo.framework
LIBS += -framework ImageIO

如果包含 ImageIO,您可能只需要添加到 ApplicationServices.framework 的路径,但如果没有,请添加完整路径。

于 2013-07-24T07:52:59.080 回答