Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/cocoa/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 与库卡的连接_Macos_Cocoa_Qt - Fatal编程技术网

Macos 与库卡的连接

Macos 与库卡的连接,macos,cocoa,qt,Macos,Cocoa,Qt,我正在做Qt。我想在qt项目中创建与qt的连接。在这方面,如何导入coca框架,即ImageIo框架。存在于该路径/system/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIo.framework中 如果我要应用这个stament#import,这个语句将通过错误ImagIo/Imageo.h执行:没有这样的文件或目录 在此框架中,我可以访问CGImageDestnationCreateWithUrl函数。要

我正在做Qt。我想在qt项目中创建与qt的连接。在这方面,如何导入coca框架,即ImageIo框架。存在于该路径/system/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIo.framework中

如果我要应用这个stament#import,这个语句将通过错误ImagIo/Imageo.h执行:没有这样的文件或目录


在此框架中,我可以访问CGImageDestnationCreateWithUrl函数。

要包含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

可能您只需要将路径添加到ApplicationServices.framework,如果其中包含ImageIO,则添加完整路径。

要包含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

可能您只需要添加ApplicationServices.framework的路径,如果该路径包含ImageIO,则添加完整路径。

Hi,添加框架后,CGImageDestnationCreateWithUrl函数不可访问,该函数是CGImageDestinatin.h类,该类是ImageIO.h类的子类。如何访问.mm类中的CGImageDestnationCreateWithUrl此函数。您好,我主要关心的是,如何在.mm类的Qt项目中使用CGImageDestnationCreateWithUrl()cooca函数。我想我误解了您的问题。您是否试图在XCODCOCOA项目中使用QT,或者试图在QT项目中使用核心基础函数CGIVIGEDestIONCREATE CREATETURL?如果它是一个Qt项目,就不应该有一个.mm文件。嗨,我正在手动添加.mm类。在这个类中,我可以访问coca类,如CIMageRef、NSURL类等。但是为什么我不能访问CGImageDestinationCreateWithURL()函数呢?这个函数存在于GImageDestinatin.h类中。该类路径为/system/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIo.framework/Headers/GImageDestinatin.hHi,添加框架后,CGImagedestinationCreateWithURL函数不可访问,该函数为CGImageDestinatin.h类,该类为ImageIo.h类的子类。如何访问.mm类中的CGImageDestnationCreateWithUrl此函数。您好,我主要关心的是,如何在.mm类的Qt项目中使用CGImageDestnationCreateWithUrl()cooca函数。我想我误解了您的问题。您是否试图在XCODCOCOA项目中使用QT,或者试图在QT项目中使用核心基础函数CGIVIGEDestIONCREATE CREATETURL?如果它是一个Qt项目,就不应该有一个.mm文件。嗨,我正在手动添加.mm类。在这个类中,我可以访问coca类,如CIMageRef、NSURL类等。但是为什么我不能访问CGImageDestinationCreateWithURL()函数呢?这个函数存在于GImageDestinatin.h类中。此类路径为/system/Library/Frameworks/ApplicationServices.framework/Frameworks/ImageIo.framework/Headers/gimagedestin.h