将“启用模块”设置为“无”会导致GPUimage编译错误

时间:2019-03-25 07:21:50

标签: ios xcode magento frameworks gpuimage

为了与MoltenGL集成,我尝试在Enable Modules target中禁用GPUImageFramework,但是GPUImage那时不会编译。为什么禁用Enable Modules会导致这种错误?如何将其设置为“无错误”?

这是错误日志:

Undefined symbols for architecture x86_64:
  "_CGImageGetHeight", referenced from:
      -[GPUImagePicture initWithCGImage:smoothlyScaleOutput:removePremultiplication:] in GPUImagePicture.o
  "_CGImageGetBytesPerRow", referenced from:
      -[GPUImagePicture initWithCGImage:smoothlyScaleOutput:removePremultiplication:] in GPUImagePicture.o
  "_CGPointZero", referenced from:
      -[GPUImageRawDataOutput colorAtLocation:] in GPUImageRawDataOutput.o
  //...
  "_CGSizeZero", referenced from:
      -[GPUImageOutput addTarget:atTextureLocation:] in GPUImageOutput.o
      -[GPUImageOutput removeTarget:] in GPUImageOutput.o
      ___31-[GPUImageOutput removeTarget:]_block_invoke in GPUImageOutput.o
      -[GPUImageOutput removeAllTargets] in GPUImageOutput.o
      ___34-[GPUImageOutput removeAllTargets]_block_invoke in GPUImageOutput.o
      -[GPUImageUIElement initWithView:] in GPUImageUIElement.o
      -[GPUImageUIElement initWithLayer:] in GPUImageUIElement.o
      ...
  "_CGDataProviderRelease", referenced from:
      ___56-[GPUImageFramebuffer newCGImageFromFramebufferContents]_block_invoke in GPUImageFramebuffer.o
      _GPUImageCreateResizedSampleBuffer in GPUImageStillCamera.o
  "_CGImageGetWidth", referenced from:
      -[GPUImagePicture initWithCGImage:smoothlyScaleOutput:removePremultiplication:] in GPUImagePicture.o
  "_CGColorSpaceRelease", referenced from:
      ___56-[GPUImageFramebuffer newCGImageFromFramebufferContents]_block_invoke in GPUImageFramebuffer.o
      _GPUImageCreateResizedSampleBuffer in GPUImageStillCamera.o
      -[GPUImagePicture initWithCGImage:smoothlyScaleOutput:removePremultiplication:] in GPUImagePicture.o
      -[GPUImageUIElement updateWithTimestamp:] in GPUImageUIElement.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

enter image description here

0 个答案:

没有答案